pwtools.crys.UnitsHandler.update_units

UnitsHandler.update_units(units)[source]

Update self.units dict from units. All units not contained in units remain at the default (1.0), see self._default_units.

Parameters:

units (dict, {'length': 5, 'energy': 30, ...}) –