-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
The RCE class changes the values of the input atmosphere:
Line 409 in 21e6c81
| self.atmosphere["T"] += self.radiation["net_htngrt"] * self.timestep_days |
This can have unexpected side effects if a user wants to do several RCE runs (even with newly created RCE instances) consecutively with the same input atmosphere.
To prevent side effects, it would be preferable to make a deepcopy of the input atmosphere when initializing the RCE class:
Line 157 in 21e6c81
| self.atmosphere = atmosphere |
If this is not desirable for other reasons, the documentation of the atmosphere parameter should at least contain a clear warning that this class will modify the input variable.
Metadata
Metadata
Assignees
Labels
No labels