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

Little ETM input conversion module #82

Closed
wants to merge 25 commits into from
Closed

Conversation

noracato
Copy link
Collaborator

@noracato noracato commented Jul 5, 2022

Here's the first version of the configurable ETM input conversion module. We can use it for the passive connection to start with, but we can also bend it a bit to be included in the active connection - as an imported module in the Django backend (? I'm not too familiar with Django to know if that's really possible, but I guess so..).

It features:

Retrieving all possible curves from the ETM

Retrieving any gquery

Retrieving any node property

And you can mix them and create conversions!

Right now only a 'divide by' conversion is supported, where you can divide an ETM output curve by the value of a node property or query. All customisable in the config file.

Check out the README for more info on how to use it.

This is a first version, so there's room for improvement:

  • Do we want headers for the output csvs?
  • Do we want to be able to create a new ETM scenario, or a copy when starting the module?
  • What other conversions would we need?

I hope you can have fun with this and try to make some connections to the ETM when I'm on holidays. Looking forward to bugfixing and feature requests when I'm back 😉

Including @marliekeverweij

@noracato
Copy link
Collaborator Author

noracato commented Jul 5, 2022

Btw we created this branch a while ago, and there's a lot of commits I dont recognise. If you want me to rebase onto main let me know, tomorrow I might have a spare 20 mins for it. Otherwise one of you could fix it, as you know more about what happened in the other part of the model.

JorritvandenHouten and others added 3 commits September 16, 2022 14:07
*Configuration: o.a. default energy assets
Run: o.a. gridConnection calculateEnergyBalance(), connectionOwner updateFinances().
*Dummy-parameter voor forceren uncached cloud-runs met dezelfde instellingen
*Pythonscripts: modelkeuze wordt nu in experiment gemaakt; caching kan omzeild worden met boolean.
*Dummy parameter toegevoegd waarmee d.m.v. een random-getal uncached API-runs kunnen worden geforceerd zonder modelinstellingen aan te passen.
-Mogelijke bug: bij het 1000-agents experiment loopt de cloud vast, maar het offline model werkt gewoon..
*parallelStream.forEach() in f_addDefaultEnergyAssets ongedaan gemaakt; geeft onvoorspelbaar gedrag en is niet sneller (op mijn laptop iig)
*parallellisatie in hoofd tijdstap-event alleen op de populatie gridConnections (for now...) Dat is verreweg de zwaarste stap.
*Parameter toegevoegd p_paralellize waarmee parallelisatie aan en uit gezet kan worden, toegevoegd aan cloud-model inputs
*Parameter p_importLocalJsonConfigs toegevoegd aan cloud-model inputs, zodat die in de cloud altijd op False geforceerd kan worden (tenzij je dat niet wil natuurlijk)
*Python class Experiment uitgebreid met parallelize parameter
@noracato noracato force-pushed the feature-BuildingsFromETM branch from e712f3c to 9396ce4 Compare September 20, 2022 14:03
noracato and others added 22 commits September 20, 2022 16:05
Scenario: bedrijventerrein in Groningen.
Geeft een lege dataset terug..
Queries toegevoegd voor curves en totale opgestelde vermogen van de zon-productie-posten (households, buildings, energy power solar plant).
…mand households

The hourly electricity demand households is still WIP. We would like to divide the curves with the yearly electricity demand of households, so this has to be added.
Hourly curves in MW per hour
Yearly demands in PJ
@noracato noracato force-pushed the feature-BuildingsFromETM branch from 9396ce4 to 35e1f2c Compare September 20, 2022 14:06
@noracato
Copy link
Collaborator Author

This banch has been rebased on feature-parallelAgentProcessing.

@noracato
Copy link
Collaborator Author

Moved in Zenmo/HOLON-ETM@77d1970

@noracato noracato closed this Oct 17, 2022
@noracato noracato deleted the feature-BuildingsFromETM branch October 17, 2022 13:47
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.

4 participants