Beispiel #1
0
def test_read_node(test_file, quantity, id, expected_max):
    data = test_file.query.GetNodeValues(id, quantity)
    data = to_numpy(data)
    actual_max = round(np.max(data), 3)
    assert pytest.approx(actual_max) == expected_max
Beispiel #2
0
def test_read_reach(test_file, quantity, id, chainage, expected_max):
    data = test_file.query.GetReachValues(id, chainage, quantity)
    data = to_numpy(data)
    actual_max = round(np.max(data), 3)
    assert pytest.approx(actual_max) == expected_max
Beispiel #3
0
 def get_reach_sum_values(self, reach_name, quantity):
     return to_numpy(self.query.GetReachSumValues(reach_name, quantity))
Beispiel #4
0
 def get_reach_end_values(self, reach_name, quantity):
     return to_numpy(self.query.GetReachEndValues(reach_name, quantity))
Beispiel #5
0
 def get_reach_values(self, reach_name, chainage, quantity):
     return to_numpy(
         self.query.GetReachValues(reach_name, chainage, quantity))
Beispiel #6
0
 def get_node_values(self, node_id, quantity):
     return to_numpy(self.query.GetNodeValues(node_id, quantity))