Open
Conversation
…`uv.lock` accordingly, and include new test data files
- Added new reference CSV files (`ref_pays.csv`, `ref_links.csv`, `study_scenario.csv`, `peak_hours.csv`, `peak_months.csv`) for parameterized tests. - Updated `test_links.py` with new fixtures and global configurations. - Fixed test inputs for `links.create_links_part` to support additional reference parameters.
…ssing logic - Removed obsolete test files from `data_test` directory. - Enhanced median calculation logic in `links.create_links_part` and incorporated reference parameters (`peak_hours`, `peak_months`). - Updated `test_links.py` to include `ref_params` for updated data handling logic.
…ring, and add type hints - Improved median calculation logic in `links.create_links_part` with grouped pivoting and merging approaches. - Added new `scenario_filter` function for scenario-based filtering with type annotations. - Updated `test_links.py` to incorporate new logic and additional parameters like `calendar_year`.
…inks` module - Introduced `LocalConfiguration` class for managing input configuration paths, with validation checks for directories and scenario names. - Refactored `create_links_part` to use `LocalConfiguration` for enhanced clarity and reusability. - Replaced `LinksFileNames` with `LinksFileConfig` for better encapsulation of link file names. - Added new unit tests for `LocalConfiguration` validation.
…ta processing logic - Renamed `data_references` to `data_references_path` and added `calendar_year` in `LocalConfiguration`. - Updated `create_links_part` to integrate `.xlsx` reading for peak hours, months, and scenarios. - Refactored handling of `Transfer Links` and `NTCs Index` by replacing hardcoded filenames with `LinksFileConfig`. - Added `openpyxl` as a dependency for Excel file support and updated `uv.lock` and `pyproject.toml`. - Replaced `ref_params` with `LocalConfiguration` in tests and introduced new fixtures for mocking Excel data.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




No description provided.