1
0
mirror of https://github.com/gsi-upm/soil synced 2025-09-18 22:22:20 +00:00

Add conditional time values

This commit is contained in:
J. Fernando Sánchez
2022-10-17 13:58:14 +02:00
parent 77d08fc592
commit 5d759d0072
7 changed files with 155 additions and 111 deletions

View File

@@ -169,7 +169,7 @@ class BaseEnvironment(Model):
Advance one step in the simulation, and update the data collection and scheduler appropriately
"""
super().step()
self.logger.info(f"--- Step {self.now:^5} ---")
self.logger.info(f"--- Step: {self.schedule.steps:^5} - Time: {self.now:^5} ---")
self.schedule.step()
self.datacollector.collect(self)