wholecell.utils.unit_struct_array

UnitStructArray

Wraps Numpy struct arrays using Unum units. Will assure that correct units are being used while loading constants.

TODO: Unum is a defunct project. Its source repo is no longer online. Either switch to a newer package like Pint or copy and improve the Unum source code from its Python package.

class wholecell.utils.unit_struct_array.UnitStructArray(struct_array, units)[source]

Bases: object

Wraps Numpy structured arrays using Unum units. Will assure that correct units are being used while loading constants.

Parameters:
_field(fieldname)[source]
_validate(struct_array, units)[source]
fullArray()[source]
fullUnits()[source]