Skip to content

modeling with quantities - not a real PR - #1796

Closed
nden wants to merge 3 commits into
astropy:masterfrom
nden:param-quantity
Closed

nden wants to merge 3 commits into
astropy:masterfrom
nden:param-quantity

Conversation

@nden

@nden nden commented Nov 15, 2013

Copy link
Copy Markdown
Contributor

This is to illustrate the proposed implementation of #1464.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this allow me to change the unit to F_nu or does this mean it can only accept units of type length?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default_unit shows the unit with which the model works internally. default_equivalencies defines the possible equivalencies to use.
If you pass a quantity the first thing it does is convert to default_unit and then takes its value. So if you have to provide the equivalency.

@pllim

pllim commented May 2, 2016

Copy link
Copy Markdown
Member

@astrofrog working on this in #4615, so closing this one.

@pllim pllim closed this May 2, 2016
@nden
nden deleted the param-quantity branch December 27, 2018 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants