Basis.get_by_id

classmethod Basis.get_by_id(id, default=None)[source]

Returns a previously defined basis based on its ID, if it exists.

Note that the basis may not be found because it has been garbage collected.

Parameters
  • id (int) – The ID of the basis.

  • default (T) – If the basis does not exist, default will be returned instead.

Returns

Existing basis or default.

Return type

Basis | T