Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in processing traces with sampling_rate 0 (e.g. log files) #90

Open
megies opened this issue Aug 23, 2018 · 0 comments
Open

Bug in processing traces with sampling_rate 0 (e.g. log files) #90

megies opened this issue Aug 23, 2018 · 0 comments
Labels

Comments

@megies
Copy link
Collaborator

megies commented Aug 23, 2018

I think this is a bug:

if any(tr.stats.sampling_rate == 0 for tr in stream):
starttime = min(tr.stats.starttime for tr in stream)
endtime = max(tr.stats.endtime for tr in stream)
if starttime == endtime:
starttime += 0.001

I guess what was intended was to increment endtime instead. Currently, such files can not be indexed showing the following error (even though the value of indexing such files is extremely doubtful, see #89):

[2018-07-23 11:48:01,313] DEBUG: Error indexing '/local_home/jane/archive/2018/BW/MSBB/LOG.L/BW.MSBB..LOG.L.2018.101': '<class 'django.db.utils.DataError'>' - range lower bound must be less than or equal to range upper bound
@megies megies added the bug label Aug 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant