Skip to content

Commit 45d2f30

Browse files
authored
1 parent 7011aa4 commit 45d2f30

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__pycache__/**

tests.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
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

Comments
 (0)