def _trj_load_trajectory(self, traj, as_new, load_parameters, load_derived_parameters,<EOL>load_results, load_other_data, recursive, max_depth,<EOL>with_run_information, with_meta_data, force):
<EOL>if (as_new and (load_derived_parameters != pypetconstants.LOAD_NOTHING or<EOL>load_results != pypetconstants.LOAD_NOTHING or<EOL>load_other_data != pypetconstants.LOAD_NOTHING)):<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>if as_new and load_parameters != pypetconstants.LOAD_DATA:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>loadconstants = (pypetconstants.LOAD_NOTHING, pypetconstants.LOAD_SKELETON,<EOL>pypetconstants.LOAD_DATA, pypetconstants.OVERWRITE_DATA)<EOL>if not (load_parameters in loadconstants and load_derived_parameters in loadconstants and<EOL>load_results in loadconstants and load_other_data in loadconstants):<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % str(loadconstants))<EOL><DEDENT>traj._stored = not as_new<EOL>load_data = max(load_parameters, load_derived_parameters, load_results, load_other_data)<EOL>if with_meta_data:<EOL><INDENT>self._trj_load_meta_data(traj, load_data, as_new, with_run_information, force)<EOL><DEDENT>if (load_parameters != pypetconstants.LOAD_NOTHING or<EOL>load_derived_parameters != pypetconstants.LOAD_NOTHING or<EOL>load_results != pypetconstants.LOAD_NOTHING or<EOL>load_other_data != pypetconstants.LOAD_NOTHING):<EOL><INDENT>self._logger.info('<STR_LIT>' % traj.v_name)<EOL><DEDENT>else:<EOL><INDENT>self._logger.info('<STR_LIT>' % traj.v_name)<EOL>return<EOL><DEDENT>maximum_display_other = <NUM_LIT:10><EOL>counter = <NUM_LIT:0><EOL>for children in [self._trajectory_group._v_groups, self._trajectory_group._v_links]:<EOL><INDENT>for hdf5_group_name in children:<EOL><INDENT>hdf5_group = children[hdf5_group_name]<EOL>child_name = hdf5_group._v_name<EOL>load_subbranch = True<EOL>if child_name == '<STR_LIT>':<EOL><INDENT>if as_new:<EOL><INDENT>loading = pypetconstants.LOAD_NOTHING<EOL><DEDENT>else:<EOL><INDENT>loading = load_parameters<EOL><DEDENT><DEDENT>elif child_name == '<STR_LIT>':<EOL><INDENT>loading = load_parameters<EOL><DEDENT>elif child_name == '<STR_LIT>':<EOL><INDENT>loading = load_results<EOL><DEDENT>elif child_name == '<STR_LIT>':<EOL><INDENT>loading = load_derived_parameters<EOL><DEDENT>elif child_name == '<STR_LIT>':<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>loading = load_other_data<EOL>load_subbranch = False<EOL><DEDENT>if loading == pypetconstants.LOAD_NOTHING:<EOL><INDENT>continue<EOL><DEDENT>if load_subbranch:<EOL><INDENT>self._logger.info('<STR_LIT>' %<EOL>(child_name, str(loading)))<EOL><DEDENT>else:<EOL><INDENT>if counter < maximum_display_other:<EOL><INDENT>self._logger.info(<EOL>'<STR_LIT>' % (child_name, str(loading)))<EOL><DEDENT>elif counter == maximum_display_other:<EOL><INDENT>self._logger.info('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>counter += <NUM_LIT:1><EOL><DEDENT>self._tree_load_sub_branch(traj, child_name, load_data=loading, with_links=True,<EOL>recursive=recursive,<EOL>max_depth=max_depth,<EOL>_trajectory=traj, _as_new=as_new,<EOL>_hdf5_group=self._trajectory_group)<EOL><DEDENT><DEDENT>
Loads a single trajectory from a given file.


        :param traj: The trajectory

        :param as_new: Whether to load trajectory as new

        :param load_parameters: How to load parameters and config

        :param load_derived_parameters: How to load derived parameters

        :param load_results: How to load results

        :param load_other_data: How to load anything not within the four subbranches

        :param recursive: If data should be loaded recursively

        :param max_depth: Maximum depth of loading

        :param with_run_information:

            If run information should be loaded

        :param with_meta_data:

            If meta data infor should be loaded

        :param force: Force load in case there is a pypet version mismatch

        You can specify how to load the parameters, derived parameters and results
        as follows:

        :const:`pypet.pypetconstants.LOAD_NOTHING`: (0)

            Nothing is loaded

        :const:`pypet.pypetconstants.LOAD_SKELETON`: (1)

            The skeleton including annotations are loaded, i.e. the items are empty.
            Non-empty items in RAM are left untouched.

        :const:`pypet.pypetconstants.LOAD_DATA`: (2)

            The whole data is loaded.
            Only empty or in RAM non-existing instance are filled with the
            data found on disk.

        :const:`pypet.pypetconstants.OVERWRITE_DATA`: (3)

            The whole data is loaded.
            If items that are to be loaded are already in RAM and not empty,
            they are emptied and new data is loaded from disk.


        If `as_new=True` the old trajectory is loaded into the new one, only parameters can be
        loaded. If `as_new=False` the current trajectory is completely replaced by the one
        on disk, i.e. the name from disk, the timestamp, etc. are assigned to `traj`.