-
Notifications
You must be signed in to change notification settings - Fork 2
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
Design decision: easily parsable unit definitions #5
Comments
From @jchodera on Slack:
|
Another possibility is to require units in the form {...,
velocities: {value: [ [1,2,3], [-1, -2, -3]],
units: {'angstrom':1, 'femtosecond':-1}},
...} I like this only because it doesn't require anyone to parse mathematical notation. |
I'll revisit this later, but I had to chuckle at square femtoseconds per hectare... |
The QUDT ontology may fulfill this and has the math in the ontology to make unit changes, e.g. convert fs to s... the Java library jQUDT does that. |
This is a consequence of the requirement that all quantities include units - #2
Anyone parsing the file format will need to be able to parse the physical units of all the numbers, so there needs to be an agreed-upon standard.
This is easy for names like
angstrom
oreV
. It becomes more complicated for units likeangstrom/eV
orfs^2/hectare
- and ideally, we don't want to require anyone supporting this format to have to write their own mathematical parser.The text was updated successfully, but these errors were encountered: