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
Katerina Chatziioannou
bayeswave
Commits
16c7d5a5
Commit
16c7d5a5
authored
Oct 07, 2020
by
Katerina Chatziioannou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do some clean up
parent
576178fa
Pipeline
#160567
failed with stages
in 1 minute and 33 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
doc/bayescbc.md
doc/bayescbc.md
+1
-1
src/BayesCBC.c
src/BayesCBC.c
+6
-6
src/BayesWave.c
src/BayesWave.c
+0
-1
No files found.
doc/bayescbc.md
View file @
16c7d5a5
...
...
@@ -6,4 +6,4 @@ This page describes how the BayesCBC module for BayesWave.
-
`chains/cbc_model.dat.<i>`
where i is the chain number (BW prints cold chain
0 by default, with verbose flags chain files for all chains are printed)
-
`wave
sCBC
/*`
CBC waveforms
-
`wave
forms
/*`
CBC waveforms
src/BayesCBC.c
View file @
16c7d5a5
...
...
@@ -580,7 +580,7 @@ void printwaveall(struct Net *net, int N, RealVector *freq, double *paramx, doub
// printf("%d %f %f\n", iter, exp(paramx[0])/MSUN_SI, fs);
for (id = 0; id < net->Nifo; ++id)
{
sprintf(command, "wave
sCBC
/wavefcheck_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
sprintf(command, "wave
forms
/wavefcheck_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
out = fopen(command,"w");
for (i = 1; i < N/2; ++i)
{
...
...
@@ -692,7 +692,7 @@ void printwaveall(struct Net *net, int N, RealVector *freq, double *paramx, doub
for (id = 0; id < net->Nifo; ++id)
{
sprintf(command, "wave
sCBC
/wave_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
sprintf(command, "wave
forms
/wave_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
out = fopen(command,"w");
for (i = 0; i < N; ++i)
{
...
...
@@ -700,7 +700,7 @@ void printwaveall(struct Net *net, int N, RealVector *freq, double *paramx, doub
}
fclose(out);
sprintf(command, "wave
sCBC
/wavedata_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
sprintf(command, "wave
forms
/wavedata_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
out = fopen(command,"w");
for (i = 0; i < N; ++i)
{
...
...
@@ -711,7 +711,7 @@ void printwaveall(struct Net *net, int N, RealVector *freq, double *paramx, doub
for (id = 0; id < net->Nifo; ++id)
{
sprintf(command, "wave
sCBC
/wavef_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
sprintf(command, "wave
forms
/wavef_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
out = fopen(command,"w");
for (i = 1; i < N/2; ++i)
{
...
...
@@ -735,7 +735,7 @@ void printwaveall(struct Net *net, int N, RealVector *freq, double *paramx, doub
// printf(" amplitude factor: %f\n\n",fac);
for (id = 0; id < net->Nifo; ++id)
{
sprintf(command, "wave
sCBC
/wavewhite_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
sprintf(command, "wave
forms
/wavewhite_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
out = fopen(command,"w");
for (i = 0; i < N; ++i)
{
...
...
@@ -743,7 +743,7 @@ void printwaveall(struct Net *net, int N, RealVector *freq, double *paramx, doub
}
fclose(out);
sprintf(command, "wave
sCBC
/wavedatawhite_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
sprintf(command, "wave
forms
/wavedatawhite_%d_%d_%d_%d.dat", iter, (int)(Tobs), (int)ttrig, net->labels[id]);
out = fopen(command,"w");
for (i = 0; i < N; ++i)
{
...
...
src/BayesWave.c
View file @
16c7d5a5
...
...
@@ -159,7 +159,6 @@ int main(int argc, char *argv[])
mode_t
process_mask
=
umask
(
0
);
mkdir
(
"chains"
,
S_IRWXU
|
S_IRWXG
|
S_IROTH
|
S_IXOTH
);
mkdir
(
"waveforms"
,
S_IRWXU
|
S_IRWXG
|
S_IROTH
|
S_IXOTH
);
mkdir
(
"wavesCBC"
,
S_IRWXU
|
S_IRWXG
|
S_IROTH
|
S_IXOTH
);
if
(
data
->
checkpointFlag
)
mkdir
(
"checkpoint"
,
S_IRWXU
|
S_IRWXG
|
S_IROTH
|
S_IXOTH
);
sprintf
(
filename
,
"%ssnr"
,
data
->
runName
);
mkdir
(
filename
,
S_IRWXU
|
S_IRWXG
|
S_IROTH
|
S_IXOTH
);
...
...
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