Closed bmcfee closed 8 years ago
Note: this PR changes the default behavior of import_lab
on event annotations.
Previously, if there were only two columns on input, then the duration
field was set to 0 as it was assumed to correspond to instantaneous events.
You can still achieve this behavior by setting infer_duration=False
for this kind of input, but when the flag is set to True
(default, to be consistent with interval inputs), duration is computed by the deltas between successive rows. The final event is assumed to have zero duration.
This may cause hiccups in some data set import scripts. However, I couldn't think of a better/more consistent way to parameterize this behavior.
tagging @stefan-balke
Will check asap.
Also tagging @urinieto since it might break some of his import scripts.
Tried it and LGTM!
@urinieto can you take a peek at this and give me your :euro: e-2?
Reviewed 2 of 2 files at r1. Review status: all files reviewed at latest revision, all discussions resolved.
Comments from Reviewable
@urinieto timed out! But note that the salami importer will need to be updated.
fixes #107
This change is