-
Notifications
You must be signed in to change notification settings - Fork 16
BF: percent -> percents for value of a unit #324
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
Conversation
The other units have plural version for the value, so I thought it would make sense here as well
|
I agree that "percent" is an outlier compared with the other units. My understanding is that "percent" is a collective noun and can be both singular or plural. "Percents" is also a valid plural form, but in my experience is typically used in place of "percentages". Using "percents" to describe the units sounds awkward to me. My original rationale for not updating "percent" in NWB 2.1 was thinking, if the value is non-singular, what unit word would follow it? 10 volts, 10 meters, 10 grams, 10 percent (though 10 percent is not a quantity like the others; it is more of a unit-less measure) I appreciate the eye to detail! What do others think about this? |
|
Fwiw, I was surprised that unit description values were expressed as plural to start with. As for description of a unit I would have used single form. |
|
Note that doc field says "Unit of measurement...", Suggesting a single form. |
|
We considered using the singular form for the same reason and the fact that the field is called "unit" and not "units". But the plural form felt more natural to use. I am open to changing the value to be singular. |
|
Other standards I've been involved with (in computational biology for instance, SBML & CellML) have used the singular form for units. |
|
so -- what should be the verdict? I see 3 possibilities
|
|
I am in favor of option 2, and maybe option 1. Note that with option 2, a v2.2 file with |
|
@rly - here is the link to the ascii units specification: https://people.csail.mit.edu/jaffer/MIXF/MIXF-10 some folks have written python parsers for this as well. i know most of these discussions are around simple units, but as the complexity of the nwb file grows with behavioral recordings then things like acceleration and other metadata may come in. so unit combos are likely to be a thing. i think this spec helps a lot with that. i'm simply putting it here for discussion. |
|
@satra Out of curiosity, why use the MIXF-10 units specification as opposed to the UCUM or other specifications? I see that BIDS has adopted it. UCUM is used by DICOM and a variety of other groups. And is there a preference toward using the full name of the unit, e.g., "meter" as opposed to the symbol "m"? I slightly prefer the full name because it is more readable and reduces ambiguity, but I realize that most (if not all) other systems use at least the symbol. Also linking to the discussion here: incf-nidash/nidm-specs#482 https://ucum.nlm.nih.gov/ |
|
@rly - a few notes first:
regarding choice of CMIXF-12 is the focus in BIDS on SI units with some specific exceptions that may be allowed. and CMIXF-12 covers those. and the table is much easier for a user to look at relative to UCUM. if there is a need to support broader units, especially weird biological ones (colony forming unit), then one should expand out. |
|
@satra Thanks! The BIDS discussion is really helpful. |
|
Closing this in favor of new PR #446 |
The other units have plural version for the value, so I thought it would
make sense here as well