-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/markov transition #23
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
Conversation
Fix bug when scaling Power_VRESProfiles Add warning (instead of ExecutionError) if ExcelWriter doesn't find a file
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Optimize excel reading workflow
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.
Pull Request Overview
This PR introduces parallel reading of Excel files using the calamine engine to improve performance, along with several bug fixes and enhancements. The changes include switching from openpyxl to calamine for reading Excel files, adding parallel file reading capabilities using threading, and improving error handling and reporting.
Key changes:
- Switched Excel reading engine from
openpyxltocalaminefor improved performance - Added parallel file reading using
ThreadPoolExecutorwith configurable worker count - Enhanced error handling for missing files and version checking
- Fixed several bugs including comment comparison logic and incorrect column references
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| environment.yml | Added python-calamine=0.5.3 dependency for faster Excel reading |
| ExcelReader.py | Refactored version checking to use pandas with calamine engine; fixed comment comparison logic; added sheet skipping for ~ prefixed sheets |
| ExcelWriter.py | Added file existence validation and improved error reporting with exit code on differences |
| CaseStudy.py | Implemented parallel Excel file reading with ThreadPoolExecutor; refactored file loading logic; fixed attribute checks and column name bugs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.