Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
617 commits
Select commit Hold shift + click to select a range
04a1286
Fix tutorial docs\tutorial-code\2-add-agent\2-multiple-objective
dalonsoa Jun 21, 2024
5ef8aad
Add test for demand_limitting_capacity
dalonsoa Jun 21, 2024
2aa8ea9
Add test_factory_constraints_passed_to_agents
dalonsoa Jun 21, 2024
2354a2a
Merge branch 'develop' into custom_constraints
dalonsoa Jun 21, 2024
73c734f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 21, 2024
d331f46
Merge pull request #354 from EnergySystemsModellingLab/custom_constra…
dalonsoa Jun 21, 2024
7e920a6
Merge branch 'develop' into max_capacity
dalonsoa Jun 21, 2024
5aeea97
Fix complaint from QA
dalonsoa Jun 21, 2024
ed3e15f
This patch checks whether the file "Results/MCACapacity.csv" exists, …
HarmonicReflux Jun 21, 2024
31f548d
More detailed explanation on how to set up ``pyenv`` on ``Linux`` and…
HarmonicReflux Jun 24, 2024
e26b217
Fill gaps in bar charts
tsmbland Jun 24, 2024
1b10b60
Update tables
tsmbland Jun 24, 2024
71bcf17
Merge branch 'develop' into documentation
tsmbland Jun 24, 2024
3c1e588
Reapply "Enforce minimum service factor limits"
alexdewar Jun 5, 2024
5418078
Fix: Skip minimum service factor check if not used
alexdewar Jun 20, 2024
61d6352
Typo
alexdewar Jun 18, 2024
c5f779d
read_technodictionary(): Also check factor utilization is non-zero
alexdewar Jun 18, 2024
2d40a61
Check minimum service factors in read_technodata_timeslices too
alexdewar Jun 20, 2024
454c86d
Add test for minimum service factor check in read_technodata_timeslices
alexdewar Jun 20, 2024
fc963bc
Add tests for check_utilization_not_all_zero
alexdewar Jun 20, 2024
4c10462
Add tests for check_minimum_service_factors_in_range
alexdewar Jun 20, 2024
f4199af
Make higher-level function for utilisation and minimum service factor…
alexdewar Jun 20, 2024
593a43b
Check that utilisation factors are in range
alexdewar Jun 20, 2024
9f14629
Do check for min service factor column in check_utilization_and_minim…
alexdewar Jun 20, 2024
5dba9f2
Check whether utilization factors are below minimums
alexdewar Jun 20, 2024
78c9b7f
Replace test_minimum_service_factor_invalid_input with mocking
alexdewar Jun 20, 2024
013d6a4
Fix: Check may be run more than once
alexdewar Jun 21, 2024
b444f68
Fix minimum_service example: Reduce utilization factor to be less tha…
alexdewar Jun 21, 2024
98a0fb8
Merge branch 'develop' into tests_fail_when_running_the_full_testing_…
HarmonicReflux Jun 24, 2024
8c8cbbb
Fix one more bar chart
tsmbland Jun 24, 2024
3ed9e41
Address failing test for add_agent
tsmbland Jun 24, 2024
348bd15
Expand test_read_trade_technodata to additional dataset attributes
cc-a Jun 18, 2024
ff002b4
Expand test_read_existing_trade
cc-a Jun 18, 2024
9ca8fb4
Add test_read_technodictionary
cc-a Jun 24, 2024
1bc938f
Add test_read_technodata_timeslices
cc-a Jun 24, 2024
74526f7
Add test_read_io_technodata
cc-a Jun 24, 2024
9f16f92
Add test_read_initial_assets
cc-a Jun 24, 2024
3603329
Add test_glob_commodities
cc-a Jun 24, 2024
eff7af7
Add test_read_csv_agent_parameters
cc-a Jun 24, 2024
3a8ced9
Add test_read_initial_market
cc-a Jun 24, 2024
ec1e1d7
Add test_read_attribute_table
cc-a Jun 24, 2024
88b8285
Add test_read_csv_outputs
cc-a Jun 24, 2024
6c7cd6f
Add debug config for default_retro
tsmbland Jun 24, 2024
509d0d5
Merge branch 'documentation' of https://github.com/EnergySystemsModel…
tsmbland Jun 24, 2024
e2a3739
Actually fix wizzard test
tsmbland Jun 24, 2024
e3af627
Fix test_factory_constraints_passed_to_agents
tsmbland Jun 24, 2024
f240296
Fix 3.9 error with |
tsmbland Jun 24, 2024
b9b74be
Fix constraints tests
tsmbland Jun 24, 2024
7dafe83
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 24, 2024
5ab22bb
Merge pull request #328 from EnergySystemsModellingLab/enforce_minimu…
alexdewar Jun 24, 2024
650b2fc
Regenerate settings files
tsmbland Jun 25, 2024
c38b832
Merge branch 'develop' into documentation
tsmbland Jun 25, 2024
9d91b50
Merge branch 'develop' into reader-test-improvements
cc-a Jun 25, 2024
e09a23d
Merge pull request #346 from EnergySystemsModellingLab/reader-test-im…
cc-a Jun 25, 2024
d6c14e9
Merge branch 'documentation' of https://github.com/EnergySystemsModel…
tsmbland Jun 25, 2024
6452dd4
Merge branch 'develop' into documentation
tsmbland Jun 25, 2024
78ab8a2
Merge branch 'documentation' of https://github.com/EnergySystemsModel…
tsmbland Jun 25, 2024
4086309
Update readers tests
tsmbland Jun 25, 2024
e23cc3d
Merge branch 'develop' into pre-commit-ci-update-config
tsmbland Jun 26, 2024
7ba8bfd
Remove Level parameter from Technodata files
tsmbland Jun 26, 2024
5cd5889
Update reader test
tsmbland Jun 26, 2024
2824331
Remove Level from more technodata files
tsmbland Jun 26, 2024
3fc4fbf
Remove Level from Technodata documentation
tsmbland Jun 26, 2024
8e0aca3
Small changes to the documentation/notebooks
tsmbland Jun 26, 2024
33b5d43
Tiny grammar change
tsmbland Jun 26, 2024
a2a1b4f
Merge pull request #374 from EnergySystemsModellingLab/level_parameter
tsmbland Jun 26, 2024
e729995
Merge branch 'develop' into documentation
tsmbland Jun 26, 2024
5f392a3
Remove "Level" from CommOut files
tsmbland Jun 27, 2024
b58daf3
Documentation for Level parameter
tsmbland Jun 27, 2024
6f7c1de
Add warning for flexible outputs
tsmbland Jun 27, 2024
02daf3c
Drop flexible_outputs
tsmbland Jun 27, 2024
3a89936
Use drop_vars instead of drop
tsmbland Jun 27, 2024
d3205e0
Use drop_vars in the right place
tsmbland Jun 27, 2024
5c47c9c
Merge branch 'develop' into pre-commit-ci-update-config
tsmbland Jun 27, 2024
bd20d7d
Merge pull request #369 from EnergySystemsModellingLab/pre-commit-ci-…
tsmbland Jun 27, 2024
3d852ed
More specific error message
tsmbland Jun 28, 2024
cb950df
More clarity about default values
tsmbland Jun 28, 2024
19dac52
Merge branch 'develop' into level_documentation
tsmbland Jun 28, 2024
bd73930
Merge pull request #377 from EnergySystemsModellingLab/level_document…
tsmbland Jun 28, 2024
ceee06e
Remove timeslice level names from drop_vars statements
tsmbland Jun 30, 2024
0a7463b
Remove more hardcoded level names
tsmbland Jun 30, 2024
42c9f57
Drop index column from output files
tsmbland Jun 30, 2024
a66ec22
Regenerate results files
tsmbland Jun 30, 2024
b7d5dfe
Revert "Remove timeslice level names from drop_vars statements"
tsmbland Jul 1, 2024
b068bc1
Update results file
tsmbland Jul 1, 2024
6fb7c9e
Update test_docs_notebooks.py
HarmonicReflux Jul 1, 2024
5456ac7
Merge branch 'develop' into tests_fail_when_running_the_full_testing_…
HarmonicReflux Jul 1, 2024
8c05a6b
Update docs/installation/pipx-based.rst
HarmonicReflux Jul 1, 2024
90d401e
Enable consumption data with no timeslice info
tsmbland Jul 1, 2024
482a04c
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 1, 2024
e08ffc4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 1, 2024
b561e20
Merge branch 'develop' into 357_improve_documentaation_chapter_3_0_to…
HarmonicReflux Jul 1, 2024
10d82fa
Made documentation clearer regarding installation of pyenv on Windows…
HarmonicReflux Jul 1, 2024
e88e024
Merge remote-tracking branch 'origin/357_improve_documentaation_chapt…
HarmonicReflux Jul 1, 2024
d178843
Merge pull request #385 from EnergySystemsModellingLab/pre-commit-ci-…
alexdewar Jul 1, 2024
c5de220
Change default to standard_demand
tsmbland Jul 1, 2024
5e7d0a5
As per Alex's suggestion, I added an explicit note to run a MUSE mode…
HarmonicReflux Jul 1, 2024
f2cdc2d
Merge branch 'develop' into 357_improve_documentaation_chapter_3_0_to…
HarmonicReflux Jul 1, 2024
e4ce98a
Merge branch 'develop' into tests_fail_when_running_the_full_testing_…
HarmonicReflux Jul 1, 2024
d6cbd8f
Re-run models
tsmbland Jul 1, 2024
c4b8e9b
Merge branch 'develop' into documentation
tsmbland Jul 1, 2024
143972b
Remove print statement
tsmbland Jul 1, 2024
c4bdba7
Declare demand_share explicitly
tsmbland Jul 1, 2024
7f14883
Merge branch 'documentation' of https://github.com/EnergySystemsModel…
tsmbland Jul 1, 2024
1b8068e
Update maximum_iterations to 100
tsmbland Jul 1, 2024
48d78bf
Change default value
tsmbland Jul 1, 2024
d4ef25b
Update more results files
tsmbland Jul 1, 2024
baf1efb
Use Even Bettter TOML
dalonsoa Jul 2, 2024
a42ba1e
Merge branch 'develop' into max_capacity
dalonsoa Jul 2, 2024
4c0b53d
Merge pull request #387 from EnergySystemsModellingLab/even-better-toml
alexdewar Jul 2, 2024
5a82c7a
Merge pull request #386 from EnergySystemsModellingLab/max_iterations
tsmbland Jul 2, 2024
41f1c49
Merge branch 'develop' into documentation
tsmbland Jul 2, 2024
1d5aec2
Merge branch 'develop' into demand_path
tsmbland Jul 2, 2024
e3e744b
Correctly use minimum service factor
dalonsoa Jul 2, 2024
9456a3f
Update documentation
dalonsoa Jul 2, 2024
73bfbad
Text changes in notebooks
tsmbland Jul 2, 2024
3ab1cee
Simplify model 4.2, modify text
tsmbland Jul 2, 2024
95731b3
Merge branch 'develop' into documentation
tsmbland Jul 2, 2024
0c2f4dd
Consider a more complex approach no finidng the max capacity
dalonsoa Jul 2, 2024
2cc7439
Merge branch 'develop' into max_capacity
dalonsoa Jul 2, 2024
52e145b
Helper function for dropping timeslice
tsmbland Jul 2, 2024
d8a84bf
More usage of the helper
tsmbland Jul 2, 2024
f94cdfc
Add docstring
tsmbland Jul 2, 2024
3c26c03
Delete old results files
tsmbland Jul 2, 2024
9ee059d
Add safety check in scripts to prevent results duplication
tsmbland Jul 2, 2024
c4de33b
Fix error from previous commit
tsmbland Jul 2, 2024
0fe1bdd
Merge branch 'drop_timeslice' into demand_path
tsmbland Jul 2, 2024
110ab54
Merge pull request #349 from EnergySystemsModellingLab/documentation
tsmbland Jul 2, 2024
e6b52f2
Add test and typing
tsmbland Jul 2, 2024
8543264
Remove list comprehension
tsmbland Jul 2, 2024
891084b
Merge branch 'develop' into drop_timeslice
tsmbland Jul 2, 2024
bb6e821
Update docs/installation/pipx-based.rst
HarmonicReflux Jul 2, 2024
c9b93f8
Update docs/installation/pipx-based.rst
HarmonicReflux Jul 2, 2024
7168611
Update docs/installation/pipx-based.rst
HarmonicReflux Jul 2, 2024
3434443
Merge branch 'demand_path' into timeslice_names
tsmbland Jul 2, 2024
c6d549c
Update docs/installation/pipx-based.rst
HarmonicReflux Jul 3, 2024
79ae6cf
Update pipx-based.rst
HarmonicReflux Jul 3, 2024
cbcd1bd
Merge branch 'develop' into 357_improve_documentaation_chapter_3_0_to…
HarmonicReflux Jul 3, 2024
227f5fe
Merge branch 'develop' into max_capacity
tsmbland Jul 3, 2024
5e6579f
Regenerate results files
tsmbland Jul 3, 2024
7f9aaa1
Fix typo
tsmbland Jul 3, 2024
27668c6
Merge pull request #355 from EnergySystemsModellingLab/max_capacity
tsmbland Jul 3, 2024
5300516
Merge branch 'develop' into 357_improve_documentaation_chapter_3_0_to…
HarmonicReflux Jul 3, 2024
b091f35
Merge pull request #367 from EnergySystemsModellingLab/357_improve_do…
HarmonicReflux Jul 3, 2024
0bd12ed
Preserve timeslice column in outputs
tsmbland Jul 3, 2024
525e62b
Fix mimimum service test
tsmbland Jul 3, 2024
f49718a
Fix TimeSlice typo
tsmbland Jul 3, 2024
b946541
Merge branch 'develop' into timeslice_typo
tsmbland Jul 3, 2024
478e99c
Merge pull request #396 from EnergySystemsModellingLab/timeslice_typo
tsmbland Jul 3, 2024
79954e3
Change test comparison to >=
tsmbland Jul 3, 2024
713cdce
Remove stray files in docs folder
alexdewar Jul 3, 2024
5dfbb31
Merge pull request #395 from EnergySystemsModellingLab/docs_remove_st…
alexdewar Jul 3, 2024
0a752bf
Mark test as xfail
tsmbland Jul 3, 2024
fca34c2
Update copyright holder and year
alexdewar Jul 2, 2024
fc7ab11
Remove reference to SGI in CITATION.cff
alexdewar Jul 2, 2024
11f3347
pyproject.toml: Update broken homepage URL
alexdewar Jul 3, 2024
36f8c77
Merge pull request #394 from EnergySystemsModellingLab/remove_ref_to_sgi
alexdewar Jul 3, 2024
8914bd5
Remove generator expressions
tsmbland Jul 4, 2024
6e5cfd9
Merge branch 'develop' into drop_timeslice
tsmbland Jul 4, 2024
0d54942
Merge pull request #392 from EnergySystemsModellingLab/drop_timeslice
tsmbland Jul 4, 2024
a7367bb
Merge branch 'develop' into demand_path
tsmbland Jul 4, 2024
e74700c
Merge pull request #384 from EnergySystemsModellingLab/demand_path
tsmbland Jul 4, 2024
50831b8
Merge branch 'develop' into timeslice_names
tsmbland Jul 4, 2024
e830cd3
Regenerate results files
tsmbland Jul 4, 2024
06d35af
Merge pull request #381 from EnergySystemsModellingLab/timeslice_names
tsmbland Jul 4, 2024
53cd167
Add reset_index
tsmbland Jul 4, 2024
ebb816a
Second attempt to fix error message
tsmbland Jul 5, 2024
d91476d
Merge pull request #401 from EnergySystemsModellingLab/fix_error_message
tsmbland Jul 5, 2024
2cbddc2
Merge branch 'develop' into tests_fail_when_running_the_full_testing_…
HarmonicReflux Jul 8, 2024
e16cf54
Split markdown cell while executing default model to create capacity …
HarmonicReflux Jul 8, 2024
4cc1e8e
Deleted instructions to run the default model of muse as part of the …
HarmonicReflux Jul 8, 2024
9b08706
Improved user documentation.
HarmonicReflux Jul 8, 2024
eca80f1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 8, 2024
d6ae3a2
Set MinimumServiceFactor to 0 for relevant file and removed Technodat…
HarmonicReflux Jul 8, 2024
ec75afb
Updated results files for default_timeslice model for MinimumServiceF…
HarmonicReflux Jul 8, 2024
f00917d
Update docs/installation/developers.rst
HarmonicReflux Jul 8, 2024
f5ead55
Update docs/installation/developers.rst
HarmonicReflux Jul 8, 2024
20d3e5e
Update docs/installation/developers.rst
HarmonicReflux Jul 8, 2024
a2992f2
Tidy find_equilibrium function
tsmbland Jul 9, 2024
dc1f22f
Add iteration += 1 to while loop
tsmbland Jul 9, 2024
2e8e1b5
Merge pull request #403 from EnergySystemsModellingLab/334_change_Min…
HarmonicReflux Jul 9, 2024
297e8db
Merge branch 'develop' into tests_fail_when_running_the_full_testing_…
HarmonicReflux Jul 9, 2024
c963227
Remove more redundant code
tsmbland Jul 9, 2024
512f9cd
One more line deleted
tsmbland Jul 9, 2024
68928cf
Fix find_equilibrium loop
tsmbland Jul 10, 2024
4cec767
Re-run tutorials
tsmbland Jul 10, 2024
1cf3f1c
Re-run example models
tsmbland Jul 10, 2024
5d7462b
Quick fix for float-integer error
martinstringer Jul 10, 2024
1d2209b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 10, 2024
498f36e
Move demand fulfillment check
tsmbland Jul 11, 2024
bca773a
Merge pull request #365 from EnergySystemsModellingLab/tests_fail_whe…
HarmonicReflux Jul 12, 2024
19b17e2
Simplfiy prices function, fix issues with `keep_columns` for supply a…
tsmbland Jul 12, 2024
5b9dba8
Update tutorial models
tsmbland Jul 12, 2024
3111ef9
Update example models
tsmbland Jul 12, 2024
eac8e22
Merge branch 'develop' into fix_outputs
tsmbland Jul 12, 2024
f08b895
Update tutorial 0
tsmbland Jul 12, 2024
aff51d7
Merge branch 'fix_outputs' of https://github.com/EnergySystemsModelli…
tsmbland Jul 12, 2024
c2b3caa
Merge branch 'develop' into fix-int-float-error
martinstringer Jul 12, 2024
51f97ad
Merge pull request #409 from EnergySystemsModellingLab/fix-int-float-…
martinstringer Jul 15, 2024
727ac9b
Add back future_propagation
tsmbland Jul 18, 2024
68be515
Remove index column from capacity files
tsmbland Jul 18, 2024
9cfd01f
Merge branch 'develop' into fix_outputs
tsmbland Jul 18, 2024
8c06e01
Re-run tutorial 0
tsmbland Jul 18, 2024
4fdf10b
Merge branch 'fix_outputs' of https://github.com/EnergySystemsModelli…
tsmbland Jul 18, 2024
c56c3ce
Fix error in supply_cost function
tsmbland Jul 19, 2024
75ea324
Update tutorial model results
tsmbland Jul 19, 2024
7df6d52
Fix test_supply_cost
tsmbland Jul 19, 2024
b2c83b9
Use multiindex_to_coords to fix pandas error. Fix new -> newcapa
tsmbland Jul 19, 2024
1cef405
Merge branch 'develop' into fix_costs_outputs
tsmbland Jul 19, 2024
e91e722
Merge branch 'develop' into find_equilibrium
tsmbland Jul 22, 2024
88aae63
Merge pull request #405 from EnergySystemsModellingLab/find_equilibrium
tsmbland Jul 22, 2024
a857481
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 15, 2024
bed72b2
Merge branch 'develop' into fix_find_equilibrium
tsmbland Jul 22, 2024
51981aa
Update results file
tsmbland Jul 22, 2024
eaed2b5
Merge branch 'fix_find_equilibrium' into fix_supply_cost
tsmbland Jul 22, 2024
6dd636b
Merge pull request #404 from EnergySystemsModellingLab/pre-commit-ci-…
tsmbland Jul 22, 2024
c9661de
Update more results files
tsmbland Jul 22, 2024
821fe5e
Merge branch 'develop' into fix_find_equilibrium
tsmbland Jul 22, 2024
caa1ac0
Merge branch 'fix_find_equilibrium' into fix_supply_cost
tsmbland Jul 22, 2024
c243f71
Merge pull request #407 from EnergySystemsModellingLab/fix_find_equil…
tsmbland Jul 22, 2024
692c0e8
Merge pull request #418 from EnergySystemsModellingLab/fix_supply_cost
tsmbland Jul 22, 2024
769c802
Merge branch 'develop' into fix_costs_outputs
tsmbland Jul 22, 2024
6fcaa99
Merge pull request #420 from EnergySystemsModellingLab/fix_costs_outputs
tsmbland Jul 22, 2024
0f46fb1
Merge branch 'develop' into fix_outputs
tsmbland Jul 22, 2024
0ca2ac0
Regenerate results files
tsmbland Jul 22, 2024
dcb9903
Specifying the minimum version requirements within pyproject.toml for…
HarmonicReflux Jul 22, 2024
9b72707
Fix issue with numpy clip, and pin to >2
tsmbland Jul 22, 2024
520221f
Change index = False to default
tsmbland Jul 22, 2024
95c43c2
Fix return type annotation
tsmbland Jul 22, 2024
40af4e6
Fix test
tsmbland Jul 23, 2024
e6c0853
Fix index issue for sector files
tsmbland Jul 23, 2024
33b04ea
Merge pull request #412 from EnergySystemsModellingLab/fix_outputs
tsmbland Jul 23, 2024
c65bd69
Merge branch 'develop' into dependencies
HarmonicReflux Jul 23, 2024
93d225f
Merge pull request #424 from EnergySystemsModellingLab/dependencies
HarmonicReflux Jul 23, 2024
3a71143
debugging the numpy 2 related error in `pytest tests/test_carbon_budg…
HarmonicReflux Jul 24, 2024
464ef69
Try to fix error related to
HarmonicReflux Jul 24, 2024
aeb0fbe
Merge branch 'develop' into numpy2
HarmonicReflux Jul 24, 2024
d644f9c
Merge pull request #425 from EnergySystemsModellingLab/numpy2
HarmonicReflux Jul 24, 2024
1ceadc1
Pin bottleneck dependency
tsmbland Jul 25, 2024
48095f6
Merge pull request #428 from EnergySystemsModellingLab/bottleneck
tsmbland Jul 25, 2024
8b40631
Brush up documentation
tsmbland Jul 26, 2024
5939cd5
Update constraints for example models
tsmbland Jul 26, 2024
e1a3ef7
Update results
tsmbland Jul 26, 2024
2ec0912
Fix alignment
tsmbland Jul 26, 2024
d01ed8b
Revert change to trade model
tsmbland Jul 26, 2024
783f2de
Merge pull request #433 from EnergySystemsModellingLab/demand_share
tsmbland Jul 29, 2024
0f97937
Merge branch 'develop' into constraints
tsmbland Jul 29, 2024
91dbd50
Merge pull request #432 from EnergySystemsModellingLab/constraints
tsmbland Jul 29, 2024
6b7643c
Bump version to v1.2.0rc1
alexdewar Jul 29, 2024
0355d08
Merge pull request #434 from EnergySystemsModellingLab/new_version
alexdewar Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.1.0
current_version = 1.2.0rc1
commit = True
tag = True

Expand Down
3 changes: 3 additions & 0 deletions .codespell_ignore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
datas
raison
fom
25 changes: 17 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*.py]
indent_style = space
indent_size = 4
tab_width = 4
[*]
charset = utf-8
max_line_length=88
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
max_line_length = 88

[*.md]
indent_size = 2

[*.yaml]
indent_size = 2

[*.yml]
indent_size = 2

[Makefile]
indent_style = tab
11 changes: 0 additions & 11 deletions .flake8

This file was deleted.

8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,26 @@ assignees: ''
---

## Describe the bug
A clear and concise description of what the bug is, including error messages.

A clear and concise description of what the bug is, including error messages.

## To Reproduce
Steps to reproduce the behavior. Attache any input file that might be required.

Steps to reproduce the behavior. Attach any input file that might be required.

## Expected behavior

A clear and concise description of what you expected to happen.

## Screenshots

If applicable, add screenshots to help explain your problem.

## Context

Please, complete the following to better understand the system you are using to run MUSE.

- Operative system (eg. Windows 10):
- Operating system (eg. Windows 10):
- MUSE version (eg. 1.0.1):
- Installation method (eg. pipx, pip, development mode):
- Python version (you can get this running `python --version`):
6 changes: 5 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ assignees: ''

---

## Is your feature request related to a problem? Please describe.
## Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

## Describe the solution you'd like

A clear and concise description of what you want to happen.

## Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

## Additional context

Add any other context or screenshots about the feature request here.
4 changes: 1 addition & 3 deletions .github/ISSUE_TEMPLATE/usage-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ assignees: ''

(Please, describe in detail what you want to achieve and what parts of the documentation you have checked to do so)


## What you have tried

(If you have already taken some steps, please, describe here what you have tried. Provide any input files you are trying to use).


## Context

Please, complete the following to better understand the system you are using to run MUSE.

- Operative system (eg. Windows 10):
- Operating system (eg. Windows 10):
- MUSE version (eg. 1.0.1):
- Installation method (eg. pipx, pip, development mode):
- Python version (you can get this running `python --version`):
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Fixes # (issue)
## Type of change

Please add a line in the relevant section of
[CHANGELOG.md](https://github.com/SGIModel/StarMuse/blob/development/CHANGELOG.md) to
[CHANGELOG.md](https://github.com/EnergySystemsModellingLab/MUSE_OS/blob/development/CHANGELOG.md) to
document the change (include PR #) - note reverse order of PR #s.

- [ ] New feature (non-breaking change which adds functionality)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/broken-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
uses: ruzickap/action-my-broken-link-checker@v2
with:
url: https://muse-os.readthedocs.io/en/latest/
cmd_params: '--timeout=20 --buffer-size=8192 --max-connections=3 --color=always --skip-tls-verification --header="User-Agent:curl/7.54.0"' # muffet parameters
cmd_params: '--timeout=20 --buffer-size=8192 --max-connections=3 --color=always --skip-tls-verification --header="User-Agent:curl/7.54.0"' # muffet parameters
185 changes: 39 additions & 146 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,183 +1,76 @@
name: QA, tests and publishing
name: Tests

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main, develop]
tags:
- '*'
jobs:
# Checks the style using the pre-commit hooks
qa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pre-commit/action@v3.0.0
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main, develop]
workflow_call:

# Only then, normal testing proceeds
jobs:
unit-tests:
needs: qa
runs-on: ${{ matrix.os }}


strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip==22.1.2
pip install -U setuptools==62.6.0 wheel xlrd==1.2.0
pip install -e .[all]

# The unit tests, with coverage under linux
- name: Unit tests (linux)
if: (runner.os == 'Linux')
run: |
pip install pytest-cov
pytest -m "not regression and not notebook" --junitxml=junit/pytest.xml \
--cov=muse \
--cov-branch \
--cov-report=xml

- name: Upload coverage to Codecov
if: success() && (runner.os == 'Linux' && matrix.python-version == 3.9)
uses: codecov/codecov-action@v3

- name: Unit tests (not linux)
if: (runner.os != 'Linux')
run: pytest -m "not regression and not notebook"

regression-tests:
needs: qa
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9"]
# Test with the earliest and the latest python versions supported
python-version: ["3.9", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip==22.1.2
pip install -U setuptools==62.6.0 wheel xlrd==1.2.0
pip install -e .[all]

# The regression tests (with non coverage)
- name: Regression tests
run: pytest tests/test_fullsim_regression.py

# If all tests pass, we try to build a wheel
build-wheel:
# needs: [regression-tests, unit-tests]
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
run: pip install -e .[all]

- name: Build sdist
# The unit tests, with coverage under linux
- name: Unit tests (linux)
if: (runner.os == 'Linux')
run: |
python -m pip install --upgrade build
python -m build

- uses: actions/upload-artifact@v3
pip install pytest-cov
pytest -m "not regression and not notebook" --junitxml=junit/pytest.xml \
--cov=muse \
--cov-branch \
--cov-report=xml

- name: Upload coverage to Codecov
if: success() && (runner.os == 'Linux' && matrix.python-version == 3.9)
uses: codecov/codecov-action@v4
with:
path: dist/MUSE*

# And if we are pushing a tag, then we try to publish it
publish-TestPyPI:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: build-wheel
name: Publish MUSE to TestPyPI
runs-on: ubuntu-latest
permissions:
id-token: write
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

steps:

- name: Download sdist artifact
uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Display structure of downloaded files
run: ls -R dist

- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true

publish-PyPI:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: publish-TestPyPI
name: Publish MUSE to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- name: Unit tests (not linux)
if: (runner.os != 'Linux')
run: pytest -m "not regression and not notebook"

- name: Download sdist artifact
uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Display structure of downloaded files
run: ls -R dist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

build-standalone:
needs: publish-PyPI
name: Build standalone executables
regression-tests:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ windows-latest ]
python-version: [ "3.9" ]
os: [ubuntu-latest, macos-latest, windows-latest]
# Test with the earliest and the latest python versions supported
python-version: ["3.9", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pyinstaller
python -m pip install -e .[dev,gui]

- name: Build directory-based standalone
run: pyinstaller muse_dir.spec --distpath standalone
run: pip install -e .[all]

- uses: actions/upload-artifact@v3
with:
path: standalone/MUSE*
name: MUSE
# The regression tests (with non coverage)
- name: Regression tests
run: pytest tests/test_fullsim_regression.py
Loading