Skip to content

Conversation

@maurerle
Copy link
Member

@maurerle maurerle commented Jan 2, 2025

running: assume -s example_01c -c dam_with_complex_opt_clearing -db "postgresql+psycopg2://assume:assume@localhost:5432/assume"

previous behavior:

image

new behavior:

image

Description:

Storages were using the current SoC before, which led to always using the initial value to calculate discharge possibility.
This is fixed, by using the get_soc_before function as intended.

Also fixes debug printing of FastSeries (... ellipses was at the wrong place) and cuts of data if a timeseries index was given in FastIndex

use previous SoC once and calculate it for all following hours correctly
fix offset in get_soc_before
@codecov
Copy link

codecov bot commented Jan 2, 2025

Codecov Report

Attention: Patch coverage is 56.00000% with 11 lines in your changes missing coverage. Please review.

Project coverage is 77.49%. Comparing base (be4b849) to head (031e9ab).
Report is 164 commits behind head on main.

Files with missing lines Patch % Lines
assume/common/fast_pandas.py 16.66% 10 Missing ⚠️
assume/units/storage.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #524      +/-   ##
==========================================
- Coverage   77.51%   77.49%   -0.03%     
==========================================
  Files          50       50              
  Lines        6792     6802      +10     
==========================================
+ Hits         5265     5271       +6     
- Misses       1527     1531       +4     
Flag Coverage Δ
pytest 77.49% <56.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nick-harder
Copy link
Member

@maurerle thanks! is this ready for review?

@maurerle maurerle requested a review from nick-harder January 7, 2025 09:54
@maurerle maurerle merged commit 1e55f18 into main Jan 7, 2025
7 of 9 checks passed
@nick-harder
Copy link
Member

@maurerle please also add a release note so we can keep track of updates, thanks!

@maurerle maurerle deleted the fix_storage branch January 7, 2025 10:52
@maurerle maurerle mentioned this pull request Jan 14, 2025
nick-harder pushed a commit that referenced this pull request Jan 15, 2025
* bidding strategies were adjusted in pypsa loader (no release notes, as
this was not released)
* ruff formatting
* fix release notes - add missing release notes from #524
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.

3 participants