Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carl-Johan Haster
bilby_pipe
Commits
6e733890
Commit
6e733890
authored
Jul 05, 2021
by
Gregory Ashton
Browse files
Merge branch 'simone.mozzon/bilby_pipe-fix_create_inj'
parents
94264446
845a0aaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
bilby_pipe/create_injections.py
View file @
6e733890
...
...
@@ -213,7 +213,7 @@ class InjectionCreator(Input):
uncertainty
=
self
.
deltaT
/
2.0
,
)
geocent_times
.
append
(
geocent_time
)
inj_df
[
"geocent
er
_time
s
"
]
=
geocent_times
inj_df
[
"geocent_time"
]
=
geocent_times
return
inj_df
@
staticmethod
...
...
tests/create_injection_test.py
View file @
6e733890
...
...
@@ -130,7 +130,7 @@ class TestCreateInjections(unittest.TestCase):
len
(
df
.
columns
.
values
)
>
1
,
f
"Column names:
{
df
.
columns
.
values
}
"
)
self
.
assertAlmostEqual
(
df
[
"geocent
er
_time
s
"
].
iloc
[
0
]
/
100
,
gps_vals
[
0
]
/
100
,
places
=
1
df
[
"geocent_time"
].
iloc
[
0
]
/
100
,
gps_vals
[
0
]
/
100
,
places
=
1
)
def
test_create_injection_file_json
(
self
):
...
...
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