Commit ad015c82 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Improved printing for max twoF from grid search

parent dbff174c
......@@ -1653,7 +1653,17 @@ class GridSearch(BaseSearchClass):
def get_max_twoF(self):
twoF =[:, -1]
return np.max(twoF)
idx = np.argmax(twoF)
v =[idx, :]
d = OrderedDict(tstart=v[0], tend=v[1], F0=v[2], F1=v[3], F2=v[4],
Alpha=v[5], Delta=v[6], twoF=v[7])
return d
def print_max_twoF(self):
d = self.get_max_twoF()
print('Max twoF values for {}:'.format(self.label))
for k, v in d.iteritems():
print(' {}={}'.format(k, v))
class GridGlitchSearch(GridSearch):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment