Skip to content

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

Closed
BelhsanHmida wants to merge 3 commits into
mainfrom
feature/export-individual-graphs
Closed

Add multiple_chart Method to GenericAsset for Exporting Individual Sensor Charts#1146
BelhsanHmida wants to merge 3 commits into
mainfrom
feature/export-individual-graphs

Conversation

@BelhsanHmida

Copy link
Copy Markdown
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

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
@BelhsanHmida
BelhsanHmida requested a review from nhoening August 15, 2024 12:50

@nhoening nhoening left a comment

Copy link
Copy Markdown
Member

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.

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

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
…try in .

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
@nhoening

Copy link
Copy Markdown
Member

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.

@nhoening nhoening closed this Aug 6, 2026
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