Add OrderHistory.time_step property

This commit is contained in:
Alexander Hess 2021-01-31 20:06:23 +01:00
commit d45c60b764
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
2 changed files with 27 additions and 12 deletions

View file

@ -39,6 +39,11 @@ class OrderHistory:
# The `_data` are populated by `.aggregate_orders()`.
self._data = None
@property
def time_step(self) -> int:
"""The length of one time step."""
return self._time_step
@property
def totals(self) -> pd.DataFrame:
"""The order totals by `Pixel` and `.time_step`.