jrenaud90 / TidalPy

Software suite to perform solid-body tidal dissipation calculations for rocky and icy worlds
Other
15 stars 3 forks source link

Add method to world class to allow for more elegant config changes #20

Open jrenaud90 opened 5 years ago

jrenaud90 commented 5 years ago

Currently, to change a configuration on a planet you need to A). know a potentially complex series of configuration keys and B). make a separate call to the planet's reinit(). For example to change the rheology of the earth's lower mantle: earth.config['layers']['Lower_Mantle']['rheology']['compliance_model'] = 'Andrade' earth.reinit()

All of those keys are case sensitive and any mistake will cause a crash due to KeyError. This can be confusing for someone new to TidalPy.

It would be nice to have a method that: