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

Incorrect channel information raise a exception #22

Closed
seisman opened this issue Aug 23, 2019 · 0 comments
Closed

Incorrect channel information raise a exception #22

seisman opened this issue Aug 23, 2019 · 0 comments

Comments

@seisman
Copy link
Owner

seisman commented Aug 23, 2019

It seems Hinet may make some mistakes and give 0.70-10 in the channel table, resulting in following exceptions.

win32.extract_sac(data, ctable, suffix="sac", outdir=os.path.join(newfile,"SAC"))
  File "/usr/local/lib/python3.5/dist-packages/HinetPy/win32.py ", line 123, in extract_sac
    channels = _get_channels(ctable)
  File "/usr/local/lib/python3.5/dist-packages/HinetPy/win32.py ", line 248, in _get_channels
    damping=float(items[10]),
ValueError: could not convert string to float: '0.70-10'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant