Skip to content

Need example for return_units in model unit support #6505

@pllim

Description

@pllim

Currently in http://astropy.readthedocs.io/en/latest/modeling/units.html

"Similarly to return_units, this should be dictionary that maps the return values of a model to units. If evaluate() was called with quantities but returns unitless values, the units are added to the output. If the return values are quantities in different units, they are converted to return_units."

  1. "Similarly to return_units" does not make sense. Replace "to" with "in"? Or reword it?
  2. What is the name of return values? For example, for BlackBody1D, is it y (as stated in API doc of evaluate() or fnu (the actual variable name that is returned)? How does a user find this without code-diving? Answer: y

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions