3.10.1.17.1.6. opengate.postprocessors.unitbase

3.10.1.17.1.6.1. Attributes

__run_group_prefix__

3.10.1.17.1.6.2. Classes

ProcessingUnitBase

This is the base class used for all objects that handle user input in GATE.

3.10.1.17.1.6.3. Functions

_setter_hook_yields_to(self, yields_to)

3.10.1.17.1.6.4. Module Contents

opengate.postprocessors.unitbase.__run_group_prefix__ = 'data_from_run'[source]
opengate.postprocessors.unitbase._setter_hook_yields_to(self, yields_to)[source]
class opengate.postprocessors.unitbase.ProcessingUnitBase(*args, processing_group=None, **kwargs)[source]

Bases: opengate.base.GateObject, anytree.NodeMixin

This is the base class used for all objects that handle user input in GATE.

The class is assumed to be processed by process_cls(), either explicitly or via the metaclass MetaUserInfo, before any instances of the class are created. Some class attributes, e.g. inherited_user_info_defaults, are created as part of this processing.

user_info_defaults[source]
processing_group[source]
output_data_handles[source]
input_data_handles[source]
hdf5_group = None[source]
property post_processor[source]
property is_processing_unit[source]
property can_be_initial_unit[source]

Generally, processing units cannot be the initial units in a processing tree. Those units which can be initial units, e.g. data fetcher, should override this property.

property output_file_handle[source]
property input_units[source]
get_or_create_output_table(*args, **kwargs)[source]
get_or_create_output_array(*args, **kwargs)[source]
get_or_create_output_carray(*args, **kwargs)[source]
get_or_create_output_earray(*args, **kwargs)[source]
get_or_create_output_group(*args, **kwargs)[source]
_get_or_create_output_structure(which, name, link_name=None, subgroup=None, external_file=False, **kwargs)[source]
register_output_data_handle(output_data_handle)[source]

output_data_handle should be a mode in the hdf5_group belonging to this unit.

get_unique_identifier_within_unit(node)[source]
get_title_for_hdf5_node()[source]
update_tree_node()[source]

Internal method which retrieves the volume object from the volume manager based on the mother’s name stored as user info ‘mother’

_request_processing_unit_tree_update()[source]
initialize_hdf5_group_in_output_file()[source]
get_unit_output_group()[source]
store_user_attributes()[source]
close()[source]

Dummy implementation for inherited classes which do not implement this method.

update_output()[source]
do_your_job()[source]

Implement this in the concrete class.