ENH+RF: inform which unit value is actually overwritten (ignored and set)#1219
Conversation
63ae59b to
262e384
Compare
|
Thanks @yarikoptic . Looks good. Could you please fix the flake8 errors: |
…set) Otherwise user is left wondering "what was ignored? it might have been millivolts and now it became volts?" and alike. While at it I RF code to avoid duplication (evil, tiresome to change) in the touched code
262e384 to
4ae624a
Compare
|
doh -- thanks for the buzz. force pushed the fixed version. FWIW in dandi-cli @satra inflicted on us pre-commit with black magic -- so it reformats code upon commit to be consistent etc: https://github.com/dandi/dandi-cli/blob/master/.pre-commit-config.yaml . I kinda like it now ;) |
|
an aside: @rly any reason unit names are plural? btw, we are trying to adopt this: https://people.csail.mit.edu/jaffer/MIXF/MIXF-10 across several projects so units are parseable. i don't know if nwb has any standard for unit specification. |
|
@yarikoptic the pre-commit hooks look useful! I will try to add them. As far as I can tell, adding the file @satra Yarik and I have been discussing the units issue here: NeurodataWithoutBorders/nwb-schema#324 I will raise the issue with the others in the core dev team later this week. |
While at it I RF code to avoid duplication (evil, tiresome to change) in the touched code
Motivation
Otherwise user is left wondering "what was ignored? it might have been millivolts and now it became volts?" and alike.