Skip to content
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

Release/0.1.1a5 #549

Merged
merged 904 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
904 commits
Select commit Hold shift + click to select a range
f11dd73
Merge pull request #475 from ImperialCollegeLondon/461-animal-model-h…
TaranRallings Jul 1, 2024
16513fc
Combined enzyme mediated rates into a single function
jacobcook1995 Jul 1, 2024
6fc5709
Merge branch 'develop' into feature/microbe_necromass
jacobcook1995 Jul 1, 2024
06a37e3
version 1 theory
vgro Jul 1, 2024
3bf1964
blanks around headings added
vgro Jul 1, 2024
4f45d91
Merge branch 'develop' into update_abiotic_models_overview
vgro Jul 1, 2024
735aea8
Merge pull request #476 from ImperialCollegeLondon/update_abiotic_mod…
vgro Jul 1, 2024
199ae11
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 1, 2024
b7486df
Merge branch 'develop' into variables_1
dalonsoa Jul 2, 2024
2617508
Merge branch 'develop' into 453-explore-move-to-numpy-20
davidorme Jul 2, 2024
94e29ca
Merge pull request #478 from ImperialCollegeLondon/pre-commit-ci-upda…
davidorme Jul 2, 2024
564881e
Soil model variables update
davidorme Jul 2, 2024
078cf8f
Litter model variables update
davidorme Jul 2, 2024
0b962c6
Switched to standard numpy import pattern
jacobcook1995 Jul 2, 2024
9e016b3
Spelt out the pool names in the docstrings
jacobcook1995 Jul 2, 2024
1f14137
Updating soil model tests to new variable setup
davidorme Jul 2, 2024
26ad49d
Change dataclass names to make clear that they are rates of change
jacobcook1995 Jul 2, 2024
c93a7ae
rename LayerStructure.soil_layer_depth to soil_layer_depths
davidorme Jul 2, 2024
3123dc2
Typo
davidorme Jul 2, 2024
0ec853e
Renaming lyr_str to lyr_strct to avoid string confusion
davidorme Jul 2, 2024
22a4154
Added note on fAPAR
davidorme Jul 2, 2024
998e0ac
Merge branch 'develop' into 458-adopt-extended-layerstructure-functio…
davidorme Jul 2, 2024
92de3ee
Merge pull request #459 from ImperialCollegeLondon/458-adopt-extended…
davidorme Jul 2, 2024
2a6bbfd
Merge branch 'develop' into variables_1
davidorme Jul 2, 2024
2c6e387
Merge branch 'develop' into feature/microbe_necromass. Had to update …
jacobcook1995 Jul 2, 2024
a5fc7d1
user stories updated
vgro Jul 2, 2024
13cf173
Merge branch 'develop' into update_ve_theory
vgro Jul 2, 2024
f3252a8
Changed pytest import mode so that test files can share names
jacobcook1995 Jul 2, 2024
2472fb1
Moved litter enviromental factors into a seperate module
jacobcook1995 Jul 2, 2024
ad5041e
Removed a handful of now defunct constants and methods.
TaranRallings Jul 2, 2024
f2ef0db
Removed longevity scaling.
TaranRallings Jul 2, 2024
2e05949
Removed unnecessary brackets in data generation scripts
jacobcook1995 Jul 3, 2024
5ae07d8
Switched to using explict floating points in data generation scripts
jacobcook1995 Jul 3, 2024
d8afa00
Removed stray comma
jacobcook1995 Jul 3, 2024
48e4b0a
Merge pull request #477 from ImperialCollegeLondon/feature/microbe_ne…
jacobcook1995 Jul 3, 2024
43b6a0b
Merge branch 'develop' into feature/litter_N
jacobcook1995 Jul 3, 2024
c92e94b
Merge branch 'develop' into 474-animal-remove-unused-functions-and-co…
TaranRallings Jul 3, 2024
b78f36e
Merge branch 'develop' into update_ve_theory
vgro Jul 3, 2024
038de10
Merge pull request #482 from ImperialCollegeLondon/474-animal-remove-…
TaranRallings Jul 3, 2024
ec505b0
Added a function to split biomass input between metabolic and structu…
jacobcook1995 Jul 3, 2024
96099de
Added new litter submodules to the api docs
jacobcook1995 Jul 3, 2024
d4613e4
Animal model description in module_overview.md
TaranRallings Jul 4, 2024
689ecfa
first steps abiotic documentation
vgro Jul 4, 2024
3bbfe37
Added a function to partition the plant inputs between litter pools
jacobcook1995 Jul 4, 2024
8345563
Merge branch 'develop' into add_abiotic_documentation
vgro Jul 4, 2024
a1b2842
Merge branch 'develop' into 453-explore-move-to-numpy-20
davidorme Jul 5, 2024
4b1acfe
Updating to canopy_absorption
davidorme Jul 5, 2024
99daf0f
Merge branch 'variables_1' of https://github.com/ImperialCollegeLondo…
davidorme Jul 5, 2024
d51f3e2
Adding figure to theory page
davidorme Jul 5, 2024
deeaebb
Update docs/source/virtual_ecosystem/module_overview.md
TaranRallings Jul 5, 2024
dc8a65c
Update docs/source/virtual_ecosystem/module_overview.md
TaranRallings Jul 5, 2024
e31f1d8
Merge branch 'develop' into update_ve_theory
vgro Jul 5, 2024
d1f3b1d
Update docs/source/virtual_ecosystem/module_overview.md
TaranRallings Jul 5, 2024
86ba1b8
Merge pull request #481 from ImperialCollegeLondon/update_ve_theory
vgro Jul 5, 2024
c4ce8c5
Initial port of pyrealm dev docs
davidorme Jul 5, 2024
d2fde90
Merge branch 'develop' into 453-explore-move-to-numpy-20
davidorme Jul 5, 2024
02572a1
Merge pull request #454 from ImperialCollegeLondon/453-explore-move-t…
davidorme Jul 5, 2024
f4f9e48
Merge branch 'develop' into 487-animal-update-docs
TaranRallings Jul 5, 2024
cec9d30
Merge branch '487-animal-update-docs' of https://github.com/ImperialC…
TaranRallings Jul 5, 2024
19d24a1
Merge pull request #497 from ImperialCollegeLondon/487-animal-update-…
TaranRallings Jul 5, 2024
1f849c1
Fixing more doc build errors
davidorme Jul 5, 2024
8168190
updated microclimate content and hydrology outline
vgro Jul 5, 2024
ab512bd
highres figure added
vgro Jul 5, 2024
42492cd
Merge branch 'develop' into add_abiotic_documentation
vgro Jul 5, 2024
7393b39
Add new litter division into main litter pool updating function
jacobcook1995 Jul 5, 2024
e7dbea9
hydrology outline updated
vgro Jul 5, 2024
83e66ec
Jacob's comments included
vgro Jul 8, 2024
02cf91e
draft version hydrology
vgro Jul 8, 2024
8b0cf3b
Update docs/source/virtual_ecosystem/hydrology_theory.md
vgro Jul 8, 2024
329c9ee
Figure 2 updated
vgro Jul 8, 2024
155f24e
Merge branch 'add_abiotic_documentation' of https://github.com/Imperi…
vgro Jul 8, 2024
eb1b50d
fix inline math in water balance
vgro Jul 8, 2024
7e63500
new documentation overview updated to ve
vgro Jul 8, 2024
337b929
Converted pyrealm docs for virtual_ecosystem, not reorganised
vgro Jul 8, 2024
467dc2f
internal links added
vgro Jul 8, 2024
1f5922d
Landing page links
davidorme Jul 8, 2024
6c0a289
Updates to release docs and overview
davidorme Jul 8, 2024
e7f646f
Remove outdated file, updating release process and GH actions docs
davidorme Jul 8, 2024
12bb43c
updating qa/typing docs
davidorme Jul 8, 2024
c86298f
updating qa/typing docs
davidorme Jul 8, 2024
62e2210
Moar devdocs tidying
davidorme Jul 8, 2024
8843b36
Fixing broken links
davidorme Jul 8, 2024
9acc934
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 8, 2024
4d96927
Merging and updating dev documentation pages
davidorme Jul 9, 2024
7b93500
Updated sphinx instructions
davidorme Jul 9, 2024
293defd
Updated info on doctests and a trivial actual usage
davidorme Jul 9, 2024
0abca09
intro paragraph and additional heading for methods and models
vgro Jul 9, 2024
bf0629f
Merge pull request #503 from ImperialCollegeLondon/pre-commit-ci-upda…
davidorme Jul 9, 2024
0eea8ca
Merge branch 'develop' into add_abiotic_documentation
vgro Jul 9, 2024
a18cc3b
Merge branch 'develop' into 501-add-forward-links-to-landing-page
davidorme Jul 9, 2024
5171294
Merge pull request #502 from ImperialCollegeLondon/501-add-forward-li…
davidorme Jul 9, 2024
46cd4af
Merge branch 'develop' into add_abiotic_documentation
vgro Jul 9, 2024
c406599
Merge pull request #500 from ImperialCollegeLondon/add_abiotic_docume…
vgro Jul 9, 2024
cdbe4bc
reference links added
vgro Jul 9, 2024
63fceb6
Merge pull request #505 from ImperialCollegeLondon/504-references-mis…
vgro Jul 9, 2024
e466d1a
subfolders added to organise docs
vgro Jul 9, 2024
9defc9d
Added function to calculate the lignin proportions of the different l…
jacobcook1995 Jul 10, 2024
9e4cba0
rejigged theory overview
vgro Jul 10, 2024
b2da5d8
added first principles to abiotic theory overview
vgro Jul 10, 2024
fdbfbbb
small changes to intro to make clear this more theory than implementa…
vgro Jul 10, 2024
d6bb24e
update folder structure and links set to implementation
vgro Jul 10, 2024
66a082c
Update docs/source/virtual_ecosystem/theory/hydrology_theory.md
vgro Jul 10, 2024
52e8ee8
Update module_overview.md
vgro Jul 10, 2024
4c6814d
Remaining flake8 reference
davidorme Jul 10, 2024
26ea6fe
Merge branch 'develop' into 498-update-contributor-documentation
davidorme Jul 10, 2024
92f6a30
Added new function to calculate litter lignin proportion into main mo…
jacobcook1995 Jul 10, 2024
7018e18
Merge branch 'develop' into 498-update-contributor-documentation
davidorme Jul 10, 2024
a0bceb2
Borked the _toc.yaml conflict resolution
davidorme Jul 10, 2024
b077a59
Merge pull request #499 from ImperialCollegeLondon/498-update-contrib…
davidorme Jul 10, 2024
3600e20
added links from overview to individual model theories
vgro Jul 10, 2024
d83716d
Merge branch '507-add-more-theory-to-the-theory' of https://github.co…
vgro Jul 10, 2024
88aa214
Merge branch 'develop' into 507-add-more-theory-to-the-theory
vgro Jul 10, 2024
22e2943
Removed incorrect init vars from litter model
jacobcook1995 Jul 10, 2024
758686e
Added function to plant model to output (dummy) litter output values
jacobcook1995 Jul 10, 2024
170b030
Merge branch 'develop' into feature/litter_N
jacobcook1995 Jul 10, 2024
a794090
Merge branch 'develop' into 506-implementation-of-abiotic-simple-mode…
vgro Jul 10, 2024
2bee3a2
first draft abiotic simple implementation
vgro Jul 10, 2024
0f840e9
Merge pull request #508 from ImperialCollegeLondon/507-add-more-theor…
vgro Jul 11, 2024
34f5795
Comments in conf.py and turn on figure numbering
davidorme Jul 11, 2024
c8f18a2
First draft of implementation base doc
davidorme Jul 11, 2024
35954dc
Merge branch 'develop' into 514-review-the-implementation-section-of-…
davidorme Jul 11, 2024
dbac44b
Move soil implementation into soil theory page
davidorme Jul 11, 2024
c49e92f
abiotic simple code added
vgro Jul 11, 2024
cd2cfae
Moved content of calculate_change_in_litter_variables into the Litter…
jacobcook1995 Jul 11, 2024
76680c8
Merge branch 'develop' into variables_1
dalonsoa Jul 11, 2024
8224bd0
references to figures added
vgro Jul 11, 2024
60a0acc
Merge branch 'develop' into 506-implementation-of-abiotic-simple-mode…
vgro Jul 11, 2024
578e2ee
missing info from last merge added, figure links added
vgro Jul 11, 2024
0620ac8
Add sphinx.ext.viewcode
davidorme Jul 11, 2024
4c6ea86
Fixing moved soil theory links, adding stub model implementation files
davidorme Jul 11, 2024
44e7345
More implementation restructuring
davidorme Jul 11, 2024
ceb250f
shortened version without code
vgro Jul 11, 2024
e3a5499
Initial core components implementation draft
davidorme Jul 11, 2024
2452a4a
Yeah yeah. Sphinx 8.0 will break stuff. Now shut up
davidorme Jul 11, 2024
8f8f5af
soil temperature was missing from overview
vgro Jul 11, 2024
716b9ff
Move setup to init in Hydrology and fixes some tests
dalonsoa Jul 11, 2024
6a1e508
Update INITIALISATION_LOG with new entries
dalonsoa Jul 11, 2024
376b435
Add missing variables to the registry
dalonsoa Jul 11, 2024
2c5fee5
Fix toc
davidorme Jul 11, 2024
b41523d
Accidentally committed temp png files
davidorme Jul 11, 2024
9dc7896
Merge branch 'variables_1' of https://github.com/ImperialCollegeLondo…
davidorme Jul 11, 2024
6812907
Merge pull request #515 from ImperialCollegeLondon/506-implementation…
vgro Jul 11, 2024
e71f70c
Add aerodynamic_resistance_surface assignment
dalonsoa Jul 11, 2024
4bb08c6
Apply suggestions from code review
dalonsoa Jul 11, 2024
44de211
Merge branch 'variables_1' of https://github.com/ImperialCollegeLondo…
dalonsoa Jul 11, 2024
c038df4
Add soil_c_pool_necromass to the right place
dalonsoa Jul 11, 2024
d6b1e9b
Fix issue with symbol
dalonsoa Jul 11, 2024
6eb8c9b
Remove variables.rst and gitignore it
dalonsoa Jul 11, 2024
dd9e955
Merge branch 'develop' into variables_1
dalonsoa Jul 11, 2024
44ecfe9
Add soil_c_pool_necromass to expected logs
dalonsoa Jul 11, 2024
16c84d6
Replace 'mu' character with 'u' in 'umol'
dalonsoa Jul 11, 2024
fd0df0e
Updating to new toc structure
davidorme Jul 11, 2024
5afbe21
Removing surface_runoff from init data, fixing missing variables popu…
davidorme Jul 11, 2024
e8317d0
Fixing up axis checking - added placeholder time axis validator, comm…
davidorme Jul 11, 2024
98335f9
Updating axis testing for new time axis name
davidorme Jul 11, 2024
3ababa0
Apply suggestions from code review
davidorme Jul 12, 2024
a288488
Updated layer diagram
davidorme Jul 12, 2024
ef0bcca
Removed unnecessary wrapper for environmental factors
jacobcook1995 Jul 12, 2024
4a134e9
Moved intimidating config file example into Using the VE, not the bro…
davidorme Jul 12, 2024
3930c61
Fixing broken link
davidorme Jul 12, 2024
a43e958
Merge branch 'develop' into 514-review-the-implementation-section-of-…
davidorme Jul 12, 2024
65fdcc2
Rename variables-related... variables?
dalonsoa Jul 12, 2024
fb253a5
Merge pull request #388 from ImperialCollegeLondon/variables_1
davidorme Jul 12, 2024
9693122
Merge branch 'develop' into 514-review-the-implementation-section-of-…
davidorme Jul 12, 2024
dce9361
first draft hydrology implementation
vgro Jul 12, 2024
bf0fd13
Merge branch 'develop' into feature/litter_N
jacobcook1995 Jul 12, 2024
bdb7626
within grid cell hydrology first draft complete
vgro Jul 12, 2024
b8f44a4
Added new variables into the now merged data variable system
jacobcook1995 Jul 12, 2024
62ebb70
Merge pull request #509 from ImperialCollegeLondon/feature/litter_N
jacobcook1995 Jul 12, 2024
2d0cbec
Updating docs and adding model variable table generator
davidorme Jul 12, 2024
78d5d03
Merge branch 'develop' into 490-hydrology-docs-on-implementation
vgro Jul 15, 2024
928dc14
hydrology var list and horizontal draft
vgro Jul 15, 2024
785b821
var generator added
vgro Jul 15, 2024
4cd06fc
Added deadwood C:N ratio to list of variables
jacobcook1995 Jul 15, 2024
0f74a77
Plant model implementation overview
davidorme Jul 15, 2024
b5312fd
Split litter_pools submodule into seperate carbon and chemistry submo…
jacobcook1995 Jul 15, 2024
f33a18b
Alternative variables table implementation
davidorme Jul 15, 2024
ae99383
Merge branch 'develop' into 514-review-the-implementation-section-of-…
davidorme Jul 15, 2024
d22f355
commit for problem solving
vgro Jul 15, 2024
224ee35
Switched to calculated decay rates fixture, so that test results are …
jacobcook1995 Jul 15, 2024
b35ca4a
maps added
vgro Jul 15, 2024
75c4f3e
Merge pull request #516 from ImperialCollegeLondon/514-review-the-imp…
davidorme Jul 15, 2024
e9c13b7
fix neighbour display
vgro Jul 15, 2024
3a4e567
Merge branch 'develop' into 490-hydrology-docs-on-implementation
vgro Jul 15, 2024
840c492
Added new variables to track nitrogen content of each of the five lit…
jacobcook1995 Jul 15, 2024
ddb102e
adopted to plants model style
vgro Jul 15, 2024
6a477c4
variables updated in abiotic simple
vgro Jul 15, 2024
6309e66
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 15, 2024
bfe28c2
Merge pull request #520 from ImperialCollegeLondon/pre-commit-ci-upda…
davidorme Jul 16, 2024
30872cd
abiotic simple docstrings updated
vgro Jul 16, 2024
ef724fb
updated hydrology docs and removed unnecessary initialisation of micr…
vgro Jul 16, 2024
9010bd2
exp expressions updated
vgro Jul 16, 2024
d7a167b
reversed microclimate setup until variable system is up and running
vgro Jul 16, 2024
f184615
pre-commit change
vgro Jul 16, 2024
3c49c6c
Merge branch 'develop' into 519-review-abiotic-simple-and-hydrology-d…
vgro Jul 16, 2024
fb2fea3
Merge pull request #521 from ImperialCollegeLondon/519-review-abiotic…
vgro Jul 16, 2024
6cfa226
Merge branch 'develop' into 490-hydrology-docs-on-implementation
vgro Jul 16, 2024
0e101da
equations updated, drainage map simplified, figure replaced by svg
vgro Jul 16, 2024
6eb3ecd
read from nc fixed
vgro Jul 16, 2024
864a5c4
Merge pull request #518 from ImperialCollegeLondon/490-hydrology-docs…
vgro Jul 16, 2024
b872fe7
abiotic model preliminary implementation
vgro Jul 17, 2024
29d360f
Move setup to init in AbioticSimple and fixes some tests
dalonsoa Jul 17, 2024
05a6952
Move setup to init in Abiotic and fixes some tests
dalonsoa Jul 17, 2024
3b4d27d
Remove direct use of setup in tests
dalonsoa Jul 17, 2024
390ddae
Update docs/source/virtual_ecosystem/implementation/abiotic_implement…
vgro Jul 18, 2024
a51551a
Merge pull request #523 from ImperialCollegeLondon/489-abiotic-docs-o…
vgro Jul 18, 2024
7cc4fcc
climate recipes deleted and note on pre-processing in implementation
vgro Jul 18, 2024
c0a48e0
notes moved to data
vgro Jul 19, 2024
3fcb8a7
Merge pull request #526 from ImperialCollegeLondon/525-climate-data-r…
vgro Jul 19, 2024
c19c14e
Added function to calculate total N mineralisation from litter
jacobcook1995 Jul 22, 2024
c75dfb4
Added nitrogen mineralisation calculation into main litter model loop
jacobcook1995 Jul 23, 2024
0d75b31
Made litter chemistry update function generic
jacobcook1995 Jul 23, 2024
274cc7d
Added function to calculate the nitrogen ratios of the input flows to…
jacobcook1995 Jul 25, 2024
d25afb8
Added a function to calculate changes in litter pool c:n ratios
jacobcook1995 Jul 25, 2024
a585f91
Added calculation of litter pool C:N ratio changes into main litter m…
jacobcook1995 Jul 25, 2024
696d643
Added basic litter chemistry class
jacobcook1995 Jul 26, 2024
71d7660
Combined litter chemistry updates into a single function
jacobcook1995 Jul 26, 2024
6d84d4a
Added N mineralisation rate calculation to the LitterChemistry object
jacobcook1995 Jul 26, 2024
7369f9f
Made functions to calculate input lignin and nitrogen methods of Litt…
jacobcook1995 Jul 26, 2024
6437e9a
Moved calculation of input lignin and nitrogen concentrations to with…
jacobcook1995 Jul 29, 2024
9e40454
Fixed docstring weirdness
jacobcook1995 Jul 29, 2024
dde0008
Further carbon:nitrogen docstring fixes
jacobcook1995 Jul 29, 2024
f04de92
Even more carbon:nitrogen ratio docstring fixes
jacobcook1995 Jul 29, 2024
c2073d0
Merge branch 'develop' into 511-tracking-litter-nitrogen
jacobcook1995 Jul 29, 2024
63c0a98
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 29, 2024
dc1b4b1
Fixed docstring typo
jacobcook1995 Jul 30, 2024
a6b9925
Changed calculate_new_pool_chemistries to make dictonaries using a co…
jacobcook1995 Jul 30, 2024
912cece
Moved finding of correct temperatures into the decay rate calculation…
jacobcook1995 Jul 30, 2024
78884a6
Added function to average variables across microbially active layers
jacobcook1995 Jul 30, 2024
cf018a3
Added calculation of average environmental conditions into litter mod…
jacobcook1995 Jul 30, 2024
6402a5c
Added seperate function to average environmental variables and calcul…
jacobcook1995 Jul 31, 2024
a615392
Added interpolation based on @vgro's suggestion
jacobcook1995 Aug 1, 2024
507a517
Facing my fears (of list comprehensions)
jacobcook1995 Aug 1, 2024
7a17d21
Added a TODO for switching to using thin topsoil layer once it's defined
jacobcook1995 Aug 2, 2024
72ef3de
Merge pull request #534 from ImperialCollegeLondon/532-litter-model-s…
jacobcook1995 Aug 2, 2024
87821ac
Merge branch 'develop' into 511-tracking-litter-nitrogen
jacobcook1995 Aug 2, 2024
c9a21bc
Updated tests so they work with the changes introduced by the merge
jacobcook1995 Aug 2, 2024
b3edec7
Typing updates for pre-commit
davidorme Aug 2, 2024
c9b2931
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 5, 2024
75ae478
Merge branch 'pre-commit-ci-update-config' of https://github.com/Impe…
davidorme Aug 6, 2024
0ed39b1
Thought circular import was fixed. Was wrong
davidorme Aug 6, 2024
0cf635a
Merge pull request #527 from ImperialCollegeLondon/pre-commit-ci-upda…
davidorme Aug 6, 2024
7ce708f
Merge branch 'develop' into 511-tracking-litter-nitrogen
jacobcook1995 Aug 12, 2024
b32288c
Merge pull request #531 from ImperialCollegeLondon/511-tracking-litte…
jacobcook1995 Aug 16, 2024
8b62a37
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 26, 2024
7ce59b2
Merge pull request #537 from ImperialCollegeLondon/pre-commit-ci-upda…
davidorme Aug 30, 2024
997f395
Merge branch 'develop' into remove_setup
davidorme Aug 30, 2024
f3c6f53
Merge pull request #524 from ImperialCollegeLondon/remove_setup
davidorme Aug 30, 2024
c752682
Bumped prerelease version to 0.1.1a5
jacobcook1995 Sep 5, 2024
a6ea336
Merge branch 'main' into release/0.1.1a5
jacobcook1995 Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ Fixes # (issue)

