@@ -88,6 +88,32 @@ def test_str(self):
88
88
mini_df = self .kd .mini_summary
89
89
self .assertEqual (str (mini_df .head ()), str (self .kd ))
90
90
91
+ def test_input_channels (self ):
92
+ self .assertListEqual (["hx" , "hy" ], self .kd .input_channels )
93
+
94
+ def test_output_channels (self ):
95
+ self .assertListEqual (["ex" , "ey" , "hz" ], self .kd .output_channels )
96
+
97
+ def test_local_df (self ):
98
+ with self .subTest ("shape" ):
99
+ self .assertEqual (self .kd .local_df .shape , (1 , 20 ))
100
+ with self .subTest ("local station only length" ):
101
+ self .assertEqual (len (self .kd .local_df .station .unqiue ()), 1 )
102
+ with self .subTest ("local station only" ):
103
+ self .assertListEqual (
104
+ list (self .kd .local_df .station .unique ()), ["test1" ]
105
+ )
106
+
107
+ def test_remote_df (self ):
108
+ with self .subTest ("shape" ):
109
+ self .assertEqual (self .kd .remote_df .shape , (1 , 20 ))
110
+ with self .subTest ("remote station only length" ):
111
+ self .assertEqual (len (self .kd .remote_df .station .unqiue ()), 1 )
112
+ with self .subTest ("remote station only" ):
113
+ self .assertListEqual (
114
+ list (self .kd .remote_df .station .unique ()), ["test1" ]
115
+ )
116
+
91
117
# @classmethod
92
118
# def tearDownClass(self):
93
119
# self.mth5_path.unlink()
@@ -111,11 +137,15 @@ def setUpClass(self):
111
137
# hours
112
138
113
139
# shift the interval forward, leave it overlapping
114
- self .ti2_start = self .ti1_start + pd .Timedelta (hours = self .shift_1_hours )
140
+ self .ti2_start = self .ti1_start + pd .Timedelta (
141
+ hours = self .shift_1_hours
142
+ )
115
143
self .ti2_end = self .ti1_end + pd .Timedelta (hours = self .shift_1_hours )
116
144
117
145
# shift the interval forward, non-verlapping
118
- self .ti3_start = self .ti1_start + pd .Timedelta (hours = self .shift_2_hours )
146
+ self .ti3_start = self .ti1_start + pd .Timedelta (
147
+ hours = self .shift_2_hours
148
+ )
119
149
self .ti3_end = self .ti1_end + pd .Timedelta (hours = self .shift_2_hours )
120
150
121
151
def test_overlaps_boolean (self ):
0 commit comments