pytomography.io.PET.prd.binary
#
Module Contents#
Classes#
Binary writer for the PrdExperiment protocol. |
|
Binary writer for the PrdExperiment protocol. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
- class pytomography.io.PET.prd.binary.BinaryPrdExperimentWriter(stream)[source]#
Bases:
pytomography.io.PET.prd._binary.BinaryProtocolWriter
,pytomography.io.PET.prd.protocols.PrdExperimentWriterBase
Binary writer for the PrdExperiment protocol.
- Parameters:
stream (pytomography.io.PET.prd.protocols.typing.Union[pytomography.io.PET.prd.protocols.typing.BinaryIO, str]) –
- class pytomography.io.PET.prd.binary.BinaryPrdExperimentReader(stream)[source]#
Bases:
pytomography.io.PET.prd._binary.BinaryProtocolReader
,pytomography.io.PET.prd.protocols.PrdExperimentReaderBase
Binary writer for the PrdExperiment protocol.
- Parameters:
stream (pytomography.io.PET.prd.protocols.typing.Union[io.BufferedReader, io.BytesIO, pytomography.io.PET.prd.protocols.typing.BinaryIO, str]) –
- class pytomography.io.PET.prd.binary._CoincidenceEventSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.CoincidenceEvent
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.CoincidenceEvent) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None
- class pytomography.io.PET.prd.binary._SubjectSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.Subject
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.Subject) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None
- class pytomography.io.PET.prd.binary._InstitutionSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.Institution
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.Institution) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None
- class pytomography.io.PET.prd.binary._ExamInformationSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.ExamInformation
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.ExamInformation) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None
- class pytomography.io.PET.prd.binary._DetectorSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.Detector
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.Detector) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None
- class pytomography.io.PET.prd.binary._ScannerInformationSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.ScannerInformation
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.ScannerInformation) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None
- class pytomography.io.PET.prd.binary._HeaderSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.Header
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.Header) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None
- class pytomography.io.PET.prd.binary._TimeBlockSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.TimeBlock
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.TimeBlock) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None
- class pytomography.io.PET.prd.binary._TimeIntervalSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.TimeInterval
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.TimeInterval) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None
- class pytomography.io.PET.prd.binary._TimeFrameInformationSerializer[source]#
Bases:
pytomography.io.PET.prd._binary.RecordSerializer
[pytomography.io.PET.prd.protocols.TimeFrameInformation
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- write(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.TimeFrameInformation) –
- Return type:
None
- write_numpy(stream, value)[source]#
- Parameters:
stream (pytomography.io.PET.prd._binary.CodedOutputStream) –
value (pytomography.io.PET.prd.protocols.np.void) –
- Return type:
None