Skip to content

Commit

Permalink
remove consumption_price_sensor from flex_model
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Garcia Reolid <[email protected]>
  • Loading branch information
victorgarcia98 committed Jul 25, 2023
1 parent b991863 commit 6822958
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion documentation/api/notation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ Here are the three types of flexibility models you can expect to be built-in:

2) For **shiftable processes**

- ``consumption_price_sensor``: it defines the utility (economic, environmental, ) in each time period. It has units of quantity/energy, for example, EUR/kWh.
- ``power``: nominal power of the load.
- ``duration``: time that the load last.
- ``optimization_sense``: objective of the scheduler, to maximize or minimize.
Expand Down
4 changes: 0 additions & 4 deletions flexmeasures/data/schemas/scheduling/shiftable_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
)


from flexmeasures.data.schemas.sensors import SensorIdField

from enum import Enum


Expand All @@ -35,8 +33,6 @@ class OptimizationSense(Enum):


class ShiftableLoadFlexModelSchema(Schema):
# it defines the utility (economic, environmental, ) in each time period. It has units of quantity/energy, for example, EUR/kWh.
consumption_price_sensor = SensorIdField(data_key="consumption-price-sensor")
# time that the load last.
duration = DurationField(required=True)
# nominal power of the load.
Expand Down
3 changes: 0 additions & 3 deletions flexmeasures/data/schemas/tests/test_scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def test_shiftable_load_flex_model_load(db, app, setup_dummy_sensors):

shiftable_load_flex_model = schema.load(
{
"consumption-price-sensor": sensor1.id,
"duration": "PT4H",
"power": 30.0,
"time-restrictions": [
Expand All @@ -45,7 +44,6 @@ def test_shiftable_load_flex_model_load_type(db, app, setup_dummy_sensors):

shiftable_load_flex_model = schema.load(
{
"consumption-price-sensor": sensor1.id,
"duration": "PT4H",
"power": 30.0,
"time-restrictions": [
Expand All @@ -68,7 +66,6 @@ def test_shiftable_load_flex_model_load_type(db, app, setup_dummy_sensors):
{
"duration": "PT4H",
"power": 30.0,
"consumption-price-sensor": sensor1.id,
"time-restrictions": [
{"start": "2023-01-01T00:00:00+00:00", "duration": "PT3H"}
],
Expand Down

0 comments on commit 6822958

Please sign in to comment.