Closed joaander closed 3 years ago
I like the square brackets, it is easier to read. What do you think about also replacing the words by math symbols consistent with the documented fundamental units? A shorthand could also be added for common derived units, as is done for time (tau).
The page you link to has been rewritten for v3. The new tutorial uses the bracket notation when it introduces units: https://github.com/glotzerlab/hoomd-examples/blob/01-Introducing-Molecular-Dynamics/01-Introducing-Molecular-Dynamics/02-Initializing-a-Random-System.ipynb
Many of the symbols used in the v2 docs aren't in common use and I think that while they are compact, they add an additional and unnecessary fluid representation.
Sure, the notation in the tutorial is very human-readable too. Having it directly in square brackets is the main plus!
It might be helpful to look at unyt, pint, or astropy.units, which are the three packages that I'm aware of for actually working with and validating units. They might have examples of how they recommend documenting units (or their dependents might).
Description
As I update the docs, I'm finding the units documentation for each parameter cumbersome. For example:
We could instead use the square bracket notation used by wolfram alpha for basic units:
Motivation and context
I'm open to other suggestions.