First off, you can definitely do conversions between different dimensionless quantities:
from pint import Quantity
a = Quantity(3, 'm^3/m^3')
a.to('cm^3/m^3')
does what you'd expect. There's no problem with converting between different "dimensionless" units.I don't really understand what the "category" is, though, so maybe I'm missing the point? I notice that some units can be in multiple categories, e.g. "J" can be a "moment of force" or an "energy", but I can still do:
a = Scalar(5.0, 'J', 'moment of force')
b = Scalar(10.0, 'J', 'energy')
c = a / b
c.category
>>> ''
d = a + b
d.category
>>> 'moment of force'
That seems a bit inscrutable. What is a category and why am I keeping track of it? I think this might be the core of why barril is useful to some people but I don't understand it.The biggest thing I found playing with barril is that while I can multiply 3 lengths together to get a volume; if I multiply a density by a volume and ask for a mass it throws an exception. Like they've just special-cased some specific conversions rather than doing dimensional analysis? This seems like the core functionality of a units library so I'm a bit confused again if I've missed something.