We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7011aa4 commit 45d2f30Copy full SHA for 45d2f30
.gitignore
@@ -0,0 +1 @@
1
+__pycache__/**
tests.py
@@ -0,0 +1,24 @@
+from hec_dss import HecDss
2
+from datetime import datetime
3
+
4
+class Tests:
5
6
+ @staticmethod
7
+ def test_issue9():
8
+ dss = HecDss("sample7.dss")
9
+ pathnames = [
10
+ "//SACRAMENTO/PRECIP-INC//1Day/OBS/",
11
+ "/EF RUSSIAN/COYOTE/PRECIP-INC//1Hour/TB/"
12
+ "/GREEN RIVER/OAKVILLE/ELEVATION//1Hour//"
13
+ ]
14
+ t1 = datetime(2006, 3, 1)
15
+ t2 = datetime(2006, 3 ,30)
16
+ for path in pathnames:
17
+ print(f"reading {path}")
18
+ tsc = dss.get(path,t1,t2)
19
+ print("len(tsc.values) = {len(tsc.values)}")
20
+ assert(len(tsc.values)>1)
21
22
23
+Tests.test_issue9()
24
0 commit comments