3.10.1.2.1.1. opengate.actors.actoroutput

3.10.1.2.1.1.1. Classes

BaseUserInterfaceToActorOutput

UserInterfaceToActorOutputUsingDataItemContainer

UserInterfaceToActorOutputImage

ActorOutputBase

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

MergeableActorOutput

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

ActorOutputUsingDataItemContainer

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

ActorOutputImage

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

ActorOutputSingleImage

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

ActorOutputSingleMeanImage

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

ActorOutputSingleImageWithVariance

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

ActorOutputQuotientImage

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

ActorOutputQuotientMeanImage

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

ActorOutputRoot

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

3.10.1.2.1.1.2. Functions

_setter_hook_belongs_to(self, belongs_to)

_setter_hook_active(self, active)

3.10.1.2.1.1.3. Module Contents

class opengate.actors.actoroutput.BaseUserInterfaceToActorOutput(belongs_to_actor, user_output_name, kwargs_for_interface_calls=None)[source]
_known_attributes = ('__setstate__', '__getstate__', 'user_output_name', 'belongs_to_actor', '_kwargs_for_interface_calls')[source]
user_output_name[source]
belongs_to_actor[source]
__getstate__()[source]

For earlier python version (<3.11), __getstate__ may not be defined. We provide a simple workaround here to return a copy of the internal dict.

property _user_output[source]
property active[source]
get_output_path(**kwargs)[source]
property write_to_disk[source]
property output_filename[source]
property item_suffix[source]
__getattr__(item)[source]
__setattr__(item, value)[source]
class opengate.actors.actoroutput.UserInterfaceToActorOutputUsingDataItemContainer(*args, item=0, **kwargs)[source]

Bases: BaseUserInterfaceToActorOutput

class opengate.actors.actoroutput.UserInterfaceToActorOutputImage(*args, item=0, **kwargs)[source]

Bases: UserInterfaceToActorOutputUsingDataItemContainer

property image[source]
opengate.actors.actoroutput._setter_hook_belongs_to(self, belongs_to)[source]
opengate.actors.actoroutput._setter_hook_active(self, active)[source]
class opengate.actors.actoroutput.ActorOutputBase(*args, **kwargs)[source]

Bases: opengate.base.GateObject

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.

belongs_to: str[source]
keep_data_in_memory: bool[source]
_default_interface_class[source]
default_suffix = None[source]
user_info_defaults[source]
classmethod get_default_interface_class()[source]
data_per_run[source]
merged_data = None[source]
__can_be_deactivated__ = False[source]
__len__()[source]
abstract set_write_to_disk(value, **kwargs)[source]
abstract get_write_to_disk(**kwargs)[source]
abstract set_output_filename(value, **kwargs)[source]
abstract get_output_filename(**kwargs)[source]
abstract get_active(**kwargs)[source]
abstract set_active(value, **kwargs)[source]
get_item_suffix(**kwargs)[source]
abstract set_item_suffix(value, **kwargs)[source]
property belongs_to_actor[source]
initialize()[source]
_generate_auto_output_filename(**kwargs)[source]
_compose_output_path(which, output_filename)[source]
get_output_path(which='merged', **kwargs)[source]
get_output_path_as_string(**kwargs)[source]
close()[source]

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

abstract get_data(**kwargs)[source]
abstract store_data(*args, **kwargs)[source]
abstract write_data(*args, **kwargs)[source]
abstract write_data_if_requested(**kwargs)[source]
abstract load_data(which)[source]
class opengate.actors.actoroutput.MergeableActorOutput(*args, **kwargs)[source]

Bases: ActorOutputBase

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.

merge_data_after_simulation: bool[source]
keep_data_per_run: bool[source]
user_info_defaults[source]
merge_data_from_runs()[source]
merge_into_merged_data(data)[source]
end_of_run(run_index)[source]
end_of_simulation(**kwargs)[source]
class opengate.actors.actoroutput.ActorOutputUsingDataItemContainer(*args, **kwargs)[source]

Bases: MergeableActorOutput

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.

data_item_config: box.Box | None[source]
user_info_defaults[source]
data_container_class = None[source]
_default_interface_class[source]
initialize_cpp_parameters()[source]
_fatal_unknown_item(item)[source]
set_write_to_disk(value, item=0)[source]
get_write_to_disk(item=0)[source]
set_active(value, item=0)[source]
get_active(item=0)[source]
set_output_filename(value, item=0)[source]
get_output_filename(item=0)[source]
get_item_suffix(item=0, **kwargs)[source]
set_item_suffix(value, item=0, **kwargs)[source]
_generate_auto_output_filename(item=0)[source]
_insert_item_suffix(output_filename, item)[source]
_collect_item_identifiers(item)[source]
get_output_path(which='merged', item=0, always_return_dict=False, **kwargs)[source]
get_data_container(which)[source]
get_data(which='merged', item=0)[source]
store_data(which, *data)[source]

data can be either the user data to be wrapped into a DataContainer class or an already wrapped DataContainer class.

store_meta_data(which, **meta_data)[source]

data can be either the user data to be wrapped into a DataContainer class or an already wrapped DataContainer class.

abstract load_data(which)[source]
collect_data(which, return_identifier=False)[source]
write_data(which='all', item='all', **kwargs)[source]
write_data_if_requested(which='all', item='all', **kwargs)[source]
end_of_simulation(item='all', **kwargs)[source]
class opengate.actors.actoroutput.ActorOutputImage(*args, **kwargs)[source]

Bases: ActorOutputUsingDataItemContainer

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.

_default_interface_class[source]
default_suffix = 'mhd'[source]
set_image_properties(which, **kwargs)[source]
get_image_properties(which, item=0)[source]
create_empty_image(run_index, size, spacing, origin=None, **kwargs)[source]
class opengate.actors.actoroutput.ActorOutputSingleImage(*args, **kwargs)[source]

Bases: ActorOutputImage

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.

data_container_class[source]
class opengate.actors.actoroutput.ActorOutputSingleMeanImage(*args, **kwargs)[source]

Bases: ActorOutputImage

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.

data_container_class[source]
class opengate.actors.actoroutput.ActorOutputSingleImageWithVariance(*args, **kwargs)[source]

Bases: ActorOutputImage

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.

data_container_class[source]
class opengate.actors.actoroutput.ActorOutputQuotientImage(*args, **kwargs)[source]

Bases: ActorOutputImage

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.

data_container_class[source]
class opengate.actors.actoroutput.ActorOutputQuotientMeanImage(*args, **kwargs)[source]

Bases: ActorOutputImage

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.

data_container_class[source]
class opengate.actors.actoroutput.ActorOutputRoot(*args, **kwargs)[source]

Bases: ActorOutputBase

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.

output_filename: str[source]
write_to_disk: bool[source]
keep_data_in_memory: bool[source]
user_info_defaults[source]
default_suffix = 'root'[source]
get_output_path(*args, **kwargs)[source]
initialize()[source]
initialize_cpp_parameters()[source]