pynitride.core.paramdb module¶
- pynitride.core.paramdb.parse(val)¶
 Reads the value in as a string and returns a number in nanoelectronic units
- pynitride.core.paramdb.to_unit(val, unit)¶
 Convert a number from PyNitride’s internal units to any other units.
Any number used in PyNitride or pulled from the parameter database is assumed to be in “nanoelectronic units”, and this function provides conversion to other units for outputing readable results to a user. Note that this function does not and could not possibly ensure that your conversion is dimensionally valid, since the val input is just a number. The user is responsible for knowing what val is (eg a distance, or an energy etc) and requesting sensible output dimensions. The output dimensions are interpreted by Pint and a full list of allowed values (including units such as
meter, prefixed units such asmeV, more complex units likecm**-2and constants such ashbar) is provided in the Pint docs.- Parameters:
 val – A numerical quantity which is in the internal unit system of PyNitride
unit – The desired units for the result as a string (eg “cm**-2”)
- Returns:
 the number representing that quantity in the desired units.