Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Gregory Ashton
PyFstat
Commits
c5b0828d
Commit
c5b0828d
authored
7 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Update FM artifact writer
parent
7c09ea13
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfstat/make_sfts.py
+11
-7
11 additions, 7 deletions
pyfstat/make_sfts.py
with
11 additions
and
7 deletions
pyfstat/make_sfts.py
+
11
−
7
View file @
c5b0828d
...
...
@@ -332,13 +332,14 @@ class FrequencyModulatedArtifactWriter(Writer):
@helper_functions.initializer
def
__init__
(
self
,
label
,
outdir
=
"
.
"
,
tstart
=
700000000
,
data_
duration
=
86400
,
F0
=
30
,
F1
=
0
,
tref
=
None
,
h0
=
10
,
Tsft
=
1800
,
duration
=
86400
,
F0
=
30
,
F1
=
0
,
tref
=
None
,
h0
=
10
,
Tsft
=
1800
,
sqrtSX
=
1
,
Band
=
4
,
Pmod
=
lal
.
DAYSID_SI
,
Pmod_phi
=
0
,
Pmod_amp
=
1
,
Alpha
=
None
,
Delta
=
None
,
IFO
=
'
H1
'
):
Alpha
=
None
,
Delta
=
None
,
IFO
=
'
H1
'
,
minStartTime
=
None
,
maxStartTime
=
None
,
detectors
=
'
H1
'
):
"""
Parameters
----------
tstart,
data_
duration : int
tstart, duration : int
start and duration times (in gps seconds) of the total observation
Pmod, F0, F1 h0: float
Modulation period, freq, freq-drift, and h0 of the artifact
...
...
@@ -352,18 +353,21 @@ class FrequencyModulatedArtifactWriter(Writer):
see `lalapps_Makefakedata_v4 --help` for help with the other paramaters
"""
self
.
phi
=
0
self
.
F2
=
0
self
.
basic_setup
()
self
.
set_ephemeris_files
()
self
.
tstart
=
int
(
tstart
)
self
.
data_
duration
=
int
(
data_
duration
)
self
.
duration
=
int
(
duration
)
if
os
.
path
.
isdir
(
self
.
outdir
)
is
False
:
os
.
makedirs
(
self
.
outdir
)
if
tref
is
None
:
raise
ValueError
(
'
Input `tref` not specified
'
)
self
.
nsfts
=
int
(
np
.
ceil
(
self
.
data_
duration
/
self
.
Tsft
))
self
.
data_
duration
_days
=
self
.
data_
duration
/
86400.
self
.
nsfts
=
int
(
np
.
ceil
(
self
.
duration
/
self
.
Tsft
))
self
.
duration
=
self
.
duration
/
86400.
self
.
calculate_fmin_Band
()
self
.
cosi
=
0
...
...
@@ -412,7 +416,7 @@ class FrequencyModulatedArtifactWriter(Writer):
def
concatenate_sft_files
(
self
):
SFTFilename
=
lalpulsar
.
OfficialSFTFilename
(
self
.
IFO
[
0
],
self
.
IFO
[
1
],
self
.
nsfts
,
self
.
Tsft
,
int
(
self
.
tstart
),
int
(
self
.
data_
duration
),
self
.
label
)
int
(
self
.
duration
),
self
.
label
)
# If the file already exists, simply remove it for now (no caching
# implemented)
...
...
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