-
Notifications
You must be signed in to change notification settings - Fork 3
Fix unit processing for percent and permille
#16
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
base: main
Are you sure you want to change the base?
Conversation
|
well these are also not physical units... otherwise we also accept ADC |
However, we can parse them into |
|
I see little value in keeping such units around, I would definitely prefer stripping them. What would be the use case for such "units"? |
We can also strip them. However, you loose now information that the numbers are |
Ah - no, with stripping I mean converting them to a normal fraction value. |
It's not quite the same - ADC is not a universally comparable thing, percent is well-define. Technically, it's not a unit, but a mathematical constant, but for practical purposes one can treat it as kind of a unit. |
|
But why |
I don't know. But this can be changed in the link I send. I think this all comes down again to a dataformat spec concerning units... |
As I said, |
Is this mainly intended for output that's both human and machines-readable, though? Do we already use it somewhere except for survival fractions in pars? |
Dont know, maybe @gipert can answer. |
|
I think it's pretty useless to store values in percent or permill... what punishment should we inflict to @ssailer? |
|
Please discuss this with the Physics King. I was told, we're supposed to make identical copies of the daq files. |
Is that @ggmarshall ? I guess whatever we do we probably won't reprocess all daq files again to change the unit in these couple keys, so we have to fix it here independent of that.
|
Parse
o/oando/ooaspercentandpermilleunits while loading. These units are used in the context of the FlashCam decoding in theextrasection (s. here)Why need ASAP a description of units in the
dataformat-specs. This is way too much work to debug every time.......c.f. @gipert @ggmarshall
@DaGeibl : I still need to update the
tests/onLegendHDF5IO.jland the bump the compat for this too work properly.