Pint unit registry
I was experiencing some technical difficulties with Pint. First I made my own registry and tried to initialise as follows:
eq_api = ComponentContribution(p_h=ureg.Quantity(7.4), ionic_strength=ureg.Quantity(.25, 'M'))
yielding the following error:
pint.errors.DimensionalityError: Cannot convert from '0.25 molar' ([substance] / [length] ** 3) to 'a quantity of' ([substance] / [length] ** 3)
Since I was importing Q_ from equilibrator_api earlier, Q_('.25 M') somehow worked, thus I decided to go back there again,
Q_(str(self.ionic_strength.magnitude) + ' ' + str(self.ionic_strength.units))
only to find:
ValueError: Cannot operate with Quantity and Quantity of different registries.
so now I am left converting my projects ureg.quantities to equilibrator ureg.quantities