- [ ] Code is commented, particularly in hard-to-understand areas
- [ ] Tests added that prove fix is effective or that feature works
- [ ] Relevant documentation reviewed and updated
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Test and build

on: [push, pull_request, release]
# When does this run - new, reopened or updated PRs, pushes to main or develop and when
# the workflow is called by another workflow, such as the publishing actions.
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main, develop]
workflow_call:

jobs:
qa:
Expand All @@ -19,7 +26,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ "3.10", "3.11" ]
python-version: [ "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -63,9 +70,6 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Set ipython kernel
run: poetry run python -m ipykernel install --user --name=vr_python3

- name: Build docs using sphinx
run: |
cd docs
Expand Down
103 changes: 103 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: Publishing

on:
release:
types: [published]

jobs:
# First, run the standard test suite - for this to work correctly, the workflow needs
# to inherit the organisation secrets used to authenticate to CodeCov.
# https://github.com/actions/runner/issues/1413
test:
uses: ./.github/workflows/ci.yml
secrets: inherit

# Next, build the package wheel and source releases and add them to the release assets
build-wheel:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Build the package - this could use `poetry build` directly but pyproject.toml
# already has the build-system configured to use poetry so `pip` should pick that
# up automatically.
- name: Build sdist
run: |
python -m pip install --upgrade build
python -m build

# Upload the build outputs as job artifacts - these will be two files with x.y.z
# version numbers:
# - virtual_ecosystem-x.y.z-py3-none-any.whl
# - virtual_ecosystem-x.y.z.tar.gz
- uses: actions/upload-artifact@v4
with:
path: dist/virtual_ecosystem*

# Add the built files to the release assets, alongside the repo archives
# automatically added by GitHub. These files should then match exactly to the
# published files on PyPI.
- uses: softprops/action-gh-release@v1
with:
files: dist/virtual_ecosystem*

# Now attempt to publish the package to the TestPyPI site, where the virtual_ecosystem
# project has been configured to allow trusted publishing from this repo and workflow.
#
# The skip-existing option allows the publication step to pass even when the release
# files already exists on PyPI. That suggests something has gone wrong with the
# release or the build file staging and the release should not be allowed to continue
# to publish on PyPI.

publish-TestPyPI:
needs: build-wheel
name: Publish virtual_ecosystem to TestPyPI
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
# Download the built package files from the job artifacts
- name: Download sdist artifact
uses: actions/download-artifact@v4
with:
name: artifact
path: dist

# Information step to show the contents of the job artifacts
- name: Display structure of downloaded files
run: ls -R dist

# Use trusted publishing to release the files downloaded into dist to TestPyPI
- 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

# The final job in the workflow is to publish to the real PyPI as long as the release
# name does not contain the tag 'test-pypi-only'
publish-PyPI:
if: ${{ ! contains(github.event.release.name, 'test-pypi-only')}}
needs: publish-TestPyPI
name: Publish virtual_ecosystem to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
# Download the built package files from the job artifacts
- name: Download sdist artifact
uses: actions/download-artifact@v4
with:
name: artifact
path: dist

# Information step to show the contents of the job artifacts
- name: Display structure of downloaded files
run: ls -R dist

# Use trusted publishing to release the files downloaded into dist to PyPI
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ venv.bak/

# mkdocs documentation
/site
docs/source/variables.rst
docs/jupyter_execute/*.png

# mypy
.mypy_cache/
Expand All @@ -134,6 +136,5 @@ dmypy.json
# Mac DS Store files
.DS_Store

# PYPI credentials
# Local PyPI authentication tokens
.pypirc

32 changes: 10 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/PyCQA/isort
rev: "5.13.2"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
hooks:
- id: isort
additional_dependencies: [toml]
- repo: https://github.com/psf/black
rev: "24.2.0"
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings]
- id: ruff # Run the linter.
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format # Run the formatter.
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.8.0"
rev: "v1.11.2"
hooks:
- id: mypy
additional_dependencies: [types-jsonschema, xarray]
additional_dependencies: [types-jsonschema, xarray, types-tabulate, numpy]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
rev: v0.41.0
hooks:
- id: markdownlint
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py310-plus]

1 change: 0 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ build:
# VIRTUAL_ENV needs to be set manually for now.
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry run python -m ipykernel install --user --name=vr_python3

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"recommendations": [
"Gruntfuggly.todo-tree",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter",
"ms-toolsai.jupyter-keymap",
"ms-toolsai.jupyter-renderers",
"ms-vsliveshare.vsliveshare",
"stkb.rewrap"
"stkb.rewrap",
"charliermarsh.ruff"
]
}
7 changes: 1 addition & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "none",
"editor.formatOnSave": true,
"editor.rulers": [
88
Expand All @@ -18,8 +14,7 @@
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"cSpell.words": [],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
"editor.defaultFormatter": "charliermarsh.ruff"
},
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/images/abiotic_sketch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading