AllenInstitute / sonata

Collaboration between BBP and AIBS
BSD 3-Clause "New" or "Revised" License
53 stars 33 forks source link

Using SI units #66

Open Hjorthmedh opened 5 years ago

Hjorthmedh commented 5 years ago

Would it be possible to switch the SONATA format to SI units instead of natural units? I know a lot of simulators still use natural units, but there are so many potentials for mistakes.

apdavison commented 5 years ago

I am not in favour of this.

My feeling is that using unprefixed SI units (note that what you're calling natural units are also SI units; we're not talking feet and inches!) will introduce more potential for mistakes, because (i) you end up doing more conversions and (ii) you introduce rounding errors due to floating point.

However, we do need to ensure that the units are specified explicitly as metadata, as close to the data as possible.

hernando commented 5 years ago

I agree with Andrew. Units should not be implicit, but the there should be metadata that specifies the units. In the simulation output part we have included units metadata in all datasets. However, I think we are missing it in the simulation config json. Conversions may be unavoidable if different groups want to exchange data using different units though.