`Simulation.log` unnecessary `if` statement
Logging with Simulation.log
checks for Simulation.debug
each time the function is called. Simulation.debug
should be set only once during initialization and never change.
Move the if
statement from Simulation.log
to Simulation.__init__
and change Simulation.log
accordingly.
Maybe Simulation.log
is no longer required?