diff options
Diffstat (limited to 'fg21sim')
| -rw-r--r-- | fg21sim/configs/manager.py | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py index 44df01c..ce376aa 100644 --- a/fg21sim/configs/manager.py +++ b/fg21sim/configs/manager.py @@ -544,6 +544,21 @@ class ConfigManager:          }          return logconf +    @property +    def cosmology(self): +        """ +        Get the cosmological parameters and organize them as an dictionary +        for ``Cosmology`` initialization. +        """ +        conf = self.get("cosmology") +        cosmoconf = { +            "H0": conf["H0"], +            "OmegaM0": conf["OmegaM0"], +            "Omegab0": conf["Omegab0"], +            "sigma8": conf["sigma8"], +        } +        return cosmoconf +      def dump(self, from_default=False, flatten=False):          """          Dump the configurations as plain Python dictionary. | 
