diff --git a/pyfstat/grid_based_searches.py b/pyfstat/grid_based_searches.py index 4a38cbaab11544041e118d9da7ecda07aed11338..dadb855066df6fd72799d5ac0e3def4f10eb8053 100644 --- a/pyfstat/grid_based_searches.py +++ b/pyfstat/grid_based_searches.py @@ -286,6 +286,16 @@ class GridSearch(BaseSearchClass): return ax def get_max_twoF(self): + """ Get the maximum twoF over the grid + + Returns + ------- + d: dict + Dictionary containing, 'minStartTime', 'maxStartTime', 'F0', 'F1', + 'F2', 'Alpha', 'Delta' and 'twoF' of maximum + + """ + twoF = self.data[:, -1] idx = np.argmax(twoF) v = self.data[idx, :]