py-ewr 2.2.6__tar.gz → 2.2.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. {py_ewr-2.2.6 → py_ewr-2.2.9}/PKG-INFO +3 -3
  2. {py_ewr-2.2.6 → py_ewr-2.2.9}/README.md +2 -2
  3. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/evaluate_EWRs.py +4 -3
  4. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr.egg-info/PKG-INFO +3 -3
  5. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr.egg-info/requires.txt +1 -1
  6. {py_ewr-2.2.6 → py_ewr-2.2.9}/setup.py +2 -2
  7. {py_ewr-2.2.6 → py_ewr-2.2.9}/LICENSE +0 -0
  8. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/__init__.py +0 -0
  9. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/data_inputs.py +0 -0
  10. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/io.py +0 -0
  11. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/model_metadata/SiteID_MDBA.csv +0 -0
  12. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/model_metadata/SiteID_NSW.csv +0 -0
  13. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/model_metadata/iqqm_stations.csv +0 -0
  14. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/observed_handling.py +0 -0
  15. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/parameter_metadata/ewr2obj.csv +0 -0
  16. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/parameter_metadata/ewr_calc_config.json +0 -0
  17. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/parameter_metadata/obj2target.csv +0 -0
  18. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/parameter_metadata/obj2yrtarget.csv +0 -0
  19. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/parameter_metadata/parameter_sheet.csv +0 -0
  20. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/scenario_handling.py +0 -0
  21. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr/summarise_results.py +0 -0
  22. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr.egg-info/SOURCES.txt +0 -0
  23. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr.egg-info/dependency_links.txt +0 -0
  24. {py_ewr-2.2.6 → py_ewr-2.2.9}/py_ewr.egg-info/top_level.txt +0 -0
  25. {py_ewr-2.2.6 → py_ewr-2.2.9}/pyproject.toml +0 -0
  26. {py_ewr-2.2.6 → py_ewr-2.2.9}/setup.cfg +0 -0
  27. {py_ewr-2.2.6 → py_ewr-2.2.9}/tests/test_data_inputs.py +0 -0
  28. {py_ewr-2.2.6 → py_ewr-2.2.9}/tests/test_evaluate_ewr_rest.py +0 -0
  29. {py_ewr-2.2.6 → py_ewr-2.2.9}/tests/test_evaluate_ewrs.py +0 -0
  30. {py_ewr-2.2.6 → py_ewr-2.2.9}/tests/test_observed_handling.py +0 -0
  31. {py_ewr-2.2.6 → py_ewr-2.2.9}/tests/test_scenario_handling.py +0 -0
  32. {py_ewr-2.2.6 → py_ewr-2.2.9}/tests/test_summarise_results.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py_ewr
3
- Version: 2.2.6
3
+ Version: 2.2.9
4
4
  Summary: Environmental Water Requirement calculator
5
5
  Home-page: https://github.com/MDBAuth/EWR_tool
6
6
  Author: Martin Job
@@ -27,14 +27,14 @@ Requires-Dist: cachetools>5
27
27
  Requires-Dist: xarray
28
28
  Requires-Dist: h5py
29
29
  Requires-Dist: netCDF4
30
- Requires-Dist: numpy
30
+ Requires-Dist: numpy<2
31
31
 
