Callback triggered by the simulation loop whenever the current dt changes. Any logic that should happen exactly once at the start of each datetime group should happen here.
(self, dt)
| 1459 | self.logger = logger |
| 1460 | |
| 1461 | def on_dt_changed(self, dt): |
| 1462 | """ |
| 1463 | Callback triggered by the simulation loop whenever the current dt |
| 1464 | changes. |
| 1465 | |
| 1466 | Any logic that should happen exactly once at the start of each datetime |
| 1467 | group should happen here. |
| 1468 | """ |
| 1469 | self.datetime = dt |
| 1470 | self.blotter.set_date(dt) |
| 1471 | |
| 1472 | @api_method |
| 1473 | @preprocess(tz=coerce_string(pytz.timezone)) |
no test coverage detected