You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given two units with defined labels, infer a new label when two units are multiplied or divided. Especially useful for user-defined units
from scimath.units.time import hour
from scimath.units.length import cm
hour.label = 'hr'
cm.label = 'cm'
cm_per_hour = cm / hour
print cm_per_hour.label # Currently '', but would be ideally 'cm/hr'
print cm_per_hour # '2.77777777778e-06*m*s**-1'
The behavior here isn't completely well defined, such as when we come to say units dealing with the same object of measure (e.g. m / cm shouldn't be 'm/cm'), but at the same time some user facing applications would rather not see 2.777777777777778e-06*m*s**-1
The text was updated successfully, but these errors were encountered:
Given two units with defined labels, infer a new label when two units are multiplied or divided. Especially useful for user-defined units
The behavior here isn't completely well defined, such as when we come to say units dealing with the same object of measure (e.g. m / cm shouldn't be 'm/cm'), but at the same time some user facing applications would rather not see
2.777777777777778e-06*m*s**-1
The text was updated successfully, but these errors were encountered: