-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StandardUnits live in Units, but prefixes in enumerations.h #204
Comments
(should be |
Good catch- I think this may be a case of legacy inconsistencies that stick out now that things are better fleshed out. Although I have a vague memory of someone pointing out that there may be use-cases for SI prefixes outside of the context of units (maybe @hsorby?). That aside, my original preference was to hierarchically specify when possible- for example I prefer the
@MichaelClerx , it sounds like you prefer bringing all the enums into |
@dladd For Python bindings it would be easiest if the enums were all defined constants instead (but this means you lose some type-safety on the C++ side I think)! Organisation-wise, I don't like the "enumerations" file because it's hard for the user to guess which enumerations are and are not inside it. So I'd much prefer if |
I would prefer to have all enumerations that aren't attached to a class to have either there own header file or live in the class header they are used by. For example the For me with regards to the bindings I think we would be better off bringing the prefix enumerations into the units class and saying as far as the libCellML object model is concerned prefixes and standard units are part of |
Hi all!
What's the rationale for this?
(Another example is
InterfaceType
, which lives inside VariableThe text was updated successfully, but these errors were encountered: