def load_configuration(self, configuration_file):
if os.path.isfile(configuration_file):<EOL><INDENT>if not isinstance(configuration_file, tb.file.File) and os.path.splitext(configuration_file)[<NUM_LIT:1>].strip().lower() != "<STR_LIT>":<EOL><INDENT>load_configuration_from_text_file(self, configuration_file)<EOL><DEDENT>else:<EOL><INDENT>load_configuration_from_hdf5(self, configuration_file)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>' % configuration_file)<EOL><DEDENT>
Loading configuration

        Parameters
        ----------
        configuration_file : string
            Path to the configuration file (text or HDF5 file).