openworm / tracker-commons

Compilation of information and code bases related to open-source trackers for C. elegans
11 stars 12 forks source link

scalar multipliers in units #114

Closed JimHokanson closed 8 years ago

JimHokanson commented 8 years ago

What's the point of having scalar multipliers with units? This seems to unnecessarily complicate things. Does this automatically get applied to the data? For example, if you have a value of 1 with a unit of 0.5*s (on disk) would loading cause a value of 0.5 and a unit of 's'?

MichaelCurrie commented 8 years ago

What's the point of having scalar multipliers with units?

The rationale is discussed here: https://github.com/openworm/tracker-commons/pull/66

Does this automatically get applied to the data? For example, if you have a value of 1 with a unit of 0.5*s (on disk) would loading cause a value of 0.5 and a unit of 's'?

Yes.

MichaelCurrie commented 8 years ago

Sorry I'll let you close it if you feel I've addressed your concerns. Thanks

JimHokanson commented 8 years ago

Doh! I searched explicitly for an issue discussing this and missed that one. Thanks.