NumericCreate

Workspace.NumericCreate(self: pyarts.arts._Workspace, name: str, desc: str | None = None, value: pyarts.arts.Numeric | None = None) None

Create new Numeric on the workspace

It is recommended that this is only called once per new Workspace variable.

If there is no default value, the variable remains uninitialized

If the variable already exist, an error is thrown only if the group is not Numeric. If the variable does exist, a new value is pushed onto its stack iff value is given. This efficiently puts any current value out of reach for the current Agenda level.

Parameters:
  • name (str) – Name of the variable, can be accessed later with getattr() on the workspace

  • desc (str, optional:) – Description of the variable, defaults to "User-generated workspace variable"

  • value (Numeric, optional) – Initialized value, default is to not initialize the variable