Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
PORTER Edward
GWHMC
Commits
c7c0f980
Commit
c7c0f980
authored
Feb 09, 2021
by
Marc Arene
Browse files
start_time and duration for 64sec
parent
62b55520
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Codes/set_injection_parameters.py
Codes/set_injection_parameters.py
+4
-4
No files found.
Codes/set_injection_parameters.py
View file @
c7c0f980
...
...
@@ -223,14 +223,14 @@ def compute_extended_analysis_dict(mass_1, mass_2, geocent_time, chirp_mass, **a
sampling_frequency
=
2
*
maximum_frequency_ifo
# duration = 64
duration
=
int
(
tc_3p5PN
)
+
1
+
t_end_minus_tc
# formula for 59 sec
#
duration = next_power_of_two(tc_3p5PN + t_end_minus_tc) # formula for 64 sec
#
duration = int(tc_3p5PN) + 1 + t_end_minus_tc # formula for 59 sec
duration
=
next_power_of_two
(
tc_3p5PN
+
t_end_minus_tc
)
# formula for 64 sec
# Use an integer because frame files have an integer start_time
# hence when extracting a subpart of it, the index will be exact
#
start_time = geocent_time + t_end_minus_tc - duration # new formula which should be used
start_time
=
geocent_time
-
tc_3p5PN
# formula used for reruns of chap 8
start_time
=
geocent_time
+
t_end_minus_tc
-
duration
# new formula which should be used
#
start_time = geocent_time - tc_3p5PN # formula used for reruns of chap 8
# start_time = int(geocent_time - tc_3p5PN)
# if duration is None:
# duration = int(geocent_time - start_time) + 1 + 2
...
...
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