rice-solar-physics / pydrad

Python tools for setting up HYDRAD runs and parsing output
https://pydrad.readthedocs.io
MIT License
4 stars 3 forks source link

Add convenience property on Strand for easily reading config #142

Closed wtbarnes closed 3 years ago

wtbarnes commented 3 years ago

If the simulation is setup using pydrad, the configuration is stored as an asdf file in the root of the HYDRAD directory. There should be an easy way to access these configuration options from Strand, e.g.

@property
def config(self):
    return pydrad.configure.Configure.load_config(os.path.join(self.hydrad_root, 'pydrad_config.asdf'))