Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
6d3e5200
Commit
6d3e5200
authored
Oct 26, 2016
by
Gregory Ashton
Browse files
Fix issues when nglitch = 1 in plot cumulative
parent
4153cc00
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
6d3e5200
...
...
@@ -1567,12 +1567,21 @@ _ sftfilepath: str
if
key
not
in
d
:
d
[
key
]
=
val
delta_F0s
=
[
d
[
'delta_F0_{}'
.
format
(
i
)]
for
i
in
range
(
self
.
nglitch
)]
delta_F0s
.
insert
(
self
.
theta0_idx
,
0
)
delta_F0s
=
np
.
array
(
delta_F0s
)
delta_F0s
[:
self
.
theta0_idx
]
*=
-
1
if
self
.
nglitch
>
1
:
delta_F0s
=
[
d
[
'delta_F0_{}'
.
format
(
i
)]
for
i
in
range
(
self
.
nglitch
)]
delta_F0s
.
insert
(
self
.
theta0_idx
,
0
)
delta_F0s
=
np
.
array
(
delta_F0s
)
delta_F0s
[:
self
.
theta0_idx
]
*=
-
1
tglitches
=
[
d
[
'tglitch_{}'
.
format
(
i
)]
for
i
in
range
(
self
.
nglitch
)]
elif
self
.
nglitch
==
1
:
delta_F0s
=
[
d
[
'delta_F0'
]]
delta_F0s
.
insert
(
self
.
theta0_idx
,
0
)
delta_F0s
=
np
.
array
(
delta_F0s
)
delta_F0s
[:
self
.
theta0_idx
]
*=
-
1
tglitches
=
[
d
[
'tglitch'
]]
tglitches
=
[
d
[
'tglitch_{}'
.
format
(
i
)]
for
i
in
range
(
self
.
nglitch
)]
tbounderies
=
[
self
.
tstart
]
+
tglitches
+
[
self
.
tend
]
for
j
in
range
(
self
.
nglitch
+
1
):
...
...
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