32
32
  [![CI](https://github.com/MDBAuth/EWR_tool/actions/workflows/test-release.yml/badge.svg)]()
33
33
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/py-ewr)](https://pypi.org/project/py-ewr/)
34
34
  [![PyPI](https://img.shields.io/pypi/v/py-ewr)](https://pypi.org/project/py-ewr/)
35
35
  [![DOI](https://zenodo.org/badge/342122359.svg)](https://zenodo.org/badge/latestdoi/342122359)
36
36
 
37
- ### **EWR tool version 2.2.6 README**
37
+ ### **EWR tool version 2.2.9 README**
38
38
 
39
39
  ### **Notes on recent version updates**
40
40
  - Including draft objective mapping files in the package (see below sub heading **Objective mapping** for more information). Objective mapping has been therefore pulled out of the parameter sheet
@@ -3,7 +3,7 @@
3
3
  [![PyPI](https://img.shields.io/pypi/v/py-ewr)](https://pypi.org/project/py-ewr/)
4
4
  [![DOI](https://zenodo.org/badge/342122359.svg)](https://zenodo.org/badge/latestdoi/342122359)
5
5
 
6
- ### **EWR tool version 2.2.6 README**
6
+ ### **EWR tool version 2.2.9 README**
7
7
 
8
8
  ### **Notes on recent version updates**
9
9
  - Including draft objective mapping files in the package (see below sub heading **Objective mapping** for more information). Objective mapping has been therefore pulled out of the parameter sheet
@@ -226,4 +226,4 @@ Consult the user manual for instructions on how to run the tool. Please email th
226
226
  Objective mapping csv files are now included in the EWR tool package. Currently this objective mapping is in an early draft format. The objective mapping will be finalised after consultation with relevant state representatives. The files are intended to be used together to link EWRs to the detailed objectives, theme level targets and specific goals. The three sheets are located in the py_ewr/parameter_metadata folder:
227
227
  - ewr2obj.csv: For each planning unit, gauge, ewr combination there are either one or many env_obj codes. These env_obj codes come under one of five different theme level targets (Native Fish, Native vegetation, Waterbirds, Other species or Ecosystem functions)
228
228
  - obj2target.csv: env_obj's are unique to their planning unit in the LTWP (noting there are often a lot of similarities between env_obj's in the same states). The plain english wording of the env objectives is also contained in this csv. The LTWP, planning unit and env_obj rows are repeated for each specific goal related to that LTWP, planning unit and env_obj.
229
- - obj2yrtarget.csv: The environmental objectives are related to 5, 10 and 20 year targets
229
+ - obj2yrtarget.csv: The environmental objectives are related to 5, 10 and 20 year targets
@@ -448,8 +448,9 @@ def get_index_date(date_index:Any)-> datetime.date:
448
448
  if type(date_index) == pd._libs.tslibs.period.Period:
449
449
  date_index_str = date_index.strftime('%Y-%m-%d')
450
450
  # For dates between the years 100 and 999 we need to add a 0 onto the date string so strptime doesnt break
451
- if ((int(date_index_str.split('-')[0]) >= 100) and (int(date_index_str.split('-')[0]) < 1000)):
452
- date_index_str = '0' + date_index_str
451
+ if len(date_index_str.split('-')[0]) < 4:
452
+ if ((int(date_index_str.split('-')[0]) >= 100) and (int(date_index_str.split('-')[0]) < 1000)):
453
+ date_index_str = '0' + date_index_str
453
454
  n = datetime.datetime.strptime(date_index_str, '%Y-%m-%d').date()
454
455
  return n
455
456
  if type(date_index) == str:
@@ -5171,4 +5172,4 @@ def calc_sorter(df_F:pd.DataFrame, df_L:pd.DataFrame, gauge:str, EWR_table:pd.Da
5171
5172
  location_results[PU_name] = PU_df
5172
5173
  location_events[PU_name] = PU_events
5173
5174
 
5174
- return location_results, location_events
5175
+ return location_results, location_events
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py_ewr
3
- Version: 2.2.6
3
+ Version: 2.2.9
4
4
  Summary: Environmental Water Requirement calculator
5
5
  Home-page: https://github.com/MDBAuth/EWR_tool
6
6
  Author: Martin Job
@@ -27,14 +27,14 @@ Requires-Dist: cachetools>5
27
27
  Requires-Dist: xarray
28
28
  Requires-Dist: h5py
29
29
  Requires-Dist: netCDF4
30
- Requires-Dist: numpy
30
+ Requires-Dist: numpy<2
31
31
 
32
32
  [![CI](https://github.com/MDBAuth/EWR_tool/actions/workflows/test-release.yml/badge.svg)]()
33
33
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/py-ewr)](https://pypi.org/project/py-ewr/)
34
34
  [![PyPI](https://img.shields.io/pypi/v/py-ewr)](https://pypi.org/project/py-ewr/)
35
35
  [![DOI](https://zenodo.org/badge/342122359.svg)](https://zenodo.org/badge/latestdoi/342122359)
36
36
 
37
- ### **EWR tool version 2.2.6 README**
37
+ ### **EWR tool version 2.2.9 README**
38
38
 
39
39
  ### **Notes on recent version updates**
40
40
  - Including draft objective mapping files in the package (see below sub heading **Objective mapping** for more information). Objective mapping has been therefore pulled out of the parameter sheet
@@ -5,4 +5,4 @@ cachetools>5
5
5
  xarray
6
6
  h5py
7
7
  netCDF4
8
- numpy
8
+ numpy<2
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
6
6
 
7
7
  setup(
8
8
  name="py_ewr",
9
- version="2.2.6",
9
+ version="2.2.9",
10
10
  author="Martin Job",
11
11
  author_email="Martin.Job@mdba.gov.au",
12
12
  description="Environmental Water Requirement calculator",
@@ -39,7 +39,7 @@ setup(
39
39
  "xarray",#==2023.09.0",
40
40
  "h5py",#==3.12.1",
41
41
  "netCDF4",#==1.6.4",
42
- "numpy"#<2"
42
+ "numpy<2"
43
43
  ],
44
44
  package_data={'': ["model_metadata/*.csv", "parameter_metadata/*.csv","parameter_metadata/*.json"]},
45
45
  )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes