We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cacf254 commit 8d6b9ddCopy full SHA for 8d6b9dd
minke/injection.py
@@ -63,14 +63,16 @@ def make_injection(
63
injection = data + waveform.project(detector)
64
injection.channel = channel_n
65
66
+ duration = injection.times[-1] - injection.times[0]
67
+
68
print("length of injection", len(injection.data))
- print("duration of injection", (injection.times[-1] - injection.times[0]))
69
+ print("duration of injection", (duration))
70
71
if psdfile:
72
# Write the PSD file to an ascii file
73
filename = f"{detector.abbreviation}_{psdfile}.dat"
74
psd_model.to_file(filename, upper_frequency=sample_rate/2,
- lower_frequency=0, df=1/sample_rate)
75
+ lower_frequency=0, df=1./duration)
76
77
78
if framefile:
0 commit comments