Skip to content
Snippets Groups Projects
Commit 2a4d71e1 authored by Erin (Josh) Rigler's avatar Erin (Josh) Rigler
Browse files

Fix __create_trace() in StreamConverter_test.py

A "feature" in obspy is that the stats.npts metadata object is not
automatically calculated if a Trace is created by passing in a Stats
object (instead of a simple dictionary). The Trace still contained
the data array, which is probably why this issue wasn't discovered
sooner, but something as simple as trace.times() is broken if npts
is not specified. It's amazing this wasn't discovered sooner, given
how many times traces get "created" throughout geomag-algoriothms.
Probably, we should survey the codebase to make sure this isn't a
problem elsewhere.
parent ecff6d45
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment