Conversation
- Commit example files when we should not really
91d0e2d to
c8a0bb6
Compare
hhughes92
left a comment
There was a problem hiding this comment.
(I have not thoroughly reviewed the test files yet)
I have put the GUI feedback on the Projects.civet file.
Perhaps worth discussing the comments: it will certainly be that some of them are for modellers to resolve and some are better handled by devs.
Pipfile
Outdated
| [dev-packages] | ||
|
|
||
| [requires] | ||
| python_version = "3.13" |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
This is an artifact from an initial attempt to use pipenv. It is no longer needed. I'll remove it
docs/user-guide.md
Outdated
| @@ -75,7 +75,7 @@ Then to enable a smooth debugging experience: | |||
| 4- choose the appropriate Python interpreter in vscode (bottom left in the status bar) | |||
| You should choose something like ```Python 3.7.8 64-bit ('myenv':conda)``` | |||
There was a problem hiding this comment.
Need to make sure python versions are consistent, where stated.
There was a problem hiding this comment.
I've made corrections to this specific issue but I wonder if this README is still relevant. Should we just remove it?
There was a problem hiding this comment.
Yes, I think so. Any information that's still important can be moved into one of the remaining three READMEs, which should cover everything.
shamba/README.md: what is SHAMBA, links to model description, explains what's in the other READMEsshamba/shamba/README.md: explains how to set up the environment, run the command_line script, run the UI versionshamba/shamba/client/README.md: explains how to generate the static files for the UI
|
|
||
| #### Run the Server | ||
|
|
||
| From the `./server` directory, run the server in _development_ mode: `poetry run fastapi dev main.py` |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| @@ -0,0 +1,12 @@ | |||
| # Small-Holder Agriculture Mitigation Benefit Assessment (SHAMBA) project. version 2.0 | |||
There was a problem hiding this comment.
We should probably clean this up to reflect what has been done in this latest update.
There was a problem hiding this comment.
This PR's description could be a template but I'm not sure what exactly we want to include/exclude?
There was a problem hiding this comment.
We can do this at the end after modelling tasks are resolved, too.
| freq=int(csv_input_data["base_sf_int"]), | ||
| qty=float(csv_input_data["base_sf_qty"]), |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| freq=int(csv_input_data["proj_sf_int"]), | ||
| qty=float(csv_input_data["proj_sf_qty"]), |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| litterFreq=int(csv_input_data["base_lit_int"]), | ||
| litterQty=float(csv_input_data["base_lit_qty"]), |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| litterFreq=int(csv_input_data["proj_lit_int"]), | ||
| litterQty=float(csv_input_data["proj_lit_qty"]), | ||
| no_of_years=N_YEARS, |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| from model.common.calculate_emissions import get_int | ||
|
|
||
|
|
||
| def test_crop_model(): |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
hhughes92
left a comment
There was a problem hiding this comment.
Missed climate.py in previous review
| from model.common.data_sources.climate import get_climate_data | ||
|
|
||
|
|
||
| def validate_list_length(lst): |
There was a problem hiding this comment.
Suggest this should either be called validated_monthly_list_length and assume length should be 12 or have the intended length as a separate arg? could be used to make sure yearly lists are the length of NUM YEARS
| ) | ||
|
|
||
| # Account for scaling factor in CRU-TS dataset | ||
| climate_data *= 0.1 |
There was a problem hiding this comment.
[Modellers] Does this apply to every indicator? We are also not using CRU-TS from the new API
| return schema.load(params) # type: ignore | ||
|
|
||
|
|
||
| def from_csv( |
There was a problem hiding this comment.
This isn't called anywhere? Care needed on is_evaporation.
| climate_data *= 0.1 | ||
|
|
||
| # Get the number of days in every month | ||
| days_in_months = np.array([calendar.monthrange(2000, i)[1] for i in range(1, 13)]) |
There was a problem hiding this comment.
[Modellers] Is it correct to use a leap year here?
|
Update 15/08/25:
|
Consolidate some logic
|
@hhughes92 I've merged the other branch to this one. Hopefully there won't be any conflicts with you branch. I recommend you do |
In this upgrade of the SHAMBA model, the following changes were made:
poetrymarshmallow.stdout.N.B