Add aggregate_orders() function

- the function queries the database and aggregates the ad-hoc orders
  by pixel and time steps into a demand time series
- implement "heavy" integration tests for `aggregate_orders()`
- make `pandas` a package dependency
- streamline the `Config`
This commit is contained in:
Alexander Hess 2021-01-07 23:18:40 +01:00
commit d5b3efbca1
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
10 changed files with 460 additions and 6 deletions

View file

@ -19,7 +19,7 @@ class TestSpecialMethods:
"""`Grid` has a non-literal text representation."""
result = repr(grid)
assert result == f'<Grid: {grid.pixel_area}>'
assert result == f'<Grid: {grid.pixel_area} sqr. km>'
@pytest.mark.db