assume-framework / assume

ASSUME - Agent-based Simulation for Studying and Understanding Market Evolution
https://assume.readthedocs.io
20 stars 5 forks source link

Interoperability tutorial #323

Closed maurerle closed 4 months ago

maurerle commented 4 months ago

This adds the interoperability tutorial used for my workshop.

I had to adjust some code to fix values which are declared in pypsa as well as as keyword arguments. This seems to break if not done right. It looks a little like an ugly fix. Though I did not came up with something better yet.

This also fixes the first hour in AMIRIS and the Warning "PerformanceWarning highly fragmented pandas DataFrame" when running example_02.

Furthermore, it is now possible to set a refresh_interval of 5s for continuous updates.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 19.04762% with 34 lines in your changes are missing coverage. Please review.

Project coverage is 77.32%. Comparing base (3d44db7) to head (ede5f97).

Files Patch % Lines
assume/common/grid_utils.py 0.00% 22 Missing :warning:
assume/common/outputs.py 40.00% 9 Missing :warning:
assume/markets/base_market.py 0.00% 1 Missing :warning:
...ssume/markets/clearing_algorithms/nodal_pricing.py 0.00% 1 Missing :warning:
assume/markets/clearing_algorithms/redispatch.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #323 +/- ## ========================================== - Coverage 77.42% 77.32% -0.11% ========================================== Files 43 43 Lines 4996 5009 +13 ========================================== + Hits 3868 3873 +5 - Misses 1128 1136 +8 ``` | [Flag](https://app.codecov.io/gh/assume-framework/assume/pull/323/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=assume-framework) | Coverage Δ | | |---|---|---| | [pytest](https://app.codecov.io/gh/assume-framework/assume/pull/323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=assume-framework) | `77.32% <19.04%> (-0.11%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=assume-framework#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.