pyxx.units.UnitSystemSI#

class pyxx.units.UnitSystemSI(name: str | None = 'SI', description: str | None = 'International System of Units')#

Bases: UnitSystem

Class representing the SI system of units

Class that can be used to represent the International System of Units (SI). This system of units has 7 base units, which are described in the “Notes” section.

Notes

The base units in the SI system are:

  1. Length: meter [\(m\)]

  2. Time: second [\(s\)]

  3. Amount of substance: mole [\(mol\)]

  4. Electric current: ampere [\(A\)]

  5. Temperature: Kelvin [\(K\)]

  6. Luminous intensity: candela [\(cd\)]

  7. Mass: kilogram [\(kg\)]

References

https://www.nist.gov/pml/weights-and-measures/metric-si/si-units

Methods

__init__([name, description])

Creates an instance of the UnitSystemSI class

Inherited Attributes

description

A brief description of the system of units, such as a list of the base units or details on other relevant specifications

name

A short, descriptive name identifying the system of units

num_base_units

The number of base units in the system of units

property description#

A brief description of the system of units, such as a list of the base units or details on other relevant specifications

property name#

A short, descriptive name identifying the system of units

property num_base_units#

The number of base units in the system of units

__init__(name: str | None = 'SI', description: str | None = 'International System of Units')#

Creates an instance of the UnitSystemSI class

Creates a system of units corresponding to the International System of Units (SI). This system of units has 7 base units.

Parameters:
  • name (str, optional) – A short, descriptive name of the system of units (default is 'SI')

  • description (str, optional) – A description of the system of units (default is 'International System of Units')