py-ewr 2.2.7__py3-none-any.whl → 2.3.0__py3-none-any.whl
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.
- py_ewr/evaluate_EWRs.py +4 -3
- py_ewr/model_metadata/SiteID_MDBA.csv +6 -1
- py_ewr/parameter_metadata/ewr2obj.csv +39096 -40590
- py_ewr/parameter_metadata/obj2target.csv +7973 -8962
- {py_ewr-2.2.7.dist-info → py_ewr-2.3.0.dist-info}/METADATA +7 -7
- {py_ewr-2.2.7.dist-info → py_ewr-2.3.0.dist-info}/RECORD +9 -9
- {py_ewr-2.2.7.dist-info → py_ewr-2.3.0.dist-info}/WHEEL +1 -1
- {py_ewr-2.2.7.dist-info → py_ewr-2.3.0.dist-info}/LICENSE +0 -0
- {py_ewr-2.2.7.dist-info → py_ewr-2.3.0.dist-info}/top_level.txt +0 -0
py_ewr/evaluate_EWRs.py
CHANGED
|
@@ -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 (
|
|
452
|
-
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
|
|
@@ -2692,4 +2692,9 @@ Bills Pipe,Bills Pipe,North Redbank,Bills Pipe,2
|
|
|
2692
2692
|
Glen Dee,Glen Dee,"Western Lakes, Glenn Dee",Glen Dee,2
|
|
2693
2693
|
Pattos Pipe,Pattos Pipe,North Redbank,Pattos Pipe,2
|
|
2694
2694
|
Pump direct from river,Pump direct from river,"North Redbank, pumped direct from river",Pump direct from river,2
|
|
2695
|
-
Pumped from Yanga Lake,Pumped from Yanga Lake,Yanga (South Redbank),Pumped from Yanga Lake,2
|
|
2695
|
+
Pumped from Yanga Lake,Pumped from Yanga Lake,Yanga (South Redbank),Pumped from Yanga Lake,2
|
|
2696
|
+
410738,Murrumbidgee River at Mt. MacDonald,"ACT - Environment, Planning and Sustainable Development Directorate",410738,3
|
|
2697
|
+
410761,Murrumbidgee River below Lobbs Hole Creek,"ACT - Environment, Planning and Sustainable Development Directorate",410761,3
|
|
2698
|
+
410700,Cotter River at Kiosk,ACT - Icon Water Limited,410700,3
|
|
2699
|
+
410747,Cotter River below Bendora Dam,ACT - Icon Water Limited,410747,3
|
|
2700
|
+
410752,Cotter River below Corin Dam,ACT - Icon Water Limited,410752,3
|