-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
481 extend documentation and toy tutorial with scheduling within the context of a building with PV #534
Conversation
Signed-off-by: F.N. Claessen <felix@seita.nl>
…ames) Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…nger assume utc, but raise instead (see PR #521) Signed-off-by: F.N. Claessen <felix@seita.nl>
…s to be updated by simply running `flexmeasures add toy-account` again Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…able headroom for the battery Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…ion-and-toy-tutorial-with-scheduling-within-the-context-of-a-building-with-pv # Conflicts: # documentation/tut/toy-example-from-scratch.rst # flexmeasures/cli/data_add.py
…th-scheduling-within-the-context-of-a-building-with-pv
… a single row within the multi-row asset chart Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…. no job) Signed-off-by: F.N. Claessen <felix@seita.nl>
…hare a name don't share a color (note that sensors belonging to the same asset aren't allowed to have the same name) Signed-off-by: F.N. Claessen <felix@seita.nl>
--start ${TOMORROW}T07:00+01:00 --duration PT12H \ | ||
--soc-at-start 50% --roundtrip-efficiency 90% | ||
New schedule is stored. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running the tutorial with a fresh DB creates different assets to those shown in the tutorial.
Creating Toy Account
Input:
flexmeasures add toy-account --kind battery
Output:
Created <GenericAsset None: 'toy-battery' (battery)>
Created discharging
Adding transmission zone type ...
Adding NL transmission zone ...
Created day-ahead prices
Created <GenericAsset None: 'toy-solar' (solar)>
Created production
Toy account Toy Account with user toy-user@flexmeasures.io created successfully. You might want to run `flexmeasures show account --id 1`
The sensor recording battery discharging is discharging (ID: 2).
The sensor recording day-ahead prices is day-ahead prices (ID: 3).
The sensor recording solar forecasts is production (ID: 4).
Showing account
Input:
flexmeasures show account --id 1
Output
===========================
Account Toy Account (ID: 1)
===========================
Account has no roles.
All users:
ID Name Email Last Login Roles
---- -------- ------------------------ ------------ -------------
1 toy-user toy-user@flexmeasures.io None account-admin
All assets:
ID Name Type Location
---- ----------- ------- -----------------
1 toy-battery battery (52.374, 4.88969)
3 toy-solar solar (52.374, 4.88969)
In the tutorial, here appears toy-building
, as well.
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…e choice of y-axis ticks) Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl> # Conflicts: # flexmeasures/data/queries/data_sources.py
This reverts commit b393cad.
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
I am still getting the following error when I add a schedule (on different laptop, using a fresh database):
I wonder if you guys have also tried to compute both types of schedules in one run through the tutorial? With It could also be that this behavior is not caused by this PR (and we can merge it), but by some other artifact we need to address some day in another PR. But this is a good opportunity to describe it well. I can now explain a bit more what causes this for me:
|
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
As my previous research showed, an error occurs if there is previous data. It does not seem to matter whether the extra sensor is used in computation or not. What might be the culprit here, is that the pre-existing data is not the same as the new data that would overwrite it (I'm computing a schedule for a time interval which already has a schedule). So I propose to open a new issue to investigate this. Overwriting of pre-existing data might be broken. |
My requests were addressed. Thanks for updating the tutorial @Flix6x :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
…ion-and-toy-tutorial-with-scheduling-within-the-context-of-a-building-with-pv
Most of this PR ended up being about making it technically feasible to create the envisioned chart design in #481, and also making more sensible use of the color encoding and data source attribute. Here's roughly what I did:
Expand tutorial:
Add a chart showing the new schedule[Moved to Expand toy tutorial with a sensor that reports available headroom #584]Try to create the envisioned chart design:
sensors_to_show
, to denote that multiple sensors should be shown together, and deal with all of its implications (axis labels, use of colors, etc.)DataSource
(so that forecasts are visually presented as originating from a forecaster)Add a 'capacity' or 'headroom' sensor whose data is derived from an Asset attribute (capacity) in combination with sensor data (in this case that would only be the solar sensor). I feel that showing the headroom (like in the envisioned chart design) is what makes the example click. I don't have this (yet), but I feel we should first have a work session on derived sensor data (and/or KPIs) before I continue.[Moved to Expand toy tutorial with a sensor that reports available headroom #584]Current status of the chart:
I also encountered a number of fixes that we should definitely cherry-pick for the 0.12 release (see #545). Specifically:
Needs SeitaBV/timely-beliefs#122.
Closes #481.