Skip to content

Commit e239720

Browse files
committed
fixing deprecated numpy functionality and torch version
1 parent c5c1de9 commit e239720

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hydroDL/data/load_csv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def load_all_csv(self, var_s, var_type, select_date_list, csv_date_list):
9292
path_xdata = os.path.join(
9393
self.csv_path_s, str(year_int), var_s + ".csv"
9494
)
95-
df = pd.read_csv(path_xdata, dtype=np.float, header=None) # pixel, time
95+
df = pd.read_csv(path_xdata, dtype=float, header=None) # pixel, time
9696

9797
df_a = df.values # pixel, time
9898
if ndx_year == 0:
@@ -102,7 +102,7 @@ def load_all_csv(self, var_s, var_type, select_date_list, csv_date_list):
102102

103103
elif var_type in ["var_c"]:
104104
path_cData = os.path.join(self.csv_path_s, "const", var_s + ".csv")
105-
df = pd.read_csv(path_cData, dtype=np.float, header=None,) # pixel,
105+
df = pd.read_csv(path_cData, dtype=float, header=None,) # pixel,
106106

107107
df_a = df.values # pixel,
108108
data = df_a

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
torch==2.1.1
1+
torch==2.0.1
22
matplotlib==3.8.0
33

44
cartopy

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
URL = "https://github.com/mhpi/hydroDL/"
1818
1919
AUTHOR = "MHPI"
20-
REQUIRES_PYTHON = ">=3.0"
20+
REQUIRES_PYTHON = ">=3.9"
2121
VERSION = None
2222

2323
# The rest you shouldn't have to touch too much :)

0 commit comments

Comments
 (0)