diff --git a/murgtools/getdata/getDataFRF.py b/murgtools/getdata/getDataFRF.py index 791c030..302616a 100755 --- a/murgtools/getdata/getDataFRF.py +++ b/murgtools/getdata/getDataFRF.py @@ -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