Source code for sofia_redux.scan.custom.example.info.info

# Licensed under a 3-clause BSD style license - see LICENSE.rst

from sofia_redux.scan.simulation.info import SimulationInfo

__all__ = ['ExampleInfo']


[docs] class ExampleInfo(SimulationInfo): def __init__(self, configuration_path=None): """ Initialize an ExampleInfo object. Parameters ---------- configuration_path : str, optional An alternate directory path to the configuration tree to be used during the reduction. The default is <package>/data/configurations. """ super().__init__(configuration_path=configuration_path) self.name = 'example'
[docs] def get_name(self): """ Return the name of the information. Returns ------- name : str """ if self.instrument is None or self.instrument.name is None: return super().get_name() return self.instrument.name
[docs] @staticmethod def get_file_id(): """ Return the file ID. Returns ------- str """ return "EXPL"