21cmfast / 21cmFAST

Official repository for 21cmFAST: a code for generating fast simulations of the cosmological 21cm signal
MIT License
58 stars 38 forks source link

[Feature Req.] Automatically Update Config File #255

Closed steven-murray closed 3 months ago

steven-murray commented 3 years ago

Is your feature request related to a problem? Please describe.

Since we updated the configuration schema, there is a warning output by default if a user had a config from a previous installation. However, this warning happens EVERY TIME 21cmFAST is loaded.

Describe the solution you'd like

We should be able to detect when that warning happens and write the config automatically, so that it doesn't happen again.

Describe alternatives you've considered

Perhaps it should be a config option as to whether to auto-update the config :-)