Skip to content
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

inflexible devices power unit conversion #968

Conversation

victorgarcia98
Copy link
Contributor

Description


  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@@ -208,6 +209,8 @@ def get_power_values(
)
df = df.fillna(0)

df *= convert_units(1, sensor.unit, to_unit)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if you pass df instead of 1 this method may even allow converting from kWh to kW using the sensor's resolution.

@victorgarcia98 victorgarcia98 mentioned this pull request Feb 14, 2024
2 tasks
@Flix6x
Copy link
Contributor

Flix6x commented Mar 22, 2024

Requesting a status update:

@victorgarcia98
Copy link
Contributor Author

Requesting a status update:

* What is the status of this PR?

To be closed as it's been replaced by #1007.

* Is it connected to [[Scheduling] convert the units of inflexible power sensors MW #1007](https://github.com/FlexMeasures/flexmeasures/pull/1007)?

Yes, #1007 improves on the tests.

* Should it go into the 0.20 release?

No.

@Flix6x Flix6x deleted the feature/planning/inflexible-devices-power-unit-conversion branch March 22, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants