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

Adding two leaf irradience model #245

Draft
wants to merge 54 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
cc90b94
Created two leaf constants dataclass
j-emberton Jun 4, 2024
20b58b9
Auto-generated profiling results [skip actions]
davidorme Jun 5, 2024
0ec30c2
Auto-generated profiling results [skip actions]
vgro Jun 5, 2024
3da610e
more work on irradience class
j-emberton Jun 5, 2024
f7022a0
Minor fix
j-emberton Jun 7, 2024
b67ef47
Added pysolar calc for beta
j-emberton Jun 7, 2024
707b5f7
changes variables to lower case
j-emberton Jun 7, 2024
f6e94ba
Fixed capital PA0
j-emberton Jun 7, 2024
219e0c3
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] May 27, 2024
ec6725d
Auto-generated profiling results [skip actions]
davidorme Jun 5, 2024
e83a94e
Unsticking stuck workflow
davidorme Jun 6, 2024
06d69d3
Rebuild of QA chain using ruff
davidorme Apr 22, 2024
1a569a7
Removing QA on pytest
davidorme Jun 6, 2024
0fc6984
Missing dev dependencies for local use of jupyterlab with Myst notebooks
davidorme Jun 6, 2024
5c77794
Forgot jupytext in dev dependencies
davidorme Jun 6, 2024
c384586
Extending RUF testing and add ruff auto-fix to pre-commit
davidorme Jun 6, 2024
4cba1f2
Resolving newly revealed issues from using RUF settings
davidorme Jun 6, 2024
5905b40
Remove kernelspec setting step in RTD and GH actions
davidorme Jun 5, 2024
9cf9b0a
Switch Myst notebook kernel specs to use python3
davidorme Jun 5, 2024
bbd93ca
Tidying notebook code cells automatically
davidorme Jun 5, 2024
6b9e8f3
Auto-generated profiling results [skip actions]
davidorme Jun 5, 2024
c928f56
Auto-generated profiling results [skip actions]
vgro Jun 5, 2024
4911eec
Created two leaf constants dataclass
j-emberton Jun 4, 2024
d9a1434
Auto-generated profiling results [skip actions]
davidorme Jun 5, 2024
1844bac
Auto-generated profiling results [skip actions]
vgro Jun 5, 2024
337e3fd
more work on irradience class
j-emberton Jun 5, 2024
fd225bf
Minor fix
j-emberton Jun 7, 2024
16e631f
Added pysolar calc for beta
j-emberton Jun 7, 2024
bad57d5
changes variables to lower case
j-emberton Jun 7, 2024
40b18c4
Fixed capital PA0
j-emberton Jun 7, 2024
4747cfb
Auto-generated profiling results [skip actions]
davidorme Jun 5, 2024
5a0db3c
Unsticking stuck workflow
davidorme Jun 6, 2024
100f1a4
Rebuild of QA chain using ruff
davidorme Apr 22, 2024
e57bc11
Removing QA on pytest
davidorme Jun 6, 2024
8b04a38
Missing dev dependencies for local use of jupyterlab with Myst notebooks
davidorme Jun 6, 2024
b6b83a1
Auto-generated profiling results [skip actions]
davidorme Jun 5, 2024
4c96406
Auto-generated profiling results [skip actions]
vgro Jun 5, 2024
2e24adc
Merge branch 'Two_leaf_irradience_model' of github.com:ImperialColleg…
j-emberton Jun 7, 2024
c6f2099
Offerings to the angry god Ruff
j-emberton Jun 7, 2024
f0b09f9
Offerings to the angry god Ruff
j-emberton Jun 7, 2024
71f478f
Removed new Beta calc and pysolar import
j-emberton Jun 7, 2024
dc7cf66
merged in develop
j-emberton Jul 17, 2024
16c2251
starting documentation
j-emberton Jul 17, 2024
4d627f8
Doesn't pass pre-commit but have questions
j-emberton Jul 24, 2024
8b6a5dd
First draft of two leaf classes complete
j-emberton Jul 29, 2024
b683b51
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 29, 2024
3fe4bdc
defined unit tests for the irradience classes - all working
j-emberton Aug 19, 2024
87b2f49
added docstring
j-emberton Aug 19, 2024
b5c20e7
added class unit tests - all working
j-emberton Aug 19, 2024
0a8ed70
first stab at defining regression tests
j-emberton Aug 19, 2024
0f55afe
writing tests
j-emberton Sep 17, 2024
9434fd2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 17, 2024
1874eeb
Merge branch 'develop' into Two_leaf_irradience_model
j-emberton Oct 22, 2024
92e6fb1
docstring updates
j-emberton Sep 25, 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
28 changes: 21 additions & 7 deletions profiling/benchmark-fails.csv
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
ncalls,tottime,tottime_percall,cumtime,cumtime_percall,timestamp,filename,lineno,function,process_id,label,ignore_result,ignore_justification,is_incoming,tottime_percall_target,cumtime_percall_target,tottime_target,cumtime_target,relative_tottime_percall,relative_cumtime_percall,relative_tottime,relative_cumtime
2,0.01,0.005,4.142,2.071,2024-05-07T16:26:25,pyrealm/pmodel/functions.py,310,calc_ns_star,pyrealm/pmodel/functions.py:calc_ns_star,7c3fe42,False,,False,0.005,2.071,0.01,4.142,1.0,1.0,1.0,1.0
2,0.13,0.065,0.13,0.065,2024-05-07T16:26:25,pyrealm/pmodel/functions.py,644,calc_co2_to_ca,pyrealm/pmodel/functions.py:calc_co2_to_ca,7c3fe42,False,,False,0.065,0.065,0.13,0.13,1.0,1.0,1.0,1.0
4,0.101,0.025,0.647,0.162,2024-05-07T16:26:25,pyrealm/core/water.py,67,calc_density_h2o_fisher,pyrealm/core/water.py:calc_density_h2o_fisher,7c3fe42,False,,False,0.025,0.162,0.101,0.647,1.0,1.0,1.0,1.0
5,0.005,0.001,1.721,0.344,2024-05-07T16:26:25,pyrealm/core/water.py,126,calc_density_h2o,pyrealm/core/water.py:calc_density_h2o,7c3fe42,False,,False,0.001,0.344,0.005,1.721,1.0,1.0,1.0,1.0
4,3.465,0.866,4.132,1.033,2024-05-07T16:26:25,pyrealm/core/water.py,181,calc_viscosity_h2o,pyrealm/core/water.py:calc_viscosity_h2o,7c3fe42,False,,False,0.866,1.033,3.465,4.132,1.0,1.0,1.0,1.0
2,0.179,0.089,0.253,0.126,2024-05-07T16:26:25,pyrealm/pmodel/isotopes.py,42,__init__,pyrealm/pmodel/isotopes.py:CalcCarbonIsotopes.__init__,7c3fe42,False,,False,0.089,0.126,0.179,0.253,1.0,1.0,1.0,1.0
1,0.016,0.016,0.016,0.016,2024-05-07T16:26:25,pyrealm/pmodel/isotopes.py,102,calc_c4_discrimination,pyrealm/pmodel/isotopes.py:CalcCarbonIsotopes.calc_c4_discrimination,7c3fe42,False,,False,0.016,0.016,0.016,0.016,1.0,1.0,1.0,1.0
1,0.058,0.058,0.058,0.058,2024-05-07T16:26:25,pyrealm/pmodel/isotopes.py,187,calc_c3_discrimination,pyrealm/pmodel/isotopes.py:CalcCarbonIsotopes.calc_c3_discrimination,7c3fe42,False,,False,0.058,0.058,0.058,0.058,1.0,1.0,1.0,1.0
3,0.712,0.237,2.207,0.736,2024-05-07T16:26:25,pyrealm/pmodel/pmodel.py,358,estimate_productivity,pyrealm/pmodel/pmodel.py:PModel.estimate_productivity,7c3fe42,False,,False,0.237,0.736,0.712,2.207,1.0,1.0,1.0,1.0
2,0.004,0.002,5.456,2.728,2024-05-07T16:26:25,pyrealm/pmodel/pmodel_environment.py,76,__init__,pyrealm/pmodel/pmodel_environment.py:PModelEnvironment.__init__,7c3fe42,False,,False,0.002,2.728,0.004,5.456,1.0,1.0,1.0,1.0
1,0.188,0.188,0.216,0.216,2024-05-07T16:26:25,pyrealm/pmodel/optimal_chi.py,385,estimate_chi,pyrealm/pmodel/optimal_chi.py:OptimalChiC4.estimate_chi,7c3fe42,False,,False,0.188,0.216,0.188,0.216,1.0,1.0,1.0,1.0
17,1.463,0.086,1.574,0.093,2024-05-07T16:26:25,pyrealm/core/utilities.py,339,evaluate_horner_polynomial,pyrealm/core/utilities.py:evaluate_horner_polynomial,7c3fe42,False,,False,0.086,0.093,1.463,1.574,1.0,1.0,1.0,1.0
2,0.009,0.005,4.365,2.183,2024-05-24T10:56:24,pyrealm/pmodel/functions.py,310,calc_ns_star,pyrealm/pmodel/functions.py:calc_ns_star,b1ad032,False,,True,0.005,2.071,0.01,4.142,1.0,1.054080154514727,0.8999999999999999,1.0538387252535006
2,0.138,0.069,0.138,0.069,2024-05-24T10:56:24,pyrealm/pmodel/functions.py,644,calc_co2_to_ca,pyrealm/pmodel/functions.py:calc_co2_to_ca,b1ad032,False,,True,0.065,0.065,0.13,0.13,1.0615384615384615,1.0615384615384615,1.0615384615384615,1.0615384615384615
4,0.094,0.023,0.932,0.233,2024-05-24T10:56:24,pyrealm/core/water.py,67,calc_density_h2o_fisher,pyrealm/core/water.py:calc_density_h2o_fisher,b1ad032,False,,True,0.025,0.162,0.101,0.647,0.9199999999999999,1.4382716049382716,0.9306930693069306,1.4404945904173108
5,0.005,0.001,2.014,0.403,2024-05-24T10:56:24,pyrealm/core/water.py,126,calc_density_h2o,pyrealm/core/water.py:calc_density_h2o,b1ad032,False,,True,0.001,0.344,0.005,1.721,1.0,1.1715116279069768,1.0,1.1702498547356186
4,3.387,0.847,4.356,1.089,2024-05-24T10:56:24,pyrealm/core/water.py,181,calc_viscosity_h2o,pyrealm/core/water.py:calc_viscosity_h2o,b1ad032,False,,True,0.866,1.033,3.465,4.132,0.9780600461893765,1.054211035818006,0.9774891774891775,1.054211035818006
17,1.755,0.103,1.865,0.11,2024-05-24T10:56:24,pyrealm/core/utilities.py,339,evaluate_horner_polynomial,pyrealm/core/utilities.py:evaluate_horner_polynomial,b1ad032,False,,True,0.086,0.093,1.463,1.574,1.1976744186046513,1.1827956989247312,1.19958988380041,1.1848792884371029
463,0.159,0.0,3.362,0.002,2024-05-07T16:26:25,pyrealm/splash/splash.py,224,estimate_daily_water_balance,pyrealm/splash/splash.py:SplashModel.estimate_daily_water_balance,7c3fe42,False,,False,0.0,0.002,0.159,3.362,,1.0,1.0,1.0
1,0.027,0.027,1.755,1.755,2024-05-07T16:26:25,pyrealm/splash/splash.py,287,calculate_soil_moisture,pyrealm/splash/splash.py:SplashModel.calculate_soil_moisture,7c3fe42,False,,False,0.027,1.755,0.027,1.755,1.0,1.0,1.0,1.0
2,0.009,0.005,4.53,2.265,2024-06-05T10:33:53,pyrealm/pmodel/functions.py,310,calc_ns_star,pyrealm/pmodel/functions.py:calc_ns_star,1dff438,False,,True,0.005,2.071,0.01,4.142,1.0,1.0936745533558667,0.8999999999999999,1.0936745533558667
4,0.094,0.024,1.032,0.258,2024-06-05T10:33:53,pyrealm/core/water.py,67,calc_density_h2o_fisher,pyrealm/core/water.py:calc_density_h2o_fisher,1dff438,False,,True,0.025,0.162,0.101,0.647,0.96,1.5925925925925926,0.9306930693069306,1.5950540958268933
5,0.005,0.001,2.136,0.427,2024-06-05T10:33:53,pyrealm/core/water.py,126,calc_density_h2o,pyrealm/core/water.py:calc_density_h2o,1dff438,False,,True,0.001,0.344,0.005,1.721,1.0,1.2412790697674418,1.0,1.241138872748402
4,3.467,0.867,4.521,1.13,2024-06-05T10:33:53,pyrealm/core/water.py,181,calc_viscosity_h2o,pyrealm/core/water.py:calc_viscosity_h2o,1dff438,False,,True,0.866,1.033,3.465,4.132,1.0011547344110854,1.0939012584704744,1.0005772005772007,1.0941432720232334
2,0.187,0.094,0.265,0.133,2024-06-05T10:33:53,pyrealm/pmodel/isotopes.py,42,__init__,pyrealm/pmodel/isotopes.py:CalcCarbonIsotopes.__init__,1dff438,False,,True,0.089,0.126,0.179,0.253,1.056179775280899,1.0555555555555556,1.0446927374301676,1.0474308300395256
1,0.017,0.017,0.017,0.017,2024-06-05T10:33:53,pyrealm/pmodel/isotopes.py,102,calc_c4_discrimination,pyrealm/pmodel/isotopes.py:CalcCarbonIsotopes.calc_c4_discrimination,1dff438,False,,True,0.016,0.016,0.016,0.016,1.0625,1.0625,1.0625,1.0625
1,0.061,0.061,0.061,0.061,2024-06-05T10:33:53,pyrealm/pmodel/isotopes.py,187,calc_c3_discrimination,pyrealm/pmodel/isotopes.py:CalcCarbonIsotopes.calc_c3_discrimination,1dff438,False,,True,0.058,0.058,0.058,0.058,1.0517241379310345,1.0517241379310345,1.0517241379310345,1.0517241379310345
3,0.746,0.249,2.207,0.736,2024-06-05T10:33:53,pyrealm/pmodel/pmodel.py,358,estimate_productivity,pyrealm/pmodel/pmodel.py:PModel.estimate_productivity,1dff438,False,,True,0.237,0.736,0.712,2.207,1.0506329113924051,1.0,1.047752808988764,1.0
2,0.004,0.002,5.76,2.88,2024-06-05T10:33:53,pyrealm/pmodel/pmodel_environment.py,76,__init__,pyrealm/pmodel/pmodel_environment.py:PModelEnvironment.__init__,1dff438,False,,True,0.002,2.728,0.004,5.456,1.0,1.0557184750733137,1.0,1.0557184750733137
1,0.199,0.199,0.228,0.228,2024-06-05T10:33:53,pyrealm/pmodel/optimal_chi.py,385,estimate_chi,pyrealm/pmodel/optimal_chi.py:OptimalChiC4.estimate_chi,1dff438,False,,True,0.188,0.216,0.188,0.216,1.0585106382978724,1.0555555555555556,1.0585106382978724,1.0555555555555556
17,1.884,0.111,2.0,0.118,2024-06-05T10:33:53,pyrealm/core/utilities.py,339,evaluate_horner_polynomial,pyrealm/core/utilities.py:evaluate_horner_polynomial,1dff438,False,,True,0.086,0.093,1.463,1.574,1.2906976744186047,1.2688172043010753,1.287764866712235,1.2706480304955527
463,0.171,0.0,3.409,0.002,2024-06-05T10:33:53,pyrealm/splash/splash.py,224,estimate_daily_water_balance,pyrealm/splash/splash.py:SplashModel.estimate_daily_water_balance,1dff438,False,,True,0.0,0.002,0.159,3.362,,1.0,1.0754716981132075,1.0139797739440808
1,0.029,0.029,1.786,1.786,2024-06-05T10:33:53,pyrealm/splash/splash.py,287,calculate_soil_moisture,pyrealm/splash/splash.py:SplashModel.calculate_soil_moisture,1dff438,False,,True,0.027,1.755,0.027,1.755,1.0740740740740742,1.0176638176638177,1.0740740740740742,1.0176638176638177
Loading
Loading