Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuanhao
PyFstat
Commits
a763d572
Commit
a763d572
authored
7 years ago
by
David Keitel
Browse files
Options
Downloads
Patches
Plain Diff
internal timing of transient F-stat map function
parent
fe49dcba
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pyfstat/core.py
+1
-1
1 addition, 1 deletion
pyfstat/core.py
pyfstat/grid_based_searches.py
+4
-0
4 additions, 0 deletions
pyfstat/grid_based_searches.py
pyfstat/tcw_fstat_map_funcs.py
+4
-1
4 additions, 1 deletion
pyfstat/tcw_fstat_map_funcs.py
with
9 additions
and
2 deletions
pyfstat/core.py
+
1
−
1
View file @
a763d572
...
...
@@ -714,7 +714,7 @@ class ComputeFstat(BaseSearchClass):
# actual (t0,tau) window was set with tstart, tend before
self
.
windowRange
.
tau
=
int
(
tend
-
tstart
)
# TYPE UINT4
self
.
FstatMap
=
tcw
.
call_compute_transient_fstat_map
(
self
.
FstatMap
,
self
.
timingFstatMap
=
tcw
.
call_compute_transient_fstat_map
(
self
.
tCWFstatMapVersion
,
self
.
tCWFstatMapFeatures
,
self
.
FstatResults
.
multiFatoms
[
0
],
self
.
windowRange
)
if
self
.
tCWFstatMapVersion
==
'
lal
'
:
...
...
This diff is collapsed.
Click to expand it.
pyfstat/grid_based_searches.py
+
4
−
0
View file @
a763d572
...
...
@@ -459,10 +459,12 @@ class TransientGridSearch(GridSearch):
tCWfilebase
=
os
.
path
.
splitext
(
self
.
out_file
)[
0
]
+
'
_tCW_
'
logging
.
info
(
'
Will save per-Doppler Fstatmap
'
\
'
results to {}*.dat
'
.
format
(
tCWfilebase
))
self
.
timingFstatMap
=
0.
for
vals
in
tqdm
(
self
.
input_data
):
detstat
=
self
.
search
.
get_det_stat
(
*
vals
)
windowRange
=
getattr
(
self
.
search
,
'
windowRange
'
,
None
)
FstatMap
=
getattr
(
self
.
search
,
'
FstatMap
'
,
None
)
self
.
timingFstatMap
+=
getattr
(
self
.
search
,
'
timingFstatMap
'
,
None
)
thisCand
=
list
(
vals
)
+
[
detstat
]
if
getattr
(
self
,
'
transientWindowType
'
,
None
):
if
self
.
tCWFstatMapVersion
==
'
lal
'
:
...
...
@@ -491,6 +493,8 @@ class TransientGridSearch(GridSearch):
if
self
.
outputAtoms
:
self
.
search
.
write_atoms_to_file
(
os
.
path
.
splitext
(
self
.
out_file
)[
0
])
logging
.
info
(
'
Total time spent computing transient F-stat maps: {:.2f}s
'
.
format
(
self
.
timingFstatMap
))
data
=
np
.
array
(
data
,
dtype
=
np
.
float
)
if
return_data
:
return
data
...
...
This diff is collapsed.
Click to expand it.
pyfstat/tcw_fstat_map_funcs.py
+
4
−
1
View file @
a763d572
...
...
@@ -3,6 +3,7 @@
import
numpy
as
np
import
os
import
logging
from
time
import
time
# optional imports
import
importlib
as
imp
...
...
@@ -185,14 +186,16 @@ def call_compute_transient_fstat_map ( version,
if
version
in
fstatmap_versions
:
if
features
[
version
]:
time0
=
time
()
FstatMap
=
fstatmap_versions
[
version
](
multiFstatAtoms
,
windowRange
)
timingFstatMap
=
time
()
-
time0
else
:
raise
Exception
(
'
Required module(s) for transient F-stat map
'
\
'
method
"
{}
"
not available!
'
.
format
(
version
))
else
:
raise
Exception
(
'
Transient F-stat map method
"
{}
"'
\
'
not implemented!
'
.
format
(
version
))
return
FstatMap
return
FstatMap
,
timingFstatMap
def
reshape_FstatAtomsVector
(
atomsVector
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment