I randomly stumbled upon this line in the the Simulation class constructor. The start_datetime argument has the default argument datetime.now(), which is evaluated when the class is defined, and not when it is instantiated. Alternatively the default argument could be None, and then redefined to datetime.now() inside the function body.
https://github.com/fossilfree/numerous/blob/121cd00456f263cab9def10cb99a21655f5832c9/numerous/engine/simulation/simulation.py#L31
I randomly stumbled upon this line in the the
Simulation
class constructor. Thestart_datetime
argument has the default argumentdatetime.now()
, which is evaluated when the class is defined, and not when it is instantiated. Alternatively the default argument could beNone
, and then redefined todatetime.now()
inside the function body.