In HAPI 2.1, an array of units or labels is allowed. What should be used when there is no unit or label for an element? Should "" and null be allowed?
I would think that if an array of labels is given, the elements must all be non-empty strings (because why would you want to not label one component?). If an array of units is given, then "" and null are both allowed and mean the same thing. Note that in the spec, we don't state what "" means for a unit that is a string.
size = [3]
labels = ["Bx","By",""] // No
labels = ["Bx","By","By/Bx"] // Yes
units = ["nT","nT",null] // OK
units = ["nT","nT","dimensionless"] // OK
units = ["nT","nT",""] // If OK, then need to state units = "" is OK for
// case where units is a string and not an array
In HAPI 2.1, an array of units or labels is allowed. What should be used when there is no unit or label for an element? Should
""andnullbe allowed?I would think that if an array of labels is given, the elements must all be non-empty strings (because why would you want to not label one component?). If an array of units is given, then
""andnullare both allowed and mean the same thing. Note that in the spec, we don't state what""means for a unit that is a string.