Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
bayeswave
Commits
2efb0fba
Commit
2efb0fba
authored
Aug 17, 2020
by
James Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support single-trigger event lists and add a new short option -l to specify the list
parent
6f55330f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
BayesWaveUtils/bayeswave_pipe/bayeswave_pipe_utils.py
BayesWaveUtils/bayeswave_pipe/bayeswave_pipe_utils.py
+2
-7
BayesWaveUtils/scripts/bayeswave_pipe
BayesWaveUtils/scripts/bayeswave_pipe
+2
-3
No files found.
BayesWaveUtils/bayeswave_pipe/bayeswave_pipe_utils.py
View file @
2efb0fba
...
...
@@ -782,12 +782,8 @@ class triggerList:
def
parse_trigger_list
(
self
,
cp
,
trigger_file
,
rho_threshold
=-
1.0
,
keep_frac
=
1.0
):
trigger_data
=
np
.
loadtxt
(
trigger_file
)
try
:
nrows
,
ncols
=
trigger_data
.
shape
except
ValueError
:
nrows
=
len
(
trigger_data
)
ncols
=
1
trigger_data
=
np
.
loadtxt
(
trigger_file
,
ndmin
=
2
)
nrows
,
ncols
=
trigger_data
.
shape
triggers
=
list
()
...
...
@@ -832,7 +828,6 @@ class triggerList:
trigger_frequency
=
trigger_data
[
i
,
2
],
rho
=
trigger_data
[
i
,
3
]))
# Finally, downsample to a smaller fraction of triggers
try
:
keep_frac
=
cp
.
getfloat
(
'input'
,
'keep-frac'
)
...
...
BayesWaveUtils/scripts/bayeswave_pipe
View file @
2efb0fba
...
...
@@ -168,10 +168,9 @@ def parser():
parser
.
add_argument
(
dest
=
"configfile"
,
help
=
"Config file"
)
parser
.
add_argument
(
"-t"
,
"--user-tag"
,
default
=
""
,
type
=
str
)
parser
.
add_argument
(
"-r"
,
"--workdir"
,
type
=
str
,
default
=
None
,
required
=
True
)
parser
.
add_argument
(
"--trigger-time"
,
type
=
float
,
default
=
None
)
parser
.
add_argument
(
"--trigger-list"
,
type
=
str
,
default
=
None
)
parser
.
add_argument
(
"-t"
,
"--trigger-time"
,
type
=
float
,
default
=
None
)
parser
.
add_argument
(
"-l"
,
"--trigger-list"
,
type
=
str
,
default
=
None
)
parser
.
add_argument
(
"--bayesline-median-psd"
,
default
=
False
,
action
=
"store_true"
)
parser
.
add_argument
(
"--cwb-trigger-list"
,
type
=
str
,
default
=
None
)
...
...
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