Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Service Desk
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
bilby
Commits
7133b36c
Commit
7133b36c
authored
6 years ago
by
Moritz Huebner
Browse files
Options
Downloads
Patches
Plain Diff
Referenced call to tukey window correctly
parent
e8b704af
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
tupak/detector.py
+8
-7
8 additions, 7 deletions
tupak/detector.py
with
8 additions
and
7 deletions
tupak/detector.py
+
8
−
7
View file @
7133b36c
from
__future__
import
division
,
print_function
,
absolute_import
import
numpy
as
np
import
tupak
import
logging
import
os
from
scipy.interpolate
import
interp1d
import
matplotlib.pyplot
as
plt
from
scipy
import
signal
from
gwpy.timeseries
import
TimeSeries
import
numpy
as
np
from
gwpy.signal
import
filter_design
from
scipy
import
signal
from
scipy.interpolate
import
interp1d
import
tupak
from
.
import
utils
...
...
@@ -612,7 +613,7 @@ def get_interferometer_with_open_data(
# Create and save PSDs
NFFT
=
int
(
sampling_frequency
*
T
)
window
=
signal
.
tukey
(
NFFT
,
alpha
=
alpha
)
window
=
signal
.
windows
.
tukey
(
NFFT
,
alpha
=
alpha
)
psd
=
strain_psd
.
psd
(
fftlength
=
T
,
window
=
window
)
psd_file
=
'
{}/{}_PSD_{}_{}.txt
'
.
format
(
outdir
,
name
,
center_time
+
psd_offset
,
psd_duration
)
...
...
@@ -625,7 +626,7 @@ def get_interferometer_with_open_data(
# Apply Tukey window
N
=
len
(
time_series
)
strain
=
strain
*
signal
.
tukey
(
N
,
alpha
=
alpha
)
strain
=
strain
*
signal
.
windows
.
tukey
(
N
,
alpha
=
alpha
)
interferometer
=
get_empty_interferometer
(
name
)
interferometer
.
power_spectral_density
=
PowerSpectralDensity
(
...
...
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