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
5deabd2a
Commit
5deabd2a
authored
12 years ago
by
Chad Hanna
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_inspiral: whitespace
parent
5c9f20ab
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-inspiral/bin/gstlal_inspiral
+7
-7
7 additions, 7 deletions
gstlal-inspiral/bin/gstlal_inspiral
with
7 additions
and
7 deletions
gstlal-inspiral/bin/gstlal_inspiral
+
7
−
7
View file @
5deabd2a
...
...
@@ -85,7 +85,7 @@ sys.excepthook = excepthook
#
# Make sure we have sufficient resources
# We allocate far more memory than we need, so this is okay
#
#
# set the number of processes up to hard limit
maxproc
=
resource
.
getrlimit
(
resource
.
RLIMIT_NPROC
)[
1
]
...
...
@@ -194,12 +194,12 @@ def parse_command_line():
# hard-coded. this number is needed in a few places, and storing
# it in with the options is a convenient home
options
.
psd_fft_length
=
16
# seconds
# Online specific initialization
if
options
.
data_source
==
"
online
"
:
# check required options in this case
required_options
=
[
"
likelihood_file
"
,
"
job_tag
"
,
"
marginalized_likelihood_file
"
]
missing_options
+=
[
"
--%s
"
%
option
.
replace
(
"
_
"
,
"
-
"
)
for
option
in
required_options
if
getattr
(
options
,
option
)
is
None
]
if
missing_options
:
raise
ValueError
,
"
missing required option(s) %s
"
%
"
,
"
.
join
(
sorted
(
missing_options
))
...
...
@@ -208,24 +208,24 @@ def parse_command_line():
# make an "infinite" extent segment
detectors
.
seg
=
segments
.
segment
(
LIGOTimeGPS
(
0
),
LIGOTimeGPS
(
2000000000
))
# this gets set so that if you log into a node you can find out what the job id is easily
os
.
environ
[
'
GSTLAL_LL_JOB
'
]
=
options
.
job_tag
#
# Set up a registry of the resources that this job provides
#
host
=
socket
.
gethostname
()
# FIXME
# FIXME
# update this as bottle routes are added, can we do this automatically?
fname
=
os
.
path
.
join
(
os
.
getcwd
(),
os
.
environ
[
'
GSTLAL_LL_JOB
'
]
+
"
_registry.txt
"
)
f
=
open
(
fname
,
"
w
"
)
@bottle.route
(
"
/registry.txt
"
)
def
register
(
fname
=
None
):
yield
"
# %s %s %s
\n
"
%
(
options
.
job_tag
,
host
,
"
"
.
join
(
set
(
svd_banks
.
keys
())))
# First do urls that do not depend on instruments
...
...
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