Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
lscsoft
GstLAL
Commits
7c8edd19
Commit
7c8edd19
authored
8 years ago
by
Aaron Viets
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_compute_strain: do not use pylal wrappings
parent
a7785a7d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-calibration/bin/gstlal_compute_strain
+4
-7
4 additions, 7 deletions
gstlal-calibration/bin/gstlal_compute_strain
with
4 additions
and
7 deletions
gstlal-calibration/bin/gstlal_compute_strain
+
4
−
7
View file @
7c8edd19
...
...
@@ -64,9 +64,6 @@ from gstlal import calibration_parts
from
gstlal
import
simplehandler
from
gstlal
import
datasource
from
pylal.xlal.datatypes.ligotimegps
import
LIGOTimeGPS
from
pylal.date
import
XLALUTCToGPS
from
glue.ligolw
import
ligolw
from
glue.ligolw
import
array
from
glue.ligolw
import
param
...
...
@@ -95,7 +92,7 @@ setrlimit(resource.RLIMIT_RSS, None)
setrlimit
(
resource
.
RLIMIT_STACK
,
1024
*
1024
)
def
now
():
return
LIGOTimeGPS
(
lal
.
UTCToGPS
(
tim
.
gmtime
()),
0
)
return
lal
.
LIGOTimeGPS
(
lal
.
UTCToGPS
(
tim
.
gmtime
()),
0
)
###################################################################################################
...
...
@@ -264,11 +261,11 @@ if options.gps_start_time is not None:
if
options
.
data_source
==
"
lvshm
"
or
options
.
data_source
==
"
white
"
:
raise
ValueError
(
"
cannot set --gps-start-time or --gps-end-time with --data-source=lvshm or --data-source=white
"
)
try
:
start
=
LIGOTimeGPS
(
options
.
gps_start_time
)
start
=
lal
.
LIGOTimeGPS
(
options
.
gps_start_time
)
except
ValueError
:
raise
ValueError
(
"
invalid --gps-start-time %s
"
%
options
.
gps_start_time
)
try
:
end
=
LIGOTimeGPS
(
options
.
gps_end_time
)
end
=
lal
.
LIGOTimeGPS
(
options
.
gps_end_time
)
except
ValueError
:
raise
ValueError
(
"
invalid --gps-end-time %s
"
%
options
.
gps_end_time
)
if
start
>=
end
:
...
...
@@ -1249,7 +1246,7 @@ if options.data_source == "frames":
start
=
int
(
options
.
gps_start_time
)
elif
options
.
data_source
==
"
lvshm
"
:
tm
=
time
.
gmtime
()
start
=
int
(
XLAL
UTCToGPS
(
tm
))
start
=
int
(
lal
.
UTCToGPS
(
tm
))
# start writing frame files that only start after the desired start time + filter latency + kappa settling (if computing kappas)
if
not
options
.
no_kappatst
or
not
options
.
no_kappaa
or
not
options
.
no_kappapu
or
not
options
.
no_kappac
or
not
options
.
no_fcc
:
output_start
=
start
+
int
(
filter_settle_time
)
+
options
.
median_smoothing_time
+
options
.
factors_averaging_time
+
10
# 10 additional seconds seem necessary to make sure the low-pass filter for demodulation is also settled (I think that's the cause at least)
...
...
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