Skip to content

Allow custom timeseries generation based on eesyplan methods - #511

Draft
paulapreuss wants to merge 9 commits into
mainfrom
feature/custom-profile-generation
Draft

Allow custom timeseries generation based on eesyplan methods#511
paulapreuss wants to merge 9 commits into
mainfrom
feature/custom-profile-generation

Conversation

@paulapreuss

@paulapreuss paulapreuss commented Aug 13, 2026

Copy link
Copy Markdown

This PR makes changes to the timeseries model (both by deleting the timeseries_old field and adding generation_parameters and description to store metadata - this was cherry-picked from #446). Therefore, python manage.py migrate needs to be run (also need to be careful when merging).

Add the option to generate timeseries based on parameters instead of from a file upload. Currently, this is possible for heat demand and partly possible for PV timeseries (have to figure out how we want to handle weather data).

As described in this issue, the current implementation opens a submodal on the timeseries input that allows the user to input the needed parameters. Based on these parameters, a timeseries is then computed by passing the parameters to the eesyplan method (this is not yet fully implemented).

The way this works is by mapping which assets have a custom timeseries creatioin method in eesyplan and showing the extra modal for these assets, similar to the COP calculation method. The methods have analogous forms with the same parameters. The idea is to simply pass the cleaned form data as parameters to the timeseries methods.

A lot of lines changed are simply because of ruff formatting - I think my pre-commit linter is being more strict than the repository actually asks for. Might drop the commits for readability or keep to clean up a bit while we are at it.

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