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
f6b14869
Commit
f6b14869
authored
Jan 30, 2017
by
Gregory Ashton
Browse files
Fixes errors in dtglitch handling
parent
0cacb374
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/core.py
View file @
f6b14869
...
@@ -706,10 +706,10 @@ class Writer(BaseSearchClass):
...
@@ -706,10 +706,10 @@ class Writer(BaseSearchClass):
self
.
minStartTime
=
self
.
tstart
self
.
minStartTime
=
self
.
tstart
if
self
.
maxStartTime
is
None
:
if
self
.
maxStartTime
is
None
:
self
.
maxStartTime
=
self
.
tend
self
.
maxStartTime
=
self
.
tend
if
self
.
dtglitch
is
None
or
all
(
self
.
dtglitch
==
self
.
duration
)
:
if
self
.
dtglitch
is
None
or
self
.
dtglitch
==
self
.
duration
:
self
.
tbounds
=
[
self
.
tstart
,
self
.
tend
]
self
.
tbounds
=
[
self
.
tstart
,
self
.
tend
]
elif
np
.
size
(
self
.
dtglitch
)
==
1
:
elif
np
.
size
(
self
.
dtglitch
)
==
1
:
self
.
dtglitch
=
np
.
array
(
dtglitch
)
self
.
dtglitch
=
np
.
array
(
[
dtglitch
]
)
self
.
tbounds
=
np
.
concatenate
((
self
.
tbounds
=
np
.
concatenate
((
[
self
.
tstart
],
self
.
tstart
+
self
.
dtglitch
,
[
self
.
tend
]))
[
self
.
tstart
],
self
.
tstart
+
self
.
dtglitch
,
[
self
.
tend
]))
else
:
else
:
...
...
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