-
Notifications
You must be signed in to change notification settings - Fork 10
Turn off automatic broadcasting over the timeslice dimension #530
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
Merged
Conversation
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
This was referenced Oct 24, 2024
tsmbland
added a commit
that referenced
this pull request
Nov 13, 2024
* 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>
tsmbland
added a commit
that referenced
this pull request
Nov 26, 2024
* 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>
tsmbland
added a commit
that referenced
this pull request
Dec 18, 2024
commit 8f1333c Author: Tom Bland <[email protected]> Date: Wed Dec 18 08:46:51 2024 +0000 Fix timeslice level error commit 35b4c28 Author: Tom Bland <[email protected]> Date: Tue Dec 17 14:14:56 2024 +0000 Use pytest parametrize commit ff793a3 Author: Tom Bland <[email protected]> Date: Tue Dec 17 14:10:52 2024 +0000 Add another test commit 9307fa1 Author: Tom Bland <[email protected]> Date: Tue Dec 17 13:32:33 2024 +0000 Update remaining model commit e621574 Author: Tom Bland <[email protected]> Date: Tue Dec 17 12:53:14 2024 +0000 Add new test for LCOE commit 2edb631 Merge: d6e2616 4b0200f Author: Tom Bland <[email protected]> Date: Tue Dec 17 11:08:23 2024 +0000 Merge branch 'costs2' of https://github.com/EnergySystemsModellingLab/MUSE_OS into costs2 commit d6e2616 Author: Tom Bland <[email protected]> Date: Tue Dec 17 11:07:57 2024 +0000 Revert change to utilities commit 4b0200f Merge: c4f8240 339ea03 Author: Tom Bland <[email protected]> Date: Tue Dec 17 10:46:55 2024 +0000 Merge branch 'main' into costs2 commit c4f8240 Author: Tom Bland <[email protected]> Date: Mon Dec 16 16:32:17 2024 +0000 Timeslice broadcasting fix commit 4b2d007 Author: Tom Bland <[email protected]> Date: Mon Dec 16 15:59:18 2024 +0000 Remove redundant function commit 540d40f Author: Tom Bland <[email protected]> Date: Mon Dec 16 15:53:11 2024 +0000 Use crf for annualized capital costs commit 63d47a5 Author: Tom Bland <[email protected]> Date: Mon Dec 16 15:14:44 2024 +0000 Typo commit 3688983 Author: Tom Bland <[email protected]> Date: Mon Dec 16 11:43:59 2024 +0000 Revert "Changes to annual/lifetime costs to match original code" This reverts commit 3842925. commit 3842925 Author: Tom Bland <[email protected]> Date: Mon Dec 16 11:26:50 2024 +0000 Changes to annual/lifetime costs to match original code commit 68bf815 Merge: 4df625b 03bbf49 Author: Tom Bland <[email protected]> Date: Mon Dec 16 10:49:24 2024 +0000 Merge branch 'costs2' of https://github.com/EnergySystemsModellingLab/MUSE_OS into costs2 commit 03bbf49 Merge: 0c97585 a22b9d0 Author: Tom Bland <[email protected]> Date: Fri Dec 13 17:10:32 2024 +0000 Merge branch 'objective_prices' into costs2 commit a22b9d0 Author: Tom Bland <[email protected]> Date: Fri Dec 13 16:25:57 2024 +0000 Pass objectives only prices from investment year commit 0c97585 Merge: 50f0f39 fb2eba1 Author: Tom Bland <[email protected]> Date: Fri Dec 13 16:01:25 2024 +0000 Merge branch 'consumption' into costs2 commit fb2eba1 Author: Tom Bland <[email protected]> Date: Fri Dec 13 15:57:31 2024 +0000 Remove line commit bfe81ee Author: Tom Bland <[email protected]> Date: Fri Dec 13 15:51:54 2024 +0000 Fix tests commit d36b248 Author: Tom Bland <[email protected]> Date: Fri Dec 13 15:42:56 2024 +0000 Copy changes to quantities module from #556 commit 4df625b Author: Tom Bland <[email protected]> Date: Fri Dec 13 14:50:53 2024 +0000 Add lifetime_to_annual commit 50f0f39 Merge: b1754b4 9a2ab3c Author: Tom Bland <[email protected]> Date: Thu Dec 12 14:32:27 2024 +0000 Merge branch 'main' into costs2 commit b1754b4 Author: Tom Bland <[email protected]> Date: Thu Dec 12 14:30:07 2024 +0000 Combine tests commit 6205f4d Author: Tom Bland <[email protected]> Date: Thu Dec 12 14:28:50 2024 +0000 Small improvements to consumption function commit 5abfe53 Author: Tom Bland <[email protected]> Date: Wed Dec 11 10:38:40 2024 +0000 Test for production_amplitude commit 9359cf7 Author: Tom Bland <[email protected]> Date: Tue Dec 10 09:57:37 2024 +0000 Fix timeslice_level error (more) commit 6bfe232 Author: Tom Bland <[email protected]> Date: Tue Dec 10 09:55:37 2024 +0000 Fix timeslice_level error commit cd532ab Author: Tom Bland <[email protected]> Date: Mon Dec 9 19:16:24 2024 +0000 Add assertion commit e83193d Author: Tom Bland <[email protected]> Date: Mon Dec 9 17:07:16 2024 +0000 Beef up discount rate function commit fd77cf5 Author: Tom Bland <[email protected]> Date: Mon Dec 9 16:20:04 2024 +0000 Docstrings for costs module commit c0395db Author: Tom Bland <[email protected]> Date: Mon Dec 9 12:01:43 2024 +0000 Tests for new costs functions commit 8d7bb92 Merge: 5c24b13 478c8e2 Author: Tom Bland <[email protected]> Date: Mon Dec 9 11:49:19 2024 +0000 Merge branch 'main' into costs2 commit 5c24b13 Author: Tom Bland <[email protected]> Date: Mon Dec 9 11:46:46 2024 +0000 Fix error in capacity_to_service_demand function commit 45a0e3f Merge: 8e927b1 a7bb1ee Author: Tom Bland <[email protected]> Date: Fri Dec 6 17:30:16 2024 +0000 Merge branch 'main' into costs2 commit 8e927b1 Author: Tom Bland <[email protected]> Date: Fri Dec 6 17:26:19 2024 +0000 Modify objectives to use new cost functions commit cae24bf Author: Tom Bland <[email protected]> Date: Fri Dec 6 16:42:20 2024 +0000 Separate functions for running cost components commit 0a54642 Author: Tom Bland <[email protected]> Date: Fri Dec 6 16:19:36 2024 +0000 annual_to_lifetime function commit ec730ed Author: Tom Bland <[email protected]> Date: Fri Dec 6 15:59:33 2024 +0000 Functions for capital costs, running costs, annual_weights commit 58ffc1c Author: Tom Bland <[email protected]> Date: Fri Dec 6 14:21:31 2024 +0000 Docstring description of lifetime vs annual commit 2d70544 Author: Tom Bland <[email protected]> Date: Thu Dec 5 14:56:00 2024 +0000 Remove code, reorder commit eb4ddf5 Author: Tom Bland <[email protected]> Date: Thu Dec 5 14:46:16 2024 +0000 Tidy NPV function commit 88cbe33 Author: Tom Bland <[email protected]> Date: Thu Dec 5 14:35:01 2024 +0000 Modern annotations in costs module commit c3d1fd6 Author: Tom Bland <[email protected]> Date: Thu Dec 5 14:30:40 2024 +0000 Combine lifetime and annual LCOE functions commit dc9f77b Author: Tom Bland <[email protected]> Date: Thu Dec 5 13:49:28 2024 +0000 Simplify checks commit 3cb4376 Author: Tom Bland <[email protected]> Date: Thu Dec 5 12:39:06 2024 +0000 Decorator to validate cost function inputs/outputs commit 58c0cab Merge: c25918d 9e9e7b9 Author: Tom Bland <[email protected]> Date: Tue Dec 3 12:47:13 2024 +0000 Merge branch 'main' into costs2 commit c25918d Merge: 0cfd120 64e55a9 Author: Tom Bland <[email protected]> Date: Tue Dec 3 12:38:50 2024 +0000 Merge branch 'v1.3' into costs2 commit 0cfd120 Author: Tom Bland <[email protected]> Date: Fri Nov 29 15:05:39 2024 +0000 Helper function for calculating production amplitude commit 28107f0 Author: Tom Bland <[email protected]> Date: Fri Nov 29 13:33:50 2024 +0000 Fix failing tests commit 89f2a10 Merge: cda7af2 e448b09 Author: Tom Bland <[email protected]> Date: Fri Nov 29 12:47:09 2024 +0000 Merge branch 'v1.3' into costs2 commit cda7af2 Author: Tom Bland <[email protected]> Date: Thu Nov 28 18:43:05 2024 +0000 Fix merge error commit fa11c36 Merge: 5308569 f94ee1b Author: Tom Bland <[email protected]> Date: Thu Nov 28 09:12:43 2024 +0000 Merge branch 'v1.3' into costs2 commit 5308569 Merge: e21130a c423ad5 Author: Tom Bland <[email protected]> Date: Tue Nov 19 13:31:57 2024 +0000 Merge branch 'v1.3' into costs2 commit e21130a Merge: c071bc8 375ebee Author: Tom Bland <[email protected]> Date: Wed Nov 13 10:43:46 2024 +0000 Merge branch 'v1.3' into costs2 commit c071bc8 Merge: ef4112a 1c8226c Author: Tom Bland <[email protected]> Date: Tue Nov 12 17:55:50 2024 +0000 Merge branch 'convert_timeslice2' into costs2 commit ef4112a Author: Tom Bland <[email protected]> Date: Tue Nov 12 17:53:59 2024 +0000 Rename variable commit 3baf63b Merge: 4310b5f 4a9d29d Author: Tom Bland <[email protected]> Date: Tue Nov 12 17:52:13 2024 +0000 Merge branch 'convert_timeslice2' into costs2 commit 1c8226c Merge: 4a9d29d cb253e6 Author: Tom Bland <[email protected]> Date: Tue Nov 12 17:49:44 2024 +0000 Merge branch 'v1.3' into convert_timeslice2 commit 4a9d29d Merge: b591866 b0697c6 Author: Tom Bland <[email protected]> Date: Tue Nov 12 17:44:39 2024 +0000 Merge branch 'v1.3' into convert_timeslice2 commit 4310b5f Author: Tom Bland <[email protected]> Date: Tue Nov 12 11:50:10 2024 +0000 Update example model results commit b591866 Merge: b78c843 9b55d5d Author: Tom Bland <[email protected]> Date: Tue Nov 12 11:45:51 2024 +0000 Merge branch 'v1.3' into convert_timeslice2 commit 0754bd1 Merge: 98d5955 953194c Author: Tom Bland <[email protected]> Date: Tue Nov 12 11:45:01 2024 +0000 Merge branch 'costs2' of https://github.com/EnergySystemsModellingLab/MUSE_OS into costs2 commit 953194c Merge: cda674c b591866 Author: Tom Bland <[email protected]> Date: Tue Nov 12 11:46:13 2024 +0000 Merge branch 'convert_timeslice2' into costs2 commit 98d5955 Author: Tom Bland <[email protected]> Date: Tue Nov 12 10:53:33 2024 +0000 Update tutorial results commit cda674c Merge: 2b61176 b78c843 Author: Tom Bland <[email protected]> Date: Tue Nov 12 08:58:59 2024 +0000 Merge branch 'convert_timeslice2' into costs2 commit b78c843 Author: Tom Bland <[email protected]> Date: Mon Nov 11 17:00:43 2024 +0000 Docstring and better error message for patch commit e77b227 Merge: bd08d1f 87132ab Author: Tom Bland <[email protected]> Date: Mon Nov 11 16:32:56 2024 +0000 Merge branch 'v1.3' into convert_timeslice2 commit 2b61176 Author: Tom Bland <[email protected]> Date: Fri Nov 8 16:27:54 2024 +0000 Delete supply_cost tests commit 5cef7fd Author: Tom Bland <[email protected]> Date: Fri Nov 8 16:21:39 2024 +0000 Delete legacy lcoe function commit 0d1759a Merge: a767c54 bd08d1f Author: Tom Bland <[email protected]> Date: Fri Nov 8 15:55:59 2024 +0000 Merge branch 'convert_timeslice2' into costs2 commit bd08d1f Merge: 59ba25c 6406723 Author: Tom Bland <[email protected]> Date: Fri Nov 8 15:52:59 2024 +0000 Merge branch 'v1.3' into convert_timeslice2 commit a767c54 Author: Tom Bland <[email protected]> Date: Fri Nov 8 12:08:14 2024 +0000 Simplify consumption tests (for now) commit fec7123 Author: Tom Bland <[email protected]> Date: Fri Nov 8 10:54:08 2024 +0000 Revert a change to the consumption function commit 8737b60 Author: Tom Bland <[email protected]> Date: Thu Nov 7 15:54:13 2024 +0000 Properly calculate consumption in objectives commit caacd9b Author: Tom Bland <[email protected]> Date: Thu Nov 7 15:34:17 2024 +0000 Fix consumption function commit 59ba25c Author: Tom Bland <[email protected]> Date: Thu Nov 7 11:26:57 2024 +0000 Rename timeslice_op, add docstring commit 59cceb8 Author: Tom Bland <[email protected]> Date: Thu Nov 7 09:54:47 2024 +0000 Delete sections from documentation commit d44d31e Author: Tom Bland <[email protected]> Date: Thu Nov 7 09:36:08 2024 +0000 Fix merge errors commit 0a8a097 Author: Tom Bland <[email protected]> Date: Wed Nov 6 13:56:40 2024 +0000 Fix some tests commit 0c10f56 Author: Tom Bland <[email protected]> Date: Thu Nov 7 09:19:29 2024 +0000 Restore old ALCOE commit e650f0b Author: Tom Bland <[email protected]> Date: Wed Nov 6 14:52:16 2024 +0000 Remove assert statements commit 798cc96 Author: Tom Bland <[email protected]> Date: Wed Nov 6 14:42:45 2024 +0000 Fix for timeslice models commit baae2e8 Author: Tom Bland <[email protected]> Date: Wed Nov 6 14:34:53 2024 +0000 Restore old ALCOE as legacy function commit fb605f4 Merge: 128416d d3604dc Author: Tom Bland <[email protected]> Date: Wed Nov 6 13:16:58 2024 +0000 Merge branch 'convert_timeslice2' into costs2 commit 128416d Author: Tom Bland <[email protected]> Date: Wed Nov 6 12:51:51 2024 +0000 Pass consumption to costs, improve aLCOE commit 6021f2b Author: Tom Bland <[email protected]> Date: Wed Nov 6 10:21:51 2024 +0000 Properly fix merge error commit e970843 Author: Tom Bland <[email protected]> Date: Wed Nov 6 10:12:28 2024 +0000 Fix merge error commit 9acbd8b Merge: 0518e5a 92ca64e Author: Tom Bland <[email protected]> Date: Wed Nov 6 10:12:18 2024 +0000 Merge branch 'v1.3' into costs commit 0518e5a Author: Tom Bland <[email protected]> Date: Wed Nov 6 10:03:04 2024 +0000 Simplify costs module, add assert statements commit d3604dc Merge: 908be7b 92ca64e Author: Tom Bland <[email protected]> Date: Tue Nov 5 17:16:44 2024 +0000 Merge branch 'v1.3' into convert_timeslice2 commit 908be7b Author: Tom Bland <[email protected]> Date: Mon Nov 4 14:44:48 2024 +0000 Remove timeslice attribute from sectors commit 366c37c Author: Tom Bland <[email protected]> Date: Fri Nov 1 15:57:56 2024 +0000 Drop convert_market_timeslice commit ae3c06c Author: Tom Bland <[email protected]> Date: Wed Oct 30 11:36:09 2024 +0000 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) commit d5b5676 Author: Tom Bland <[email protected]> Date: Mon Oct 28 15:33:48 2024 +0000 Fix tests commit 46ab820 Author: Tom Bland <[email protected]> Date: Mon Oct 28 13:48:35 2024 +0000 Remove timeslice arguments commit d5875f9 Author: Tom Bland <[email protected]> Date: Mon Oct 28 13:38:08 2024 +0000 Fix tests commit fde592b Merge: 433c39c b521d93 Author: Tom Bland <[email protected]> Date: Mon Oct 28 13:32:21 2024 +0000 Merge branch 'legacy' into convert_timeslice2 commit b521d93 Merge: 5c5fc45 c270dfa Author: Tom Bland <[email protected]> Date: Mon Oct 28 11:33:46 2024 +0000 Merge branch 'refactor' into legacy commit c270dfa Merge: 423fafe 48e0cd7 Author: Tom Bland <[email protected]> Date: Mon Oct 28 11:33:14 2024 +0000 Merge branch 'main' into refactor commit 423fafe Merge: 2e601ea 43c893c Author: Tom Bland <[email protected]> Date: Mon Oct 28 08:57:22 2024 +0000 Merge branch 'main' into refactor commit 2e601ea Merge: 6975787 be29358 Author: Tom Bland <[email protected]> Date: Fri Oct 25 16:16:46 2024 +0100 Merge branch 'v1.2.2' into refactor commit 6975787 Merge: 8d06e85 2acef46 Author: Tom Bland <[email protected]> Date: Fri Oct 25 14:39:04 2024 +0100 Merge branch 'broadcast_errors2' into refactor commit 433c39c Author: Tom Bland <[email protected]> Date: Fri Oct 25 09:47:21 2024 +0100 Fix merge conflicts commit 885f752 Author: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri Oct 25 08:33:20 2024 +0000 [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci commit 8149020 Merge: b0ce228 5c5fc45 Author: Tom Bland <[email protected]> Date: Fri Oct 25 09:33:06 2024 +0100 Merge branch 'legacy' into convert_timeslice2 commit 5c5fc45 Merge: 4ce54e6 8d06e85 Author: Tom Bland <[email protected]> Date: Fri Oct 25 09:31:46 2024 +0100 Merge branch 'refactor' into legacy commit 8d06e85 Merge: 65313de d7d47d6 Author: Tom Bland <[email protected]> Date: Fri Oct 25 09:31:24 2024 +0100 Merge branch 'v1.3' into refactor commit b0ce228 Author: Tom Bland <[email protected]> Date: Tue Oct 22 17:51:13 2024 +0100 Fix test commit 0258ae9 Author: Tom Bland <[email protected]> Date: Tue Oct 22 17:28:41 2024 +0100 Check for existing timeslice dimension in broadcast_timeslice commit 4fbc1ff Author: Tom Bland <[email protected]> Date: Tue Oct 22 16:17:24 2024 +0100 Create separate functions for broadcasting and distributing timeslices commit 88d40b4 Author: Tom Bland <[email protected]> Date: Tue Oct 22 09:07:30 2024 +0100 Fix remaining tests commit 4785412 Author: Tom Bland <[email protected]> Date: Tue Oct 22 09:03:34 2024 +0100 Fix constraints tests commit a02088e Author: Tom Bland <[email protected]> Date: Mon Oct 21 15:09:41 2024 +0100 Small changes commit ad3766e Merge: c616694 4ce54e6 Author: Tom Bland <[email protected]> Date: Mon Oct 21 14:59:25 2024 +0100 Merge branch 'legacy' into convert_timeslice2 commit 4ce54e6 Merge: acdcbf8 65313de Author: Tom Bland <[email protected]> Date: Mon Oct 21 14:11:15 2024 +0100 Merge branch 'refactor' into legacy commit 65313de Merge: 0c84ba9 8e8b5bf Author: Tom Bland <[email protected]> Date: Mon Oct 21 14:07:25 2024 +0100 Merge branch 'v1.3' into refactor commit 0c84ba9 Author: Tom Bland <[email protected]> Date: Thu Oct 17 15:12:34 2024 +0100 Remove inline comment commit d054a3b Author: Tom Bland <[email protected]> Date: Thu Oct 17 15:09:31 2024 +0100 A few more tiny changes (e.g. typing) commit c616694 Author: Tom Bland <[email protected]> Date: Thu Oct 17 09:43:02 2024 +0100 Fix docstring tests commit 1bd7c84 Author: Tom Bland <[email protected]> Date: Wed Oct 16 16:26:39 2024 +0100 Move default timeslice settings to conftest commit 86d7dd2 Merge: 8034807 acdcbf8 Author: Tom Bland <[email protected]> Date: Wed Oct 16 15:54:39 2024 +0100 Merge branch 'legacy' into convert_timeslice2 commit 8034807 Author: Tom Bland <[email protected]> Date: Wed Oct 16 15:47:45 2024 +0100 Fix a fixture commit e0a8c3a Author: Tom Bland <[email protected]> Date: Wed Oct 16 15:23:34 2024 +0100 More test fixes commit 908872a Author: Tom Bland <[email protected]> Date: Wed Oct 16 15:11:33 2024 +0100 Fix market fixtures commit 993af9f Author: Tom Bland <[email protected]> Date: Wed Oct 16 15:02:09 2024 +0100 Delete unused fixture commit a59580c Author: Tom Bland <[email protected]> Date: Wed Oct 16 14:42:42 2024 +0100 Fix timeslice import in tests commit 22c141e Author: Tom Bland <[email protected]> Date: Wed Oct 16 14:36:52 2024 +0100 Fix incorrect convert_timeslice usage in tests commit 793aacf Author: Tom Bland <[email protected]> Date: Wed Oct 16 10:27:09 2024 +0100 More benign changes commit 89f8c61 Author: Tom Bland <[email protected]> Date: Wed Oct 16 10:19:05 2024 +0100 Carry changes from fix_supply_issue2 branch commit acdcbf8 Merge: 9360ad1 cc9d237 Author: Tom Bland <[email protected]> Date: Mon Oct 14 16:24:13 2024 +0100 Merge branch 'refactor' into legacy commit cc9d237 Author: Tom Bland <[email protected]> Date: Mon Oct 14 16:22:05 2024 +0100 Fix test commit 94ef9b7 Merge: b2e8294 9360ad1 Author: Tom Bland <[email protected]> Date: Mon Oct 14 16:18:03 2024 +0100 Merge branch 'legacy' into convert_timeslice2 commit b2e8294 Merge: c7f67f4 3a05344 Author: Tom Bland <[email protected]> Date: Mon Oct 14 16:15:02 2024 +0100 Merge branch 'legacy' into convert_timeslice2 commit 9360ad1 Merge: 3a05344 3b0cb49 Author: Tom Bland <[email protected]> Date: Mon Oct 14 14:20:47 2024 +0100 Merge branch 'refactor' into legacy commit c7f67f4 Author: Tom Bland <[email protected]> Date: Fri Oct 11 14:16:00 2024 +0100 Update results files commit 0288459 Author: Tom Bland <[email protected]> Date: Fri Oct 11 14:03:38 2024 +0100 Default arguments for convert_timeslice commit dc8b8b8 Author: Tom Bland <[email protected]> Date: Fri Oct 11 12:00:34 2024 +0100 Formatting commit e4150e3 Author: Tom Bland <[email protected]> Date: Fri Oct 11 12:00:11 2024 +0100 Simplify timeslie import process commit 57c1c73 Author: Tom Bland <[email protected]> Date: Fri Oct 11 11:31:16 2024 +0100 Delete unused functions commit 19cf269 Author: Tom Bland <[email protected]> Date: Fri Oct 11 11:07:20 2024 +0100 Delete old convert_timeslice function commit 81e7a6a Author: Tom Bland <[email protected]> Date: Fri Oct 11 11:02:55 2024 +0100 Simplify timeslice_op function commit 5cbc8f2 Author: Tom Bland <[email protected]> Date: Fri Oct 11 10:53:56 2024 +0100 Remove remaining convert_timeslice calls commit c2b94e7 Author: Tom Bland <[email protected]> Date: Fri Oct 11 10:08:46 2024 +0100 Fix issue with timeslice ordering commit a0fe43c Author: Tom Bland <[email protected]> Date: Thu Oct 10 16:18:05 2024 +0100 Remove represent_hours function commit 7ebab9e Author: Tom Bland <[email protected]> Date: Thu Oct 10 16:08:53 2024 +0100 Update tests commit d9eb060 Author: Tom Bland <[email protected]> Date: Thu Oct 10 14:01:00 2024 +0100 Use new function wherever possible commit 65c3e48 Author: Tom Bland <[email protected]> Date: Wed Oct 9 12:11:42 2024 +0100 Draft new function with intended behaviour commit 8faf468 Author: Tom Bland <[email protected]> Date: Tue Oct 8 16:12:07 2024 +0100 Simplify some other parts of the code accordingly commit 647d3fe Author: Tom Bland <[email protected]> Date: Tue Oct 8 15:57:37 2024 +0100 Use global TIMESLICE variable throughout commit 977647d Author: Tom Bland <[email protected]> Date: Tue Oct 8 15:20:39 2024 +0100 Remove unnecessary convert_timeslice operations commit 3a05344 Author: Tom Bland <[email protected]> Date: Fri Oct 4 15:56:28 2024 +0100 Delete new_to_old_timeslice function commit 3b0cb49 Author: Tom Bland <[email protected]> Date: Fri Oct 4 15:51:45 2024 +0100 Remove more redundant code commit 1518034 Author: Tom Bland <[email protected]> Date: Fri Oct 4 15:05:35 2024 +0100 Delete tests and documentation commit 51a5273 Author: Tom Bland <[email protected]> Date: Fri Oct 4 14:58:40 2024 +0100 Delete legacy sector commit 4fd2e79 Author: Tom Bland <[email protected]> Date: Fri Oct 4 14:02:07 2024 +0100 Small fix to another test commit 018ca5c Author: Tom Bland <[email protected]> Date: Fri Oct 4 12:32:59 2024 +0100 Fix tests commit e386da1 Author: Tom Bland <[email protected]> Date: Fri Oct 4 12:10:10 2024 +0100 Revert some changes to fix tests commit 9d2cac9 Author: Tom Bland <[email protected]> Date: Fri Oct 4 10:08:01 2024 +0100 More comments added to code commit 941a5a6 Author: Tom Bland <[email protected]> Date: Fri Oct 4 10:07:36 2024 +0100 Delete unused factory commit 3e51311 Author: Tom Bland <[email protected]> Date: Fri Oct 4 10:06:02 2024 +0100 Revert change to merge_assets commit a86e07f Author: Tom Bland <[email protected]> Date: Thu Oct 3 14:56:04 2024 +0100 Simplify merge_assets commit b47c811 Author: Tom Bland <[email protected]> Date: Thu Oct 3 14:15:51 2024 +0100 Simplify retirment profile code commit 697ff3f Author: Tom Bland <[email protected]> Date: Thu Oct 3 11:27:03 2024 +0100 Simplify agent module, more comments commit fa59017 Author: Tom Bland <[email protected]> Date: Wed Oct 2 17:10:56 2024 +0100 Add comments and simplify sector.next
tsmbland
added a commit
that referenced
this pull request
Dec 18, 2024
* 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 * Simplify costs module, add assert statements * Fix merge error * Properly fix merge error * Pass consumption to costs, improve aLCOE * Restore old ALCOE as legacy function * Fix for timeslice models * Remove assert statements * Restore old ALCOE * Fix some tests * Fix merge errors * Delete sections from documentation * Rename timeslice_op, add docstring * Fix consumption function * Properly calculate consumption in objectives * Revert a change to the consumption function * Simplify consumption tests (for now) * Delete legacy lcoe function * Delete supply_cost tests * Docstring and better error message for patch * Update tutorial results * Update example model results * Rename variable * Fix merge error * Fix failing tests * Helper function for calculating production amplitude * Decorator to validate cost function inputs/outputs * Simplify checks * Combine lifetime and annual LCOE functions * Modern annotations in costs module * Tidy NPV function * Remove code, reorder * Docstring description of lifetime vs annual * Functions for capital costs, running costs, annual_weights * annual_to_lifetime function * Separate functions for running cost components * Modify objectives to use new cost functions * Fix error in capacity_to_service_demand function * Tests for new costs functions * Docstrings for costs module * Beef up discount rate function * Add assertion * Fix timeslice_level error * Fix timeslice_level error (more) * Test for production_amplitude * Small improvements to consumption function * Combine tests * Add lifetime_to_annual * Copy changes to quantities module from #556 * Fix tests * Remove line * Pass objectives only prices from investment year * Changes to annual/lifetime costs to match original code * Revert "Changes to annual/lifetime costs to match original code" This reverts commit 3842925. * Typo * Use crf for annualized capital costs * Remove redundant function * Timeslice broadcasting fix * Revert change to utilities * Add new test for LCOE * Update remaining model * Add another test * Use pytest parametrize * Fix timeslice level error * Check that the "commodity" dimension is absent from cost outputs --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.
Uses an xarray patch to turn off broadcasting in the timeslice dimension, and adjusts the code where necessary by explicitly broadcasting arrays before operations