@classmethod
    def read(cls, filename, only_initial=True):

        self = cls()
        self.use_geometry(filename)
        self.use_quantities(filename, only_initial=only_initial)
        self.use_sources(filename)
        self.use_monochromatic_config(filename)
        self.use_run_config(filename)
        self.use_image_config(filename)
        self.use_output_config(filename)
        return self
Read in a previous model file
dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/model/model.py/Model.read