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
ff8eb86d
Commit
ff8eb86d
authored
Sep 23, 2020
by
megmillhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up debugging statements
parent
5ea52c08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
19 deletions
+6
-19
BayesWaveUtils/bayeswave_pipe/bayeswave_pipe_utils.py
BayesWaveUtils/bayeswave_pipe/bayeswave_pipe_utils.py
+4
-15
BayesWaveUtils/scripts/bayeswave_pipe
BayesWaveUtils/scripts/bayeswave_pipe
+2
-4
No files found.
BayesWaveUtils/bayeswave_pipe/bayeswave_pipe_utils.py
View file @
ff8eb86d
...
...
@@ -29,10 +29,7 @@ from glue import pipeline
from
glue.ligolw
import
ligolw
from
glue.ligolw
import
utils
as
ligolw_utils
try
:
from
glue.ligolw
import
lsctables
except
:
print
(
"Warning! Unable to import lsctables."
)
from
glue.ligolw
import
lsctables
#import lalinspiral, lalburst
...
...
@@ -54,12 +51,9 @@ else: # other python3 compatibility stuff
CVMFS_FRAMES
=
"/cvmfs/oasis.opensciencegrid.org/ligo/frames/"
# define a content handler
try
:
class
LIGOLWContentHandler
(
ligolw
.
LIGOLWContentHandler
):
pass
lsctables
.
use_in
(
LIGOLWContentHandler
)
except
:
print
(
"Warning: could not set LIGOLW content handler"
)
class
LIGOLWContentHandler
(
ligolw
.
LIGOLWContentHandler
):
pass
lsctables
.
use_in
(
LIGOLWContentHandler
)
def
write_pre_cmd
(
workdir
):
"""
...
...
@@ -458,10 +452,6 @@ class triggerList:
elif
trigger_file
is
not
None
and
not
internal_injections
:
# Create trigger list from ascii file
self
.
triggers
=
self
.
parse_trigger_list
(
cp
,
trigger_file
)
list_of_times
=
[
t
.
trigger_time
for
t
in
self
.
triggers
]
print
(
list_of_times
)
# for t in self.triggers:
# print(t.trigger_time)
elif
injection_file
is
not
None
:
# Create trigger list from sim* LIGOLW-XML table
...
...
@@ -538,7 +528,6 @@ class triggerList:
if
events
!=
'all'
:
BW_events
=
list
(
hyphen_range
(
events
))
print
(
BW_events
)
else
:
BW_events
=
range
(
0
,
BW_chainLength
)
...
...
BayesWaveUtils/scripts/bayeswave_pipe
View file @
ff8eb86d
...
...
@@ -38,10 +38,8 @@ import numpy as np
from
glue
import
pipeline
try
:
from
lalapps
import
inspiralutils
except
:
print
(
"Warning! could not import inspiralutils"
)
from
lalapps
import
inspiralutils
from
ligo
import
segments
from
bayeswave_pipe
import
bayeswave_pipe_utils
as
pipe_utils
...
...
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