Skip to content

Commit 1b0d0b8

Browse files
committed
Add new header data examples and remove temporary skip from tests
1 parent a81ac4f commit 1b0d0b8

File tree

3 files changed

+75
-4
lines changed

3 files changed

+75
-4
lines changed

tests/data/header_data.txt

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
!usgs dutch slough formatted example
2+
# format: dwr-dms-1.0
3+
# date_formatted: 2024-03-01T00:00:00
4+
# agency: usgs
5+
# station_id: dss
6+
# agency_id: '11335000'
7+
# param: flow
8+
# unit: cfs
9+
# subloc: default
10+
# original_header: Raw USGS provisional data disclaimer header from water.usgs.gov
11+
datetime,value,user_flag
12+
2020-01-01 00:00,100.0,0
13+
2020-01-01 00:15,102.0,0
14+
15+
!usgs screened example
16+
# format: dwr-dms-1.0
17+
# date_formatted: 2024-06-01T12:00:00
18+
# agency: usgs
19+
# station_id: lib
20+
# agency_id: '14301000'
21+
# param: stage
22+
# unit: ft
23+
# subloc: default
24+
# original_header: Agency USGS Site 14301000 LIBBY CR NR LIBBY OR approved data
25+
datetime,value,user_flag
26+
2020-01-01 00:00,5.12,0
27+
2020-01-01 01:00,5.13,0
28+
29+
!Division of Environmental Services at DWR (des)
30+
# format: dwr-dms-1.0
31+
# date_formatted: 2023-11-15T09:30:00
32+
# agency: des
33+
# station_id: msd
34+
# agency_id: B9155200
35+
# param: ec
36+
# unit: uS/cm
37+
# subloc: bottom
38+
# original_header: DWR Division of Environmental Services Mildred Island Bottom Sensor
39+
datetime,value,user_flag
40+
2020-01-01 00:00,220.5,0
41+
2020-01-01 00:15,221.0,0
42+
43+
!cdec formatted example
44+
# format: dwr-dms-1.0
45+
# date_formatted: 2024-01-10T08:00:00
46+
# agency: cdec
47+
# station_id: sac
48+
# agency_id: SAC
49+
# param: flow
50+
# unit: cfs
51+
# subloc: default
52+
datetime,value,user_flag
53+
2021-01-01 00:00,450.0,0
54+
2021-01-01 01:00,452.0,0
55+
56+
!noaa formatted example
57+
# format: dwr-dms-1.0
58+
# date_formatted: 2024-02-20T10:00:00
59+
# agency: noaa
60+
# station_id: pryc1
61+
# agency_id: '9415020'
62+
# param: elev
63+
# unit: ft
64+
# subloc: default
65+
datetime,value,user_flag
66+
2022-06-01 00:00,3.21,0
67+
2022-06-01 01:00,3.19,0
68+
69+
!ncro corrupted file with extra space [fails]
70+
# format: dwr-dms-1.0
71+
# agency: ncro
72+
# station_id: xyz
73+
# param: temp
74+
datetime,value,user_flag
75+
2020-01-01 00:00,15.0,0

tests/test_read_yaml_header.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import pandas as pd
44
import pytest
55

6-
pytestmark = pytest.mark.skip(reason="Temporarily disabled while fixing test data packaging in CI")
7-
86
from dms_datastore.read_ts import (
97
extract_commented_header,
108
parse_yaml_header,

tests/test_yaml_headers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from dms_datastore.read_ts import parse_yaml_header
77
from dms_datastore.write_ts import prep_header
88

9-
pytestmark = pytest.mark.skip(reason="Temporarily disabled while fixing test data packaging in CI")
10-
119
def leading_commented_header(text: str, comment: str = "#") -> str:
1210
# Use the same rule as extract_commented_header, but on an in-memory string
1311
lines = text.splitlines(keepends=True)

0 commit comments

Comments
 (0)