-
Notifications
You must be signed in to change notification settings - Fork 38
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
Feature/planning/soft site power capacities #1118
base: feature/planning/relaxed-scheduler
Are you sure you want to change the base?
Feature/planning/soft site power capacities #1118
Conversation
Signed-off-by: Victor Garcia Reolid <[email protected]>
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.
I'll think about naming.
Signed-off-by: Victor Garcia Reolid <[email protected]>
Signed-off-by: Victor Garcia Reolid <[email protected]>
This PR only addresses site level power constraints at the moment and not any device level constraints. As it stands, I feel that soft constraints for site level power would be more cleanly modelled as site level commitments (to the DSO) based on the contracted capacities, with some (assumed, or even known) penalty. That should mostly happen outside of the device scheduler. If we do address device-level soft constraints, we should think about them too in the context of introducing device-level commitments (two birds, one stone). |
I'm not sure we can model the mechanism that these PR introduces via commitments as they are defined at the moment. Let's say we want to add two soft limits at 90 kW to a site of 100 kW. We would add two commitments:
This would be equivalent to have a single commitment:
This applies in general. For example, if we have two commitments, the EMS-commitment couples eq. is: which is, inf fact, equivalent of having an single equivalent commitment defined as: with the equivalent prices: How is it modeled in this PR?Parameters
Variables
Constraints
Commitments modelThe commitment appear in two equations: def ems_flow_commitment_equalities(m, j):
"""Couple EMS flows (sum over devices) to commitments."""
return (
0,
sum(m.commitment_quantity[:, j])
+ sum(m.commitment_downwards_deviation[:, j])
+ sum(m.commitment_upwards_deviation[:, j])
- sum(m.ems_power[:, j]),
0,
) Which is equivalent to and the objective functions: for j in m.j:
for c in m.c:
costs += m.commitment_downwards_deviation[c, j] * m.down_price[c, j]
costs += m.commitment_upwards_deviation[c, j] * m.up_price[c, j] |
Counterexample: if the aggregate power flow is 50 kW, then in your first example the costs are 0, but in your second example the costs are 5$/h (assuming your prices are in $/MWh). |
True, good point. Case A)
Case B)
Wouldn't case A) be unbounded?Let's assume In general, we can set |
…ng/soft-site-power-capacities
Signed-off-by: Victor Garcia Reolid <[email protected]>
* add types * add changelog
* docs: add major caveat for ProcessScheduler Signed-off-by: F.N. Claessen <[email protected]> * fix: old class name Signed-off-by: F.N. Claessen <[email protected]> * style: linebreaks before headers Signed-off-by: F.N. Claessen <[email protected]> * docs: add cross reference Signed-off-by: F.N. Claessen <[email protected]> * fix: space Signed-off-by: F.N. Claessen <[email protected]> * docs: clarify BREAKABLE process type Signed-off-by: F.N. Claessen <[email protected]> * docs: introduce section on flex models Signed-off-by: F.N. Claessen <[email protected]> * docs: extend explanation of inflexible-device-sensors Signed-off-by: F.N. Claessen <[email protected]> * fix: changelog entry for #1131 Signed-off-by: F.N. Claessen <[email protected]> * fix: missing space Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: Victor Garcia Reolid <[email protected]>
…nima and soc-maxima (introduced in #680) (#1135) Signed-off-by: F.N. Claessen <[email protected]>
* support most_recent_only, including new index. Also stopping a previous, very old, deprecation of the same name. Signed-off-by: Nicolas Höning <[email protected]> * chore: upgrade timely-beliefs dep Signed-off-by: F.N. Claessen <[email protected]> * clearer documentation of (new) search parameters Signed-off-by: Nicolas Höning <[email protected]> * add changelog entry Signed-off-by: Nicolas Höning <[email protected]> * move 0.23 PRs to the new 0.23 section (were erronously in 0.22) Signed-off-by: Nicolas Höning <[email protected]> --------- Signed-off-by: Nicolas Höning <[email protected]> Signed-off-by: F.N. Claessen <[email protected]> Co-authored-by: F.N. Claessen <[email protected]>
* Basic sensor info to sensor page Signed-off-by: Nikolai <[email protected]> * Move styles to .css + make table vertical Signed-off-by: Nikolai <[email protected]> * remove unwanted css * update bootstrap layout * remove info from header * change title and capitalize the headers * add table in a column div * add sensor name * pass only sensor instead of sensor_id to show sensor page --------- Signed-off-by: Nikolai <[email protected]> Signed-off-by: Nicolas Höning <[email protected]> Co-authored-by: Nikolai <[email protected]> Co-authored-by: Ahmad Wahid <[email protected]> Co-authored-by: Nicolas Höning <[email protected]>
* fix: use official OS name Signed-off-by: F.N. Claessen <[email protected]> * style: use line block to add space between table of contents and note Signed-off-by: F.N. Claessen <[email protected]> * docs: add port note for macOS users in another relevant place Signed-off-by: F.N. Claessen <[email protected]> * fix: link to URL Signed-off-by: F.N. Claessen <[email protected]> * docs: add comment in main body about where the FlexMeasures UI would normally be accessible Signed-off-by: F.N. Claessen <[email protected]> * docs: add port note for macOS users in the "On your PC" tab Signed-off-by: F.N. Claessen <[email protected]> * refactor: reuse note in two places Signed-off-by: F.N. Claessen <[email protected]> * docs: reference the same port note for docker+macOS users in the section about hosting with docker Signed-off-by: F.N. Claessen <[email protected]> * refactor: move tip to first occurrence of the `docker` command Signed-off-by: F.N. Claessen <[email protected]> * refactor: merge paragraphs Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]>
* style: remove non-breaking spaces from base template Signed-off-by: F.N. Claessen <[email protected]> * fix: update display property for Bootstrap >= 4 Signed-off-by: F.N. Claessen <[email protected]> * docs: put back inline comment removed in #1058 Signed-off-by: F.N. Claessen <[email protected]> * docs: expand on rationale in inline comment Signed-off-by: F.N. Claessen <[email protected]> * docs: changelog entry Signed-off-by: F.N. Claessen <[email protected]> * fix: breakpoint for collapsing menu and moving tooltip to caption should coincide also for intermediate screen sizes Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]>
* feat: zoom-in Signed-off-by: Victor Garcia Reolid <[email protected]> * docs: add changelog entry Signed-off-by: Victor Garcia Reolid <[email protected]> --------- Signed-off-by: Victor Garcia Reolid <[email protected]>
…1129) * fix: support saving instantaneous beliefs as a list of one element Signed-off-by: Victor Garcia Reolid <[email protected]> * assert -> NotImplementedError Signed-off-by: Victor Garcia Reolid <[email protected]> * fix typo Signed-off-by: Victor Garcia Reolid <[email protected]> * improve message and fix test Signed-off-by: Victor Garcia Reolid <[email protected]> * fix: typo Signed-off-by: Victor Garcia Reolid <[email protected]> * move check to a schema validator Signed-off-by: Victor Garcia Reolid <[email protected]> * docs: changelog entry Signed-off-by: F.N. Claessen <[email protected]> * docs: API changelog entry Signed-off-by: F.N. Claessen <[email protected]> * style: consistent spacing Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: Victor Garcia Reolid <[email protected]> Signed-off-by: F.N. Claessen <[email protected]> Co-authored-by: F.N. Claessen <[email protected]>
* feat: dynamic account colors Added options to add a priamary and secondary color when creating an account Also fixed typo comment A line in the css wasnt commented properly * chore: removed experimental code * refactor: edgecase handling and more - Handled edge case for fetching color setting when accoutn has no consultant - wrote test for color computation utils - type hints additons - ignored some docker volume folders * chore: clearing unwanted DB changes * refactor: code improvements - type hinting - segregattion of fucntionalities The color hex validation is now in a seperate fuciton in the coding_utils file * chore: removed Alembic comments * chore: linting code * fix: removed unwanted classes * fix: removed unwanted css clases * chore: cleared duplicate default definations * chore: relocate hex color validation fucntion * chore: clean up * fix: resolving migration issues - issue is being caused because of the existence of TWO HEADS Foxed by manually editing the down_revisions of the new migration file * chore: linting * chore: more linting :) * chore: more linting :) * chore: more linting :) * chore: resolving test issues * chore: few changes - type hint resolution - typo fixing - misc * docs: added changelog for new feature(dynamic colors) * docs: just a missing space Signed-off-by: Felix Claessen <[email protected]> * docs: mention white-labeling in changelog entry Signed-off-by: Nicolas Höning <[email protected]> --------- Signed-off-by: Felix Claessen <[email protected]> Signed-off-by: Nicolas Höning <[email protected]> Co-authored-by: Felix Claessen <[email protected]> Co-authored-by: Nicolas Höning <[email protected]>
* refactor: sync arg name Signed-off-by: F.N. Claessen <[email protected]> * refactor: sync internal property name Signed-off-by: F.N. Claessen <[email protected]> * refactor: flatten elif block Signed-off-by: F.N. Claessen <[email protected]> * refactor: allow string deserialization and allow setting a default source unit for interpreting values without a unit Signed-off-by: F.N. Claessen <[email protected]> * refactor: copy convert method Signed-off-by: F.N. Claessen <[email protected]> * fix: type annotation Signed-off-by: F.N. Claessen <[email protected]> * refactor: copy _serialize method Signed-off-by: F.N. Claessen <[email protected]> * refactor: adapt _serialize method Signed-off-by: F.N. Claessen <[email protected]> * refactor: adapt docstring Signed-off-by: F.N. Claessen <[email protected]> * refactor: update error message Signed-off-by: F.N. Claessen <[email protected]> * refactor: update type annotation Signed-off-by: F.N. Claessen <[email protected]> * refactor: merge schemas Signed-off-by: F.N. Claessen <[email protected]> * refactor: reduce number of blank lines Signed-off-by: F.N. Claessen <[email protected]> * fix: deprecate old classes Signed-off-by: F.N. Claessen <[email protected]> * fix: duplicate import Signed-off-by: F.N. Claessen <[email protected]> * docs: document status quo Signed-off-by: F.N. Claessen <[email protected]> * style: black Signed-off-by: F.N. Claessen <[email protected]> * style: flake8 Signed-off-by: F.N. Claessen <[email protected]> * feature: allow interpreting float values as quantities based on a unit defined elsewhere, and specifically, let the StorageScheduler get its default SoC unit from the soc-unit field, which lets us allow time series values to be specified as string quantities while preserving backwards compatibility Signed-off-by: F.N. Claessen <[email protected]> * fix: maintain backwards compatibility for transforming Float fields into Quantity fields, by returning the magnitude upon deserialization Signed-off-by: F.N. Claessen <[email protected]> * docs: grammar Signed-off-by: F.N. Claessen <[email protected]> * docs: add todo Signed-off-by: F.N. Claessen <[email protected]> * fix: tests Signed-off-by: F.N. Claessen <[email protected]> * style: black Signed-off-by: F.N. Claessen <[email protected]> * docs: update V2G flex-model Signed-off-by: F.N. Claessen <[email protected]> * docs: update trigger endpoint examples Signed-off-by: F.N. Claessen <[email protected]> * docs: update other tutorials Signed-off-by: F.N. Claessen <[email protected]> * docs: update scheduling feature section Signed-off-by: F.N. Claessen <[email protected]> * feat: convert schedule results ffrom MW to sensor unit Signed-off-by: Victor Garcia Reolid <[email protected]> * feat: minimum list length for soc-gain and soc-usage Signed-off-by: F.N. Claessen <[email protected]> * refactor: apply default SoC unit to all fields starting with "soc_" Signed-off-by: F.N. Claessen <[email protected]> * refactor: move warning Signed-off-by: F.N. Claessen <[email protected]> * Revert "refactor: move warning" This reverts commit 8cfe9fd. * fix: update test Signed-off-by: F.N. Claessen <[email protected]> * refactor: move deserialization logic to dedicated class methods Signed-off-by: F.N. Claessen <[email protected]> * docs: fix comment about converting time series using to_unit Signed-off-by: F.N. Claessen <[email protected]> * refactor: rename new schema Signed-off-by: F.N. Claessen <[email protected]> * refactor: sync code order: 1) Sensor, 2) time series, 3) Quantity Signed-off-by: F.N. Claessen <[email protected]> * fix: add test and add missing logic for handling a list of dictionaries representing a time series Signed-off-by: F.N. Claessen <[email protected]> * fix: check for real numeric values Signed-off-by: F.N. Claessen <[email protected]> * docs: changelog entries Signed-off-by: F.N. Claessen <[email protected]> * docs: fix typo Signed-off-by: F.N. Claessen <[email protected]> * style: be more explicit about requiring the soc-unit field to be set Signed-off-by: F.N. Claessen <[email protected]> * docs: mention the new Marshmallow field Signed-off-by: F.N. Claessen <[email protected]> * docs: advise setting a unit per field explicitly Signed-off-by: F.N. Claessen <[email protected]> * refactor: simplify if statement Signed-off-by: F.N. Claessen <[email protected]> * refactor: move soc-unit guesswork into schema Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]> Signed-off-by: Victor Garcia Reolid <[email protected]> Signed-off-by: Felix Claessen <[email protected]> Co-authored-by: Victor Garcia Reolid <[email protected]>
* refactor: sync arg name Signed-off-by: F.N. Claessen <[email protected]> * refactor: sync internal property name Signed-off-by: F.N. Claessen <[email protected]> * refactor: flatten elif block Signed-off-by: F.N. Claessen <[email protected]> * refactor: allow string deserialization and allow setting a default source unit for interpreting values without a unit Signed-off-by: F.N. Claessen <[email protected]> * refactor: copy convert method Signed-off-by: F.N. Claessen <[email protected]> * fix: type annotation Signed-off-by: F.N. Claessen <[email protected]> * refactor: copy _serialize method Signed-off-by: F.N. Claessen <[email protected]> * refactor: adapt _serialize method Signed-off-by: F.N. Claessen <[email protected]> * refactor: adapt docstring Signed-off-by: F.N. Claessen <[email protected]> * refactor: update error message Signed-off-by: F.N. Claessen <[email protected]> * refactor: update type annotation Signed-off-by: F.N. Claessen <[email protected]> * refactor: merge schemas Signed-off-by: F.N. Claessen <[email protected]> * refactor: reduce number of blank lines Signed-off-by: F.N. Claessen <[email protected]> * fix: deprecate old classes Signed-off-by: F.N. Claessen <[email protected]> * fix: duplicate import Signed-off-by: F.N. Claessen <[email protected]> * docs: document status quo Signed-off-by: F.N. Claessen <[email protected]> * style: black Signed-off-by: F.N. Claessen <[email protected]> * style: flake8 Signed-off-by: F.N. Claessen <[email protected]> * feature: allow interpreting float values as quantities based on a unit defined elsewhere, and specifically, let the StorageScheduler get its default SoC unit from the soc-unit field, which lets us allow time series values to be specified as string quantities while preserving backwards compatibility Signed-off-by: F.N. Claessen <[email protected]> * fix: maintain backwards compatibility for transforming Float fields into Quantity fields, by returning the magnitude upon deserialization Signed-off-by: F.N. Claessen <[email protected]> * docs: grammar Signed-off-by: F.N. Claessen <[email protected]> * docs: add todo Signed-off-by: F.N. Claessen <[email protected]> * fix: tests Signed-off-by: F.N. Claessen <[email protected]> * style: black Signed-off-by: F.N. Claessen <[email protected]> * docs: update V2G flex-model Signed-off-by: F.N. Claessen <[email protected]> * docs: update trigger endpoint examples Signed-off-by: F.N. Claessen <[email protected]> * docs: update other tutorials Signed-off-by: F.N. Claessen <[email protected]> * docs: update scheduling feature section Signed-off-by: F.N. Claessen <[email protected]> * feat: convert schedule results ffrom MW to sensor unit Signed-off-by: Victor Garcia Reolid <[email protected]> * feat: minimum list length for soc-gain and soc-usage Signed-off-by: F.N. Claessen <[email protected]> * refactor: apply default SoC unit to all fields starting with "soc_" Signed-off-by: F.N. Claessen <[email protected]> * refactor: move warning Signed-off-by: F.N. Claessen <[email protected]> * Revert "refactor: move warning" This reverts commit 8cfe9fd. * fix: update test Signed-off-by: F.N. Claessen <[email protected]> * refactor: move deserialization logic to dedicated class methods Signed-off-by: F.N. Claessen <[email protected]> * docs: fix comment about converting time series using to_unit Signed-off-by: F.N. Claessen <[email protected]> * refactor: rename new schema Signed-off-by: F.N. Claessen <[email protected]> * refactor: sync code order: 1) Sensor, 2) time series, 3) Quantity Signed-off-by: F.N. Claessen <[email protected]> * fix: add test and add missing logic for handling a list of dictionaries representing a time series Signed-off-by: F.N. Claessen <[email protected]> * fix: check for real numeric values Signed-off-by: F.N. Claessen <[email protected]> * fix: remove section on singular vs plural keys, which is no longer valid for crucial endpoints Signed-off-by: F.N. Claessen <[email protected]> * feature: add section on variable quantities Signed-off-by: F.N. Claessen <[email protected]> * fix: update section on scheduling; specifically, most flex-context and flex-model fields are now variable quantity fields, so I've updated the footnote to explain the few fields that aren't (yet) a variable quantity field. Signed-off-by: F.N. Claessen <[email protected]> * fix: footnote order Signed-off-by: F.N. Claessen <[email protected]> * fix: lolcats grammar Signed-off-by: F.N. Claessen <[email protected]> * feature: explain the possibilities of the `TimedEventSchema` Signed-off-by: F.N. Claessen <[email protected]> * style: string asset types Signed-off-by: F.N. Claessen <[email protected]> * docs: changelog entries Signed-off-by: F.N. Claessen <[email protected]> * docs: fix typo Signed-off-by: F.N. Claessen <[email protected]> * style: be more explicit about requiring the soc-unit field to be set Signed-off-by: F.N. Claessen <[email protected]> * docs: add note about units living on the sensor Signed-off-by: F.N. Claessen <[email protected]> * docs: add cross-reference Signed-off-by: F.N. Claessen <[email protected]> * docs: API changelog entry Signed-off-by: F.N. Claessen <[email protected]> * docs: main changelog entry Signed-off-by: F.N. Claessen <[email protected]> * docs: mention the new Marshmallow field Signed-off-by: F.N. Claessen <[email protected]> * docs: advise setting a unit per field explicitly Signed-off-by: F.N. Claessen <[email protected]> * refactor: simplify if statement Signed-off-by: F.N. Claessen <[email protected]> * refactor: move soc-unit guesswork into schema Signed-off-by: F.N. Claessen <[email protected]> * refactor: set reference caption explicitly Signed-off-by: F.N. Claessen <[email protected]> * chore: resolve hidden merge conflict in API documentation versioning Signed-off-by: F.N. Claessen <[email protected]> * fix: revision file comment Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]> Signed-off-by: Victor Garcia Reolid <[email protected]> Signed-off-by: Felix Claessen <[email protected]> Co-authored-by: Victor Garcia Reolid <[email protected]>
* feature: flex context prices as quantities Signed-off-by: F.N. Claessen <[email protected]> * style: black Signed-off-by: F.N. Claessen <[email protected]> * fix: get continuous time series of prices from quantity Signed-off-by: F.N. Claessen <[email protected]> * fix: another merge conflict and an outdated comment Signed-off-by: F.N. Claessen <[email protected]> * fix: catch programming error Signed-off-by: F.N. Claessen <[email protected]> * fix: self.to_unit is already a Quantity Signed-off-by: F.N. Claessen <[email protected]> * fix: add test case for converting sensor units to some denominator Signed-off-by: F.N. Claessen <[email protected]> * fix: add test cases for invalid input quantities Signed-off-by: F.N. Claessen <[email protected]> * fix: add test case for converting from %, and use to_preferred, which imo still shows better results than pint's .to_preferred (for our use cases), and is faster, because of not requiring a MILP to be solved Signed-off-by: F.N. Claessen <[email protected]> * fix: fix test for Python 3.8 with pint throwing a different exception at us Signed-off-by: F.N. Claessen <[email protected]> * docs: main changelog entry Signed-off-by: F.N. Claessen <[email protected]> * docs: API changelog entry Signed-off-by: F.N. Claessen <[email protected]> * refactor: simplify test parameterization Signed-off-by: F.N. Claessen <[email protected]> * feature: support variable price quantity as time series specification, incl. test Signed-off-by: F.N. Claessen <[email protected]> * fix: update argument defaults for backwards compatibility of old fields Signed-off-by: F.N. Claessen <[email protected]> * refactor: one less import statement Signed-off-by: F.N. Claessen <[email protected]> * refactor: move conversion to util Signed-off-by: F.N. Claessen <[email protected]> * refactor: get rid of self.any_unit Signed-off-by: F.N. Claessen <[email protected]> * docs: document new fields replacing the old fields Signed-off-by: F.N. Claessen <[email protected]> * fix: update argument name Signed-off-by: F.N. Claessen <[email protected]> * fix: get rid of deprecated argument warning Signed-off-by: F.N. Claessen <[email protected]> * fix: test Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]>
* add annotation types on upgrade * update changelog Signed-off-by: Ahmad Wahid <[email protected]> * remove new types from model and add a check in upgrade command Signed-off-by: Ahmad Wahid <[email protected]> * add removed types Signed-off-by: Ahmad Wahid <[email protected]> --------- Signed-off-by: Ahmad Wahid <[email protected]> Co-authored-by: Felix Claessen <[email protected]>
Signed-off-by: Nicolas Höning <[email protected]> (cherry picked from commit c31a08a)
Signed-off-by: Nicolas Höning <[email protected]> (cherry picked from commit 602a007)
* remove deprectaed CLI command Signed-off-by: Nicolas Höning <[email protected]> * Add missing documentation of two CLI monitoring commands Signed-off-by: Nicolas Höning <[email protected]> * introcuce new default behavior to not alert about users who should have been in earlier alerts Signed-off-by: Nicolas Höning <[email protected]> * add extra information if users are not included in the alert Signed-off-by: Nicolas Höning <[email protected]> * improve email layout Signed-off-by: Nicolas Höning <[email protected]> * improve docstring and variable naming Signed-off-by: Nicolas Höning <[email protected]> * add ability to use custom task name (to run multiple filters), better name for option, add to docstring / CLI Readme how to use this new feature Signed-off-by: Nicolas Höning <[email protected]> * fix docstring and add changelog entry Signed-off-by: Nicolas Höning <[email protected]> --------- Signed-off-by: Nicolas Höning <[email protected]> (cherry picked from commit 91a02a6)
* feat: show certain buttons to only authorised users Signed-off-by: joshuaunity <[email protected]> * chore: added function import to init Signed-off-by: joshuaunity <[email protected]> --------- Signed-off-by: joshuaunity <[email protected]> (cherry picked from commit edf9561)
* fix(ui): set default cursor for audit log rows Added CSS rules to enforce a default cursor style for rows in audit log tables, ensuring they appear passive and non-clickable. Modified file: - flexmeasures/ui/templates/base.html Refs: #1199 * fix(ui): remove misleading "View Data" tooltip from audit log tables Removed the `title="View data"` attribute from audit log table templates to prevent the misleading tooltip that suggests clickability. Modified files: - flexmeasures/ui/templates/crud/account_audit_log.html - flexmeasures/ui/templates/crud/asset_audit_log.html - flexmeasures/ui/templates/crud/user_audit_log.html Refs: #1199 --------- Co-authored-by: Nicolas Höning <[email protected]> (cherry picked from commit 22e6a73)
* docs: fix typos Signed-off-by: F.N. Claessen <[email protected]> * fix: suppress echoing if statements Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]> Co-authored-by: VladIftime <[email protected]> (cherry picked from commit daeb1a1)
* feat: paginate user auditlog table and API Signed-off-by: joshuaunity <[email protected]> * chore: added to changelog Signed-off-by: joshuaunity <[email protected]> * refactor: optional pagination Signed-off-by: joshuaunity <[email protected]> * chore: remove wrong changelog Signed-off-by: joshuaunity <[email protected]> --------- Signed-off-by: joshuaunity <[email protected]> Signed-off-by: JDev <[email protected]> (cherry picked from commit 7eae6b4)
* feat: paginate assets auditlog table adn API Signed-off-by: joshuaunity <[email protected]> * chore: added to auditlog Signed-off-by: joshuaunity <[email protected]> * chore: removed unused code Signed-off-by: joshuaunity <[email protected]> --------- Signed-off-by: joshuaunity <[email protected]> Signed-off-by: JDev <[email protected]> Signed-off-by: Nicolas Höning <[email protected]> Co-authored-by: Nicolas Höning <[email protected]> (cherry picked from commit a2e3610)
* chore: work in progress Signed-off-by: joshuaunity <[email protected]> * feat: add and remove sensor to single graph Signed-off-by: joshuaunity <[email protected]> * feat: filter fetched sensors by available units on edit form for sensorstoshow Signed-off-by: joshuaunity <[email protected]> * feat: auto refresh graph and smart auto saving Signed-off-by: joshuaunity <[email protected]> * chore: removed quote Signed-off-by: joshuaunity <[email protected]> * chore: unused code and comments Signed-off-by: joshuaunity <[email protected]> * fix: removed sensors_to_show from assetForm Signed-off-by: joshuaunity <[email protected]> * chore: changed event title name Signed-off-by: joshuaunity <[email protected]> * chore: fetch sensors for asset and from publix sensors Signed-off-by: joshuaunity <[email protected]> * chore: work in progress Signed-off-by: joshuaunity <[email protected]> * feat: show sensor accoutn for fethed sensors Signed-off-by: joshuaunity <[email protected]> * chore: code organization and logic comments Signed-off-by: joshuaunity <[email protected]> * refactor: eidt form improvements - improved UX - imporved data fethc performance with caching Signed-off-by: joshuaunity <[email protected]> * feat: clickable sensor ID Signed-off-by: joshuaunity <[email protected]> * feat: added load spinner Signed-off-by: joshuaunity <[email protected]> * refactor: modified graph sensors styling Signed-off-by: joshuaunity <[email protected]> * chore: update documentation Signed-off-by: joshuaunity <[email protected]> * refactor: Edit Form UX improvement Signed-off-by: joshuaunity <[email protected]> * fix: remove card border if -add graph- button is clicked Signed-off-by: joshuaunity <[email protected]> * Update changelog.rst Signed-off-by: JDev <[email protected]> * refactor:improved form performance - cache fetchedsensors to prevent multiple calls to sensors API - display 'not sensors found' message when no sensors is found - added help icon and message Signed-off-by: joshuaunity <[email protected]> * chore: removed unused code Signed-off-by: joshuaunity <[email protected]> * refactor: new feat and changes - Add grap now adds a blank graph instead of fetch all sensors - now edited title with save when enter is clicked Signed-off-by: joshuaunity <[email protected]> * refactor: couple changes - rename functions with clearer names - help text on blank graph - persist graph card focus after editing a title Signed-off-by: joshuaunity <[email protected]> * chore: clearer function names and cleared unwanted code Signed-off-by: joshuaunity <[email protected]> * refactor: stabilized state management on graph card re-arrangement actions Signed-off-by: joshuaunity <[email protected]> * feat: show in UI when a single graph plot multiple sensors with multiple units Signed-off-by: joshuaunity <[email protected]> * chore: more fail safes Signed-off-by: joshuaunity <[email protected]> * refactor: handle for older format sensor to show data Signed-off-by: joshuaunity <[email protected]> * refactor: a more concise code Signed-off-by: joshuaunity <[email protected]> * refactor: more concise use of varibiable Signed-off-by: joshuaunity <[email protected]> * fix: fixed edit title feature which wasnt saving changes Signed-off-by: joshuaunity <[email protected]> * chore: updated documentation Signed-off-by: joshuaunity <[email protected]> * chore: remvoed unused attribute Signed-off-by: joshuaunity <[email protected]> * chore: added log statement Signed-off-by: joshuaunity <[email protected]> * chore: format code(html) Signed-off-by: joshuaunity <[email protected]> * chore: removed unused code Signed-off-by: joshuaunity <[email protected]> * chore: better variable naming and comments Signed-off-by: joshuaunity <[email protected]> * refactor: refactored part of the logic for selecting a graph Signed-off-by: joshuaunity <[email protected]> * fix: remove graph action doesnt update teh state of the rendered sensors Signed-off-by: joshuaunity <[email protected]> * chore: added comment to code block Signed-off-by: joshuaunity <[email protected]> * refactor: used jinja loop instead of JS Signed-off-by: joshuaunity <[email protected]> * chore: cleaned up JS logic Signed-off-by: joshuaunity <[email protected]> * chore: added comment Signed-off-by: joshuaunity <[email protected]> * chore: use warning alert when no sensors are present Signed-off-by: joshuaunity <[email protected]> * chore: remove unused element attributes Signed-off-by: joshuaunity <[email protected]> * fix: graphs not rendering due to use of wron quotes Signed-off-by: joshuaunity <[email protected]> * refactor: rearranged element layout for rendered graphs in editform Signed-off-by: joshuaunity <[email protected]> * refactor: refctored edit form to render sensors on right side on initial open of the modal dialogue Signed-off-by: joshuaunity <[email protected]> * chore: realign icon Signed-off-by: joshuaunity <[email protected]> * fix: updated graph name on sensor search when reordering graph positions Signed-off-by: joshuaunity <[email protected]> * initialize renders when form modal is intially opened Signed-off-by: joshuaunity <[email protected]> * chore: renamed function name Signed-off-by: joshuaunity <[email protected]> * refactor: highlight card when title is being edited or edit btn is clicked Signed-off-by: joshuaunity <[email protected]> * repaint Sensor cards when Ggraoh title is changed with hittinh enter Key Signed-off-by: Nicolas Höning <[email protected]> --------- Signed-off-by: joshuaunity <[email protected]> Signed-off-by: JDev <[email protected]> Signed-off-by: Nicolas Höning <[email protected]> Co-authored-by: Nicolas Höning <[email protected]> (cherry picked from commit 0a89f28)
Signed-off-by: Nicolas Höning <[email protected]> (cherry picked from commit ea4b0e7)
* chore: clean up sensortoshow key for attribute field on genericasset table Signed-off-by: joshuaunity <[email protected]> * chore: add ot changelog Signed-off-by: joshuaunity <[email protected]> * merge changelog entries Co-authored-by: Felix Claessen <[email protected]> Signed-off-by: Nicolas Höning <[email protected]> --------- Signed-off-by: joshuaunity <[email protected]> Signed-off-by: Nicolas Höning <[email protected]> Co-authored-by: Nicolas Höning <[email protected]> Co-authored-by: Felix Claessen <[email protected]> (cherry picked from commit fc44149) Signed-off-by: F.N. Claessen <[email protected]>
* docs: move PRs from 'New features' to 'Support' Signed-off-by: F.N. Claessen <[email protected]> * fix: typo Signed-off-by: F.N. Claessen <[email protected]> * feat: add changelog item reminder to our PR template Signed-off-by: F.N. Claessen <[email protected]> * feat: add note to our PR template on where to file things in our changelog Signed-off-by: F.N. Claessen <[email protected]> * docs: fix typo Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]> (cherry picked from commit af36626)
* fix: resolve FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. Signed-off-by: F.N. Claessen <[email protected]> * remove: obsolete time/view utils Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]> (cherry picked from commit 1aa8060)
* remove unused UserForm Signed-off-by: Nicolas Höning <[email protected]> * fix user active-status shown on page after (de)activating user Signed-off-by: Nicolas Höning <[email protected]> * replace expensive API call for counting assets with faster SQL query (already implemented as property on the model) Signed-off-by: Nicolas Höning <[email protected]> * fix tests and throw out unused API mocks Signed-off-by: Nicolas Höning <[email protected]> * add changelog entry Signed-off-by: Nicolas Höning <[email protected]> --------- Signed-off-by: Nicolas Höning <[email protected]> Co-authored-by: JDev <[email protected]> (cherry picked from commit 39af3f9)
* pop source_types and exclude_source_types Signed-off-by: Victor Garcia Reolid <[email protected]> * improve validation of methods. Now resample and groupby methods are valid Signed-off-by: Victor Garcia Reolid <[email protected]> * docs: changelog entry Signed-off-by: F.N. Claessen <[email protected]> * fix: capitalization Signed-off-by: F.N. Claessen <[email protected]> * docs: add docstring Signed-off-by: F.N. Claessen <[email protected]> * docs: add inline comments Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: Victor Garcia Reolid <[email protected]> Signed-off-by: F.N. Claessen <[email protected]> Co-authored-by: F.N. Claessen <[email protected]> (cherry picked from commit 23bfefa)
… are not beautiful anyways. (#1294) Signed-off-by: Nicolas Höning <[email protected]> (cherry picked from commit cfe939a)
(cherry picked from commit 8e0822a)
(cherry picked from commit c8311ca)
Partially revert to mention the original licensor. Signed-off-by: Felix Claessen <[email protected]> (cherry picked from commit d3bfe9c)
* fix: recursive error while rendering flexmeasures_template Signed-off-by: F.N. Claessen <[email protected]> * fix: arg in kwargs Signed-off-by: F.N. Claessen <[email protected]> * docs: changelog entry Signed-off-by: F.N. Claessen <[email protected]> * Revert "fix: arg in kwargs" This reverts commit d3530c2. * Revert "fix: recursive error while rendering flexmeasures_template" This reverts commit ab8fe03. * fix: catch any error while rendering the FlexMeasures template, and fall back to using the default Flask template Signed-off-by: F.N. Claessen <[email protected]> * feat: log error showing why the flexmeasures_template failed to load Signed-off-by: F.N. Claessen <[email protected]> * feat: log original error, too Signed-off-by: F.N. Claessen <[email protected]> * Revert "feat: log original error, too" (already logged previously) This reverts commit 49e8003. * fix: warning instead of error, also more informative message Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]> Co-authored-by: Nicolas Höning <[email protected]> (cherry picked from commit acd3f62) Signed-off-by: F.N. Claessen <[email protected]>
After move to SQLAlchemy 2 the code num_forecasts_deleted = db.session.execute(query) Does not work as it use to. Changed code to use .rowcount There are more places that has same issues but I do not have test cases so I only fixed this one. Co-authored-by: Nicolas Höning <[email protected]> (cherry picked from commit 604b8d5)
* Fix issue #1092 for deleting measurements, as well (1095 handled prognoses/forecasts) Signed-off-by: Nicolas Höning <[email protected]> * add changelog entry Signed-off-by: Nicolas Höning <[email protected]> --------- Signed-off-by: Nicolas Höning <[email protected]> (cherry picked from commit bf6ff0d) Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: Nicolas Höning <[email protected]> (cherry picked from commit 8f68075) Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: Nicolas Höning <[email protected]> (cherry picked from commit d1cedbf)
* docs: fix styling Signed-off-by: F.N. Claessen <[email protected]> * docs: correct date Signed-off-by: F.N. Claessen <[email protected]> * docs: redundant linebreak Signed-off-by: F.N. Claessen <[email protected]> * docs: changelog scaffolding for 0.25 Signed-off-by: F.N. Claessen <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]> (cherry picked from commit 297c5a1) Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]> (cherry picked from commit bfb1004)
…sSeries is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().` Signed-off-by: F.N. Claessen <[email protected]>
…ots, too, rather than exploiting any unavoidable capacity breaches Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Work in progress.
Distinguish interpretation of soc-max/min from soc-maxima/minima, and site-consumption/production-capacity from site-power-capacity, representing hard and soft constraints