Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
B
bayeswave
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sudarshan Ghonge
bayeswave
Commits
195c02fa
Commit
195c02fa
authored
Nov 11, 2020
by
Sudarshan Ghonge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few condor bugs.
parent
d4a6f6a3
Pipeline
#168480
passed with stages
in 1 minute and 20 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
17 deletions
+23
-17
BayesWaveUtils/bayeswave_pipe/bayeswave_pipe_utils.py
BayesWaveUtils/bayeswave_pipe/bayeswave_pipe_utils.py
+9
-7
BayesWaveUtils/scripts/bayeswave_pipe
BayesWaveUtils/scripts/bayeswave_pipe
+3
-5
src/BayesWaveCleanFrame.c
src/BayesWaveCleanFrame.c
+11
-5
No files found.
BayesWaveUtils/bayeswave_pipe/bayeswave_pipe_utils.py
View file @
195c02fa
...
...
@@ -996,8 +996,8 @@ def condor_job_config(job_type, condor_job, config_parser):
#
if
config_parser
.
getboolean
(
'condor'
,
'osg-deploy'
):
# --- Force downstream jobs to run locally
if
job_type
in
[
'bayeswave_post'
,
'bayeswave_fpeak'
,
'
megaplot.py
'
,
'megasky.py'
]:
if
job_type
in
[
'bayeswave_post'
,
'bayeswave_fpeak'
,
'
bayeswave_clean_frame
'
,
'megaplot.py'
,
'megasky.py'
]:
requires
.
append
(
"(GLIDEIN_SITE=?=undefined)"
)
else
:
try
:
...
...
@@ -1605,12 +1605,14 @@ class bayeswave_clean_frameJob(pipeline.CondorDAGJob, pipeline.AnalysisJob):
self
.
add_condor_cmd
(
'initialdir'
,
workdir
)
self
.
set_sub_file
(
os
.
path
.
join
(
workdir
,
'bayeswave_clean_frame.sub'
))
self
.
set_stdout_file
(
os
.
path
.
join
(
workdir
,
'logs'
,
'BayesWaveCleanFrame_$(macroout
putDir
)-$(cluster)-$(process).out'
))
'BayesWaveCleanFrame_$(macroout
dir)-$(macroifo
)-$(cluster)-$(process).out'
))
self
.
set_stderr_file
(
os
.
path
.
join
(
workdir
,
'logs'
,
'BayesWaveCleanFrame_$(macroout
putDir
)-$(cluster)-$(process).err'
))
'BayesWaveCleanFrame_$(macroout
dir)-$(macroifo
)-$(cluster)-$(process).err'
))
self
.
set_log_file
(
os
.
path
.
join
(
workdir
,
'logs'
,
'BayesWaveCleanFrame_$(macrooutputDir)-$(cluster)-$(process).log'
))
'BayesWaveCleanFrame_$(macrooutdir)-$(macroifo)-$(cluster)-$(process).log'
))
if
cp
.
has_option
(
'condor'
,
'arch'
):
self
.
add_condor_cmd
(
'+arch'
,
cp
.
get
(
'condor'
,
'arch'
))
...
...
@@ -1633,13 +1635,13 @@ class bayeswave_clean_frameJob(pipeline.CondorDAGJob, pipeline.AnalysisJob):
if
cp
.
getboolean
(
'condor'
,
'transfer-files'
):
# File transfers
transferstring
=
'$(macroout
putD
ir),datafind'
transferstring
=
'$(macroout
d
ir),datafind'
if
cp
.
getboolean
(
'condor'
,
'copy-frames'
):
transferstring
+=
',$(macroframes)'
self
.
add_condor_cmd
(
'transfer_input_files'
,
transferstring
)
self
.
add_condor_cmd
(
'transfer_output_files'
,
'$(macroout
putD
ir)'
)
self
.
add_condor_cmd
(
'transfer_output_files'
,
'$(macroout
d
ir)'
)
clean_suffix
=
cp
.
get
(
'bayeswave_clean_frame_options'
,
'clean-suffix'
)
self
.
add_opt
(
'clean-suffix'
,
clean_suffix
)
...
...
BayesWaveUtils/scripts/bayeswave_pipe
View file @
195c02fa
...
...
@@ -1186,9 +1186,6 @@ for t,trigger in enumerate(trigger_list.triggers):
# Add options for bayeswave_clean_frame node
#
if
opts
.
bayeswave_clean_frame
:
clean_frame_outdir
=
os
.
path
.
join
(
outputDir
,
'clean_frame'
)
if
not
os
.
path
.
exists
(
clean_frame_outdir
):
os
.
makedirs
(
clean_frame_outdir
)
bayeswave_clean_frame_nodes
=
[]
if
cp
.
has_option
(
'bayeswave_options'
,
'fullOnly'
):
model_type
=
'full'
...
...
@@ -1199,6 +1196,7 @@ for t,trigger in enumerate(trigger_list.triggers):
clean_frame_node
=
pipe_utils
.
bayeswave_clean_frameNode
(
bayeswave_clean_frame_job
)
clean_frame_node
.
set_trigtime
(
trigger
.
trigger_time
)
clean_frame_node
.
set_ifo
(
ifo
)
clean_frame_node
.
set_segment_start
(
segment_start
)
trigtime
=
int
(
trigger
.
trigger_time
)
example_ts
=
fr
.
read_timeseries
(
cache_files
[
ifo
],
channel_names
[
ifo
],
trigtime
-
1
,
2.0
)
...
...
@@ -1216,9 +1214,9 @@ for t,trigger in enumerate(trigger_list.triggers):
clean_frame_node
.
set_frame_srate
(
clean_frame_srate
)
clean_frame_node
.
set_seglen
(
trigger
.
seglen
)
glitch_param_file
=
os
.
path
.
join
(
outputDir
,
'chains'
,
'%s_params_%s.dat'
%
(
model_type
,
ifo
))
glitch_param_file
=
os
.
path
.
join
(
outputDir
,
'chains'
,
'%s_params_%s.dat
.0
'
%
(
model_type
,
ifo
))
clean_frame_node
.
set_glitch_param_file
(
glitch_param_file
)
clean_frame_node
.
set_outdir
(
clean_frame_outd
ir
)
clean_frame_node
.
set_outdir
(
outputD
ir
)
clean_frame_node
.
set_channel_name
(
channel_names
[
ifo
])
clean_frame_node
.
set_frame_type
(
frtype_list
[
ifo
])
...
...
src/BayesWaveCleanFrame.c
View file @
195c02fa
/*
* Copyright (C) 2018 Neil J. Cornish, Tyson B. Littenberg, James A. Clark, Jonah B. Kanner
* Copyright (C) 2018 Neil J. Cornish, Tyson B. Littenberg, James A. Clark, Jonah B. Kanner,
* Sudarshan Ghonge
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -25,6 +26,7 @@
#include <math.h>
#include <string.h>
#include <fftw3.h>
#include <sys/stat.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
...
...
@@ -91,7 +93,7 @@ struct CleanFrameData
void
print_usage
();
void
parse_command_line_args
(
int
argc
,
char
**
argv
,
struct
CleanFrameData
*
data
);
static
void
output_frame
(
REAL8TimeSeries
*
timeData
,
REAL8TimeSeries
*
timeRes
,
REAL8TimeSeries
*
timeGlitch
,
CHAR
*
frameType
,
CHAR
*
ifo
,
CHAR
*
out
dir
);
static
void
output_frame
(
REAL8TimeSeries
*
timeData
,
REAL8TimeSeries
*
timeRes
,
REAL8TimeSeries
*
timeGlitch
,
CHAR
*
frameType
,
CHAR
*
ifo
,
CHAR
*
clean
dir
);
void
printProgress
(
double
percentage
)
{
...
...
@@ -181,6 +183,10 @@ int main(int argc, char *argv[])
version
=
data
->
clean_suffix
;
outdir
=
data
->
outdir
;
char
cleandir
[
MAXSTRINGSIZE
];
sprintf
(
cleandir
,
"%s/clean_frame"
,
data
->
outdir
);
mkdir
(
cleandir
,
S_IRWXU
|
S_IRWXG
|
S_IROTH
|
S_IXOTH
);
char
outframeType
[
MAXSTRINGSIZE
];
char
outframeChannel
[
MAXSTRINGSIZE
];
char
outframeGlitchChannel
[
MAXSTRINGSIZE
];
...
...
@@ -349,7 +355,7 @@ int main(int argc, char *argv[])
// Output cleaned data!
output_frame
(
timeData
,
timeRes
,
timeGlitch
,
outframeType
,
data
->
ifo
,
out
dir
);
output_frame
(
timeData
,
timeRes
,
timeGlitch
,
outframeType
,
data
->
ifo
,
clean
dir
);
XLALDestroyREAL8TimeSeries
(
timeData
);
fprintf
(
stdout
,
"
\n
"
);
...
...
@@ -368,7 +374,7 @@ static void output_frame(REAL8TimeSeries *timeData,
REAL8TimeSeries
*
timeGlitch
,
CHAR
*
frameType
,
CHAR
*
ifo
,
CHAR
*
out
dir
)
CHAR
*
clean
dir
)
{
CHAR
fname
[
2048
];
INT4
duration
;
...
...
@@ -400,7 +406,7 @@ static void output_frame(REAL8TimeSeries *timeData,
/* get frame filename */
duration
=
gpsEnd
-
gpsStart
;
snprintf
(
fname
,
FILENAME_MAX
,
"%s/%c-%s-%d-%d.gwf"
,
out
dir
,
ifo
[
0
],
frameType
,
gpsStart
,
duration
);
snprintf
(
fname
,
FILENAME_MAX
,
"%s/%c-%s-%d-%d.gwf"
,
clean
dir
,
ifo
[
0
],
frameType
,
gpsStart
,
duration
);
/* define frame */
frame
=
XLALFrameNew
(
&
timeData
->
epoch
,
duration
,
"LIGO"
,
0
,
1
,
detectorFlags
);
...
...
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