v3.17.2 Added Timeseries Table Download Endpoint and Minor Updates #686
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
This pull request introduces a new feature for generating downloadable timeseries results tables, along with several improvements to load metrics handling and data consistency. It also increases the allowed range for monthly energy totals and adds supporting utilities for timeseries table generation.
New timeseries table feature and utilities:
/job/get_timeseries_tableendpoint, enabling users to download a spreadsheet of timeseries results for a list ofrun_uuids. This includes a new custom table option,custom_timeseries_energy_demand, for that endpoint. [1] [2]reoptjl/custom_timeseries_table_config.pyandreoptjl/custom_timeseries_table_helpers.py, which provide configuration and helper functions for building timeseries Excel tables, including column definitions, formatting, and safe data extraction. [1] [2]Load metrics consistency and improvements:
/get_load_metricsendpoint to rename response fields for electric load metrics (annual_kwh,max_kw,monthly_totals_kwh, andmonthly_peaks_kw) to match those from/simulated_load, improving API consistency. [1] [2] [3]Data model and validation changes:
monthly_totals_kwhinElectricLoadInputsfrom 1.0e8 to 1.0e9, including a Django migration to support this change. [1] [2] [3]Other minor changes:
datetimeinreoptjl/views.pyto support new functionality.### Please check if the PR fulfills these requirementsWhat is the current behavior?
(You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change?
(What changes might users need to make in their application due to this PR?)
Other information: