-
Notifications
You must be signed in to change notification settings - Fork 8
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
MUSE version 1.3.0 #554
Merged
MUSE version 1.3.0 #554
Conversation
This file contains 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
* Add comments and simplify sector.next * Simplify agent module, more comments * Simplify retirment profile code * Simplify merge_assets * Revert change to merge_assets * Delete unused factory * More comments added to code * Revert some changes to fix tests * Fix tests * Small fix to another test * Remove more redundant code * Fix test * A few more tiny changes (e.g. typing) * Remove inline comment * Small changes to tidy up * Be more explicit in _inner_split * Apply suggestions from code review * Switch copy to deepcopy
* Remove costed production method * Remove match production method
* Delete production module * Switch one case of supply to maximum_production * Fix test * Update comments and docstrings * Restore production module, only for dispatch * Fix alignment in documentatioh
This reverts commit c9d4c3e.
* Add comments and simplify sector.next * Simplify agent module, more comments * Simplify retirment profile code * Simplify merge_assets * Revert change to merge_assets * Delete unused factory * More comments added to code * Revert some changes to fix tests * Fix tests * Small fix to another test * Delete legacy sector * Delete tests and documentation * Remove more redundant code * Delete new_to_old_timeslice function * Remove unnecessary convert_timeslice operations * Use global TIMESLICE variable throughout * Simplify some other parts of the code accordingly * Draft new function with intended behaviour * Use new function wherever possible * Update tests * Remove represent_hours function * Fix issue with timeslice ordering * Remove remaining convert_timeslice calls * Simplify timeslice_op function * Delete old convert_timeslice function * Delete unused functions * Simplify timeslie import process * Formatting * Default arguments for convert_timeslice * Update results files * Fix test * Carry changes from fix_supply_issue2 branch * More benign changes * Fix incorrect convert_timeslice usage in tests * Fix timeslice import in tests * Delete unused fixture * Fix market fixtures * More test fixes * Fix a fixture * Move default timeslice settings to conftest * Fix docstring tests * A few more tiny changes (e.g. typing) * Remove inline comment * Small changes * Fix constraints tests * Fix remaining tests * Create separate functions for broadcasting and distributing timeslices * Check for existing timeslice dimension in broadcast_timeslice * Fix test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix merge conflicts * Fix tests * Remove timeslice arguments * Fix tests * Turn off automatic broadcasting over the timeslice dimension (#530) * xarray patch to prevent automatic broadcasting * Fix most remaining broadcasting bugs * Fix some tests * Fix more tests * Simplify dlc constraint * More timeslice broadcasting * Fix incorrect uses of distribute_timeslice * Fix bug in _inner_split * Remove unnecessary drop_timeslice operations * Fix correlation model * Fix a couple of tests * Restore drop_timeslice * Restore more drop_timeslice * Fix demand_matching tests * Fix correlation model * Consistent timeslice dimension in objectives * Revert change to capacity_in_use * Fix objective tests * Fix more tests * Fix another test * Fix final test (hopefully) * Drop convert_market_timeslice * Remove timeslice attribute from sectors * Delete sections from documentation * Rename timeslice_op, add docstring * Docstring and better error message for patch --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Delete unused output.py file * Delete unused function from csv.py * Delete unused fixtures and functions from tests * Remove output.py from example model
* Upgrade to 3.13 * Unpin numpy
* Add comments and simplify sector.next * Simplify agent module, more comments * Simplify retirment profile code * Simplify merge_assets * Revert change to merge_assets * Delete unused factory * More comments added to code * Revert some changes to fix tests * Fix tests * Small fix to another test * Delete legacy sector * Delete tests and documentation * Remove more redundant code * Delete new_to_old_timeslice function * Remove unnecessary convert_timeslice operations * Use global TIMESLICE variable throughout * Simplify some other parts of the code accordingly * Draft new function with intended behaviour * Use new function wherever possible * Update tests * Remove represent_hours function * Fix issue with timeslice ordering * Remove remaining convert_timeslice calls * Simplify timeslice_op function * Delete old convert_timeslice function * Delete unused functions * Simplify timeslie import process * Formatting * Default arguments for convert_timeslice * Update results files * Fix test * Carry changes from fix_supply_issue2 branch * More benign changes * Fix incorrect convert_timeslice usage in tests * Fix timeslice import in tests * Delete unused fixture * Fix market fixtures * More test fixes * Fix a fixture * Move default timeslice settings to conftest * Fix docstring tests * A few more tiny changes (e.g. typing) * Remove inline comment * Small changes * Fix constraints tests * Fix remaining tests * Create separate functions for broadcasting and distributing timeslices * Check for existing timeslice dimension in broadcast_timeslice * Fix test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix merge conflicts * Fix tests * Remove timeslice arguments * Fix tests * Turn off automatic broadcasting over the timeslice dimension (#530) * xarray patch to prevent automatic broadcasting * Fix most remaining broadcasting bugs * Fix some tests * Fix more tests * Simplify dlc constraint * More timeslice broadcasting * Fix incorrect uses of distribute_timeslice * Fix bug in _inner_split * Remove unnecessary drop_timeslice operations * Fix correlation model * Fix a couple of tests * Restore drop_timeslice * Restore more drop_timeslice * Fix demand_matching tests * Fix correlation model * Consistent timeslice dimension in objectives * Revert change to capacity_in_use * Fix objective tests * Fix more tests * Fix another test * Fix final test (hopefully) * Drop convert_market_timeslice * Remove timeslice attribute from sectors * Add dummy timeslice_level argument * Read timeslice_level from settings file * Add basic transforms * Fix some errors from merge * Placeholder functions for sector conversion * Functions working with single timeslice level * Working compress_timeslice function * Typing, remove aggregates, skeleton for tests * Skeleton for tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Restore patch to tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Tests for broadcast and distribute, replace transforms with compress * Test for compress_timeslice * Finish functions and tests * Change type hinting to work with 3.9 * Same again * Lint * Improve tests * Add parameter descriptions * Docstrings for new functions, use get_level * Add documentation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Finish compress_timeslice (still small todo) * sort_timeslice and timeslice_max functions * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * New tests, some robustness improvements * Move import statements * Add check to sector init * Variable names, docstrings * Apply default timeslice level to sector * Fix adhoc bug, add warning * Fix error in convert_to_global_timeslicing * Use modern syntax for type annotations * Address reviewer comments --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
8 tasks
* Enforce that all objectives have an asset dimension * Check inputs to objectives * Temporarily suppress tests * Bump version * [pre-commit.ci] pre-commit autoupdate (#579) * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](astral-sh/ruff-pre-commit@v0.7.4...v0.8.0) - [github.com/igorshubovych/markdownlint-cli: v0.42.0 → v0.43.0](igorshubovych/markdownlint-cli@v0.42.0...v0.43.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Revert "Bump version" This reverts commit 3d223e6. * Add check_dimensions function * Add checks for demand_share dimensions * Add dst_region to check * Fix more checks * And more * Fix function default args * Remove xfail mark * More descriptive comment * Address reviewer comments * Allow function to work with any iterable of strings --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Switch demand fulfillment check to annual * More informative error message * Revert "More informative error message" This reverts commit 11ac0c5.
* Change default solver to scipy * Add warning if lpsolver is not specified * Fix failing test * Clearer documentation about default solver
* Add release notes for v1.3.0 * Add v1.3 notes to menu * Small text changes * Add note about bug fix
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.
Done:
In progress, but can be saved for the next version: