-
Notifications
You must be signed in to change notification settings - Fork 454
Bring tabula-calculator-calcsetbuilding data back - #2285
Bring tabula-calculator-calcsetbuilding data back #2285yerbol-akhmetov wants to merge 14 commits into
tabula-calculator-calcsetbuilding data back #2285Conversation
for more information, see https://pre-commit.ci
- `pixi run generate-config`
euronion
commented
Sep 3, 2026
Thanks @yerbol-akhmetov !
I took the liberty of directly committing onto the branch a simplification - inlining the retrieve logic and reading the xlsx file directly rather than writing an intermediary csv file.
Two reasons for doing it this way:
- We want to only have the original data in the
data/subdirectoy, not parsed or modified (like yourcsvfile) data - The retrieve functionality can be simplified and the intermediary
csvdoesn't really seem necessary. Now the logic is similar to the boilerplate code for the other rules.
Can you test whether the small changes of using the xlsx file directly work and do not cause deviations compared to using the csv file?
Are you fine with this change? Else we can revert my commit.
yerbol-akhmetov
commented
Sep 3, 2026
Thanks @yerbol-akhmetov !
I took the liberty of directly committing onto the branch a simplification - inlining the retrieve logic and reading the
xlsxfile directly rather than writing an intermediarycsvfile.Two reasons for doing it this way:
- We want to only have the original data in the
data/subdirectoy, not parsed or modified (like yourcsvfile) data- The retrieve functionality can be simplified and the intermediary
csvdoesn't really seem necessary. Now the logic is similar to the boilerplate code for the other rules.Can you test whether the small changes of using the
xlsxfile directly work and do not cause deviations compared to using thecsvfile?Are you fine with this change? Else we can revert my commit.
Hi, @euronion. Thank you for the improvements. I am totally fine with it.
@euronion
euronion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, two more minor changes, please double check.
As soon as you confirm @yerbol-akhmetov that my changes didn't change the logic, @lkstrp and I will create the archive and then we can merge 💪
Co-authored-by: Johannes HAMPP <42553970+euronion@users.noreply.github.com>
yerbol-akhmetov
commented
Sep 7, 2026
Hi, @euronion. Regarding two suggestions, all good from my side. It did not change the logic. I was thinking if we could set retro_endogen: true for one of the CI tests (e.g. overnight one), so that we will not miss updating and testing retrofitting scripts. What do you think? Can we implement it in one of the future PRs?
Uh oh!
There was an error while loading. Please reload this page.
Closes #2281 .
Changes proposed in this Pull Request
Good day, PyPSA-Eur community. This PR aims to bring
tabula-calculator-calcsetbuildingback, because it is required forbuild_retro_costrule. The data is retrieved from original source of https://episcope.eu/fileadmin/tabula/public/calc/tabula-calculator.xlsx as an Excel file. Ruleretrieve_tabula_calcsetbuildingretrieves the Excel file and prepares CSV format by slicing theCalc.Set.Buildingsheet. The source is set as primary. It would be good to mirror it as archive to https://data.pypsa.org/.What do you think about the PR, @fneum, @euronion, @lisazeyen, @lkstrp ? Could you please review it?
Checklist
Required:
doc/release_notes.md.If applicable:
scripts/lib/validation.doc/*.mdfiles.