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

Add multiple_chart Method to GenericAsset for Exporting Individual Sensor Charts #1146

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BelhsanHmida
Copy link
Contributor

Description

This Pull Request introduces a new method multiple_chart to the GenericAsset class. This method is designed to facilitate the export of individual charts for different sensor groups. This supports the feature added in the smart-buildings repository, allowing for the export of graphs one-by-one.

Further Improvements

  • Support for New Sensor Formats: Add support for new sensors_to_show formats as discussed in #1125 to handle more custom titles for charts.

Related PRs:

This PR complements the changes made in the smart-buildings repository under PR #288, which implements functionality for exporting individual charts based on this method. The associated issue is #242.


  • 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

Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

A few quick ideas for refactoring a little.

flexmeasures/data/models/generic_assets.py Outdated Show resolved Hide resolved
flexmeasures/data/models/generic_assets.py Outdated Show resolved Hide resolved
flexmeasures/data/models/generic_assets.py Outdated Show resolved Hide resolved
… multiple_chart to charts, and refactor chart and charts methods to use the new function

Signed-off-by: Mohamed Belhsan Hmida <[email protected]>
@nhoening
Copy link
Contributor

This PR might still be worthwhile if we want to export single files to clients, but for now less urgent as we could seprate the legends within one graph.

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.

3 participants