Skip to content
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

Missleading Class-Subclass hierachy in SIDimensionalUnits #281

Open
markdoerr opened this issue Mar 5, 2024 · 2 comments
Open

Missleading Class-Subclass hierachy in SIDimensionalUnits #281

markdoerr opened this issue Mar 5, 2024 · 2 comments

Comments

@markdoerr
Copy link

MassUnit, TemperatureUnit, LengthUnit, etc. are currently modelled as subclasses of SIDemsinalUnit.

This is not correct, as there exist non-SI MassUnits, LengthUnits, TemperatureUnits ....

Shouldn't the subclasses be better called "MassSIUnit", "TemperatureSIUnit", "LengthSIUnit" ?

@jesper-friis
Copy link
Contributor

Agree, there exist non-SI MassUnits, LengthUnits, TemperatureUnits ....

However, the "SI" in the label of SIDimensionalUnit does not mean that it is the class of dimensional SI units (which we would have called DimensionalSIUnit). Instead it refer to dimensional units who's physical dimensionality is described according to SI.

@markdoerr
Copy link
Author

Thanks, @jesper-friis , for the fast explanation.
Since this subtle difference, you described above, might not clear / obvious to many scientists, it should be worth an design explanation in the annotation of the SIDimensionalUnit class, e.g. like:
All derived subclasses of SIDemensionalIUnit are based on physical dimensionalities as described in the [SI specification](https://www.bipm.org/documents/20126/41483022/SI-Brochure-9-EN.pdf)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants