Add OrderHistory.time_step property
This commit is contained in:
parent
fd404e2b89
commit
d45c60b764
2 changed files with 27 additions and 12 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue