pytomography.io.PET.prd.yardl_types
#
Module Contents#
Classes#
Enum that allows values outside of the its defined values. |
|
A basic datetime with nanosecond precision, always in UTC. |
|
A basic time of day with nanosecond precision. It is not timezone-aware and is meant |
|
Helper class that provides a standard way to create an ABC using |
Functions#
|
Attributes#
- exception pytomography.io.PET.prd.yardl_types.ProtocolError[source]#
Bases:
Exception
Raised when the contract of a protocol is not respected.
- class pytomography.io.PET.prd.yardl_types.OutOfRangeEnum[source]#
Bases:
enum.Enum
Enum that allows values outside of the its defined values.
- class pytomography.io.PET.prd.yardl_types.DateTime(nanoseconds_from_epoch=0)[source]#
A basic datetime with nanosecond precision, always in UTC.
- Parameters:
nanoseconds_from_epoch (Union[int, numpy.datetime64]) –
- class pytomography.io.PET.prd.yardl_types.Time(nanoseconds_since_midnight=0)[source]#
A basic time of day with nanosecond precision. It is not timezone-aware and is meant to represent a wall clock time.
- Parameters:
nanoseconds_since_midnight (Union[int, numpy.timedelta64]) –
- pytomography.io.PET.prd.yardl_types.structural_equal(a, b)[source]#
- Parameters:
a (object) –
b (object) –
- Return type:
bool