Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
ad015c82
Commit
ad015c82
authored
Oct 18, 2016
by
Gregory Ashton
Browse files
Improved printing for max twoF from grid search
parent
dbff174c
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
ad015c82
...
...
@@ -1653,7 +1653,17 @@ class GridSearch(BaseSearchClass):
def
get_max_twoF
(
self
):
twoF
=
self
.
data
[:,
-
1
]
return
np
.
max
(
twoF
)
idx
=
np
.
argmax
(
twoF
)
v
=
self
.
data
[
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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment