halotools icon indicating copy to clipboard operation
halotools copied to clipboard

Implement Astropy Quantities

Open aphearin opened this issue 10 years ago • 1 comments

Mostly this will only impact the halo catalog and merger tree dtype formatting.

aphearin avatar Jun 11 '15 18:06 aphearin

Give users the option to write supported model components that either do or do not work with Quantities. Try to implement this via a class-level use_quantities attribute. If set to False, the composite-model decorator will ensure that an ndarray view of the columns are passed to the component, and then the component model can safely perform arbitrary operations on the columns; if set to True, the passed columns will be Quantities, and so the component model will need to make columns dimensionless if they want to perform nonlinear transformations on them. Suggestion due to @eteq.

aphearin avatar Jul 20 '15 18:07 aphearin