Skip to content

Commit c80c029

Browse files
committed
depths should be abs
1 parent e72c171 commit c80c029

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/virtualship/instruments/drifter.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ def __init__(self, expedition, from_data):
7373
}
7474
limit_spec = {
7575
"spatial": False, # no spatial limits; generate global fieldset
76-
"depth_min": expedition.instruments_config.drifter_config.depth_meter, # [meters]
77-
"depth_max": expedition.instruments_config.drifter_config.depth_meter, # [meters]
76+
"depth_min": abs(
77+
expedition.instruments_config.drifter_config.depth_meter
78+
), # [meters]
79+
"depth_max": abs(
80+
expedition.instruments_config.drifter_config.depth_meter
81+
), # [meters]
7882
}
7983

8084
super().__init__(

0 commit comments

Comments
 (0)