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

Rework periodic value deserialisation #151

Closed
5 tasks done
nailend opened this issue Jan 17, 2024 · 0 comments · Fixed by #154
Closed
5 tasks done

Rework periodic value deserialisation #151

nailend opened this issue Jan 17, 2024 · 0 comments · Fixed by #154
Assignees
Labels
enhancement New feature or request

Comments

@nailend
Copy link
Collaborator

nailend commented Jan 17, 2024

Some changes are necessary. Predecessor was #124.

Some parameters have to have a specific length due to the implementation of multi-period approach, e.g for every timestep or just for every period. Periodically changing values are indicated in datapackage as list.

The reading routine is checking whether the number of values in the list are equal to the number of periods. If so, they are converted to a timeseries for all timesteps. In some cases this is not necessary and only one value per period is sufficient.

The following parameter conversions have to be checked or maybe implemented:
For sake of clarity, creating a dict to define to which format a parameter is converted might be useful.

sth like this pseudo code

conversion_parameters = {"fixed_costs" : create_periodic_values, ...}
if key in conversion_parameters.keys():
  facade_value =  conversion_parameters[key](value)

Parameters to catch:

  • yearly:

    • fixed_costs
    • marginal_costs
  • periodically:

    • capacity
    • capacity_cost
    • capacity_potential
@nailend nailend added the enhancement New feature or request label Jan 17, 2024
@FelixMau FelixMau linked a pull request Jan 24, 2024 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants