Unit display in referenced sections
Dear nomad, I have an ELN entry
class Solution(Chemical):
'''Base class for a solution'''
chemical = Quantity(
type=Reference(Chemical.m_def),
a_eln=dict(component='ReferenceEditQuantity'))
powder_mass = Quantity(
type=np.dtype(np.float64),
unit=('mg'),
a_eln=dict(component='NumberEditQuantity',defaultDisplayUnit='mg'))
solvent = Quantity(
type=Reference(Chemical.m_def),
shape=['*'],
a_eln=dict(component='ReferenceEditQuantity'))
solvent_percentage = Quantity(
type=np.dtype(np.float64),
a_eln=dict(component='NumberEditQuantity'))
shaker_temperature = Quantity(
type=np.dtype(np.float64),
unit=('°C'),
a_eln=dict(component='NumberEditQuantity',defaultDisplayUnit='°C'))
shaker_time = Quantity(
type=np.dtype(np.float64),
unit=('s'),
a_eln=dict(component='NumberEditQuantity',defaultDisplayUnit='s'))
shaker_speed = Quantity(
type=np.dtype(np.float64),
unit=('1/second'),
a_eln=dict(component='NumberEditQuantity',defaultDisplayUnit='1/s'))
It has defaultDisplayUnits, in the GUI it looks like this:
it looks fine
but now I reference this in another entrydata:
and the units are the default ones again. So time is in fs, and temperature in K and mass in kg.
I am using a fork of v1.1.3
Best Micha