Skip to content

Commit

Permalink
Removed print statements for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
SanchitMinocha committed Dec 8, 2024
1 parent 9fc2e23 commit 19c5321
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/pywris/surface_water/storage/reservoir.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,10 @@ def get_reservoirs(
reservoir_names_str = ",".join(["'" + reservoir + "'" for reservoir in selected_reservoirs])
reservoir_data = get_reservoir_data(reservoir_names_str, timestep, start_date, end_date)
reservoir_df = pd.json_normalize(reservoir_data)
print(reservoir_df)
# Create dictionary of reservoir objects
reservoirs = {}
print(selected_reservoirs)
for res_name in selected_reservoirs:
print(res_name)
sel_res_df = reservoir_df[reservoir_df['Reservoir Name']==res_name]
print(sel_res_df['Parent'])
sel_res_state = sel_res_df['Parent'].values()[0]

sel_res = Reservoir(res_name, sel_res_state)
Expand Down Expand Up @@ -135,7 +131,6 @@ def get_reservoir_data_valid_date_range():
url = requests_config["reservoir"]["get_reservoir_data_valid_date_range"]["url"]
payload = requests_config["reservoir"]["get_reservoir_data_valid_date_range"]["payload"]
method = requests_config["reservoir"]["get_reservoir_data_valid_date_range"]["method"]
print(url,payload)
reservoir_data_valid_date_range = get_response(url, payload, method)
return reservoir_data_valid_date_range[0]

Expand All @@ -147,7 +142,6 @@ def get_reservoir_data(reservoir_names_str, timestep, start_date, end_date):
payload["stnVal"]["Startdate"] = payload["stnVal"]["Startdate"].format(start_date)
payload["stnVal"]["Enddate"] = payload["stnVal"]["Enddate"].format(end_date)
method = requests_config["reservoir"]["get_reservoir_data"]["method"]
print(url,payload)
reservoir_data = get_response(url, payload, method)
return reservoir_data

Expand Down

0 comments on commit 19c5321

Please sign in to comment.