-
Notifications
You must be signed in to change notification settings - Fork 9
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
units for dataitems with mixed units? #409
Comments
Other dataitems with potentially problematic mixtures of units:
These ones might just be incorrect units:
There are probably others. |
No, currently there is no attribute that would allow to specify multiple units of measurement. I guess this could somewhat addressed by changing the
This still leaves the problem open for tables and lists of indeterminate lengths. One option could be to introduce a new special The
This seems like a separate topic which should be split up into a different issue if more in-depth discussions are required:
The assignment of
Mass number is the count of neutrons and protons in the nucleus so units are probably not needed. |
So it looks like the "incorrect" ones are correct. It looks like there isn't any way currently* to arbitrarily enumerate units for some data items. Could a * and any changes to make it so would be difficult, and break many other things. |
Here's another suggestion: we could define What I'm getting at is that I don't think we should spend our scarce labour on providing the units for compound data values unless there is some obvious benefit.
I think this is a fine idea, because it is indeed true that this is the case. |
|
@jamesrhester I am all for not spending more time on this than we have too, but suggested used of I agree with the general idea, but maybe we could use a different enumeration value for this purpose? Something like |
If we consider that it makes no sense for compound data types containing values with differing units to have a single unit applied to them, then "not applicable" is reasonable. |
If that is the type of definition you're after, then I would vote for |
@rowlesmr By I am not strongly against Between this and data typing limitations mentioned in this discussion (#399 (comment)), maybe we should start a wishlist of all the features we would like to eventually fix/address in DDLm 5/6/7? |
I meant in the first sense. Looks like unspecified is coming out on top. |
Let's go with unspecified then. |
I will reopen this issue until we change the units of some items to |
Is there a unit code to be used for dataitems that have mixtures of units? or should it just not be included?
cf
_atom_type_scat.cromer_mann_coeffs
, where the units are a mixture ofnone
andangstrom_squared
(also all the other scattering factor data items)
.
Could there be a
units.code
formixed
-type dataitems, where there are several different unit types? Not completely machine readable, but also shows that they aren't unitless, or arbitrary.The text was updated successfully, but these errors were encountered: