def _prm_load_parameter_or_result(self, instance,<EOL>load_data=pypetconstants.LOAD_DATA,<EOL>load_only=None,<EOL>load_except=None,<EOL>load_flags=None,<EOL>with_links=False,<EOL>recursive=False,<EOL>max_depth=None,<EOL>_hdf5_group=None,):
if load_data == pypetconstants.LOAD_NOTHING:<EOL><INDENT>return<EOL><DEDENT>if _hdf5_group is None:<EOL><INDENT>_hdf5_group = self._all_get_node_by_name(instance.v_full_name)<EOL><DEDENT>if load_data == pypetconstants.OVERWRITE_DATA:<EOL><INDENT>if instance.v_is_parameter and instance.v_locked:<EOL><INDENT>self._logger.debug('<STR_LIT>' %<EOL>instance.v_full_name)<EOL>return<EOL><DEDENT>instance.f_empty()<EOL>instance.v_annotations.f_empty()<EOL>instance.v_comment = '<STR_LIT>'<EOL><DEDENT>self._all_load_skeleton(instance, _hdf5_group)<EOL>instance._stored = True<EOL>if isinstance(load_only, str):<EOL><INDENT>load_only = [load_only]<EOL><DEDENT>if isinstance(load_except, str):<EOL><INDENT>load_except = [load_except]<EOL><DEDENT>if load_data == pypetconstants.LOAD_SKELETON:<EOL><INDENT>self._node_processing_timer.signal_update()<EOL>return<EOL><DEDENT>elif load_only is not None:<EOL><INDENT>if load_except is not None:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>elif instance.v_is_parameter and instance.v_locked:<EOL><INDENT>raise pex.ParameterLockedException('<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>instance.v_full_name)<EOL><DEDENT>self._logger.debug('<STR_LIT>' %<EOL>str(load_only))<EOL>load_only = set(load_only)<EOL><DEDENT>elif load_except is not None:<EOL><INDENT>if instance.v_is_parameter and instance.v_locked:<EOL><INDENT>raise pex.ParameterLockedException('<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>instance.v_full_name)<EOL><DEDENT>self._logger.debug('<STR_LIT>' %<EOL>str(load_except))<EOL>load_except = set(load_except)<EOL><DEDENT>elif not instance.f_is_empty():<EOL><INDENT>self._node_processing_timer.signal_update()<EOL>return<EOL><DEDENT>full_name = instance.v_full_name<EOL>self._logger.debug('<STR_LIT>' % full_name)<EOL>load_dict = {}  <EOL>if load_flags is None:<EOL><INDENT>load_flags = {}<EOL><DEDENT>try:<EOL><INDENT>instance_flags = instance._load_flags().copy() <EOL><DEDENT>except AttributeError:<EOL><INDENT>instance_flags = {}<EOL><DEDENT>instance_flags.update(load_flags)<EOL>load_flags = instance_flags<EOL>self._prm_load_into_dict(full_name=full_name,<EOL>load_dict=load_dict,<EOL>hdf5_group=_hdf5_group,<EOL>instance=instance,<EOL>load_only=load_only,<EOL>load_except=load_except,<EOL>load_flags=load_flags)<EOL>if load_only is not None:<EOL><INDENT>if len(load_only) > <NUM_LIT:0>:<EOL><INDENT>self._logger.warning('<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>(str(load_only), full_name))<EOL><DEDENT><DEDENT>elif load_except is not None:<EOL><INDENT>if len(load_except) > <NUM_LIT:0>:<EOL><INDENT>self._logger.warning(('<STR_LIT>'<EOL>'<STR_LIT>' % (str(load_except), full_name)))<EOL><DEDENT><DEDENT>if load_dict:<EOL><INDENT>try:<EOL><INDENT>instance._load(load_dict)<EOL>if instance.v_is_parameter:<EOL><INDENT>instance.f_lock()<EOL><DEDENT><DEDENT>except:<EOL><INDENT>self._logger.error(<EOL>'<STR_LIT>' % full_name)<EOL>raise<EOL><DEDENT><DEDENT>self._node_processing_timer.signal_update()<EOL>
Loads a parameter or result from disk.

        :param instance:

            Empty parameter or result instance

        :param load_data:

            How to load stuff

        :param load_only:

            List of data keys if only parts of a result should be loaded

        :param load_except:

            List of data key that should NOT be loaded.

        :param load_flags:

            Dictionary to determine how something is loaded

        :param with_links:

            Placeholder, because leaves have no links

        :param recursive:

            Dummy variable, no-op because leaves have no children

        :param max_depth:

            Dummy variable, no-op because leaves have no children

        :param _hdf5_group:

            The corresponding hdf5 group of the instance