Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions murgtools/getdata/getDataFRF.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,10 +968,9 @@ def getBathyTransectFromNC(self, profilenumbers=None, method=1, forceReturnAll=F
# return everything found in window
idx = self.bathydataindex
elif np.size(self.bathydataindex) == 1 and self.bathydataindex is not None:
# identifed single survey point that fits time window
# identified single survey point that fits time window
idx = self.bathydataindex
elif ((np.size(self.bathydataindex) < 1) or (self.bathydataindex is None) & method == 1) or (
self.bathydataindex is None and method == 1):
elif ((self.bathydataindex is None) or (np.size(self.bathydataindex) < 1)) and method == 1:
# there's no exact bathy match so find the closest in history
# find the max negative number where the negative numbers are historical and the max would be the
# closest historical
Expand Down
Loading