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

feature: add command flexmeasures show chart #833

Merged
merged 13 commits into from Aug 28, 2023

Conversation

victorgarcia98
Copy link
Contributor

@victorgarcia98 victorgarcia98 commented Aug 24, 2023

Description

This PR introduces the command flexmeasures show chart to export sensor and asset charts.

TODO

  • add dependency to app.in
  • update pinned dependency files

Look & Feel

flexmeasures show chart --start 2023-08-15T00:00:00+02:00 --end 2023-08-16T00:00:00+02:00 --asset 1 --sensor 14 --sensor 15 --filename 'chart-$now-$entity_type-$id.png'

  • 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>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@victorgarcia98 victorgarcia98 marked this pull request as ready for review August 25, 2023 08:21
Signed-off-by: Victor <victor@seita.nl>
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Awesome, this will be such a time saver!

flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
flexmeasures/cli/data_show.py Show resolved Hide resolved
flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

One more comment. Also, it looks as if no changes to my previous review have been pushed?

flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@victorgarcia98
Copy link
Contributor Author

One more comment. Also, it looks as if no changes to my previous review have been pushed?

You're right, I was trying to fix the test test_cli_help but finally I had to drop one assert as I couldn't get the format of the docstring right.

Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Text suggestion for the (still missing) main changelog entry:

  • Charts visible in the UI can be exported to PNG or SVG formats in a more automated fashion, using the new CLI command flexmeasures show chart

flexmeasures/cli/data_show.py Outdated Show resolved Hide resolved
@victorgarcia98 victorgarcia98 merged commit aa6ae18 into main Aug 28, 2023
3 of 5 checks passed
@victorgarcia98 victorgarcia98 deleted the feature/cli/export-chart branch August 28, 2023 21:26
@Flix6x Flix6x added this to the 0.16.0 milestone Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants