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

error handling using metadata with create #201

Closed
lars-petter-hauge opened this issue Jan 3, 2018 · 1 comment
Closed

error handling using metadata with create #201

lars-petter-hauge opened this issue Jan 3, 2018 · 1 comment

Comments

@lars-petter-hauge
Copy link

lars-petter-hauge commented Jan 3, 2018

Improve error handling/message when combining segyio.tools.metadata with segyio.create

spec = segyio.tools.metadata('src_file.segy')
segyio.create('new_file.segy', spec)
new_file = segyio.open('new_file.segy')

traceback:

     78     try:
---> 79         metrics = segyio._segyio.init_metrics(f.xfd, f.bin.buf)
     80 
     81         f._tr0 = metrics['trace0']

RuntimeError: Input arguments are invalid.
@jokva
Copy link

jokva commented Jan 4, 2018

#206 addresses this by improving the error message. The failure itself is catastrophic and cannot be recovered from.

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

2 participants