segypy
segypy copied to clipboard
I can't write segy file
I'd like to ask your help for a problem I'm encountering about segypy.writeSegy fonction. I am a new python user and i am working on segy file using segypy.
I try to write segy file by this instruction: outdata = segypy.writeSegy('outfilename.sgy', Data, STHin=STH, SHin=SH).
But it retourn to me this error:
File "D:\Users\traore\Anaconda3\lib\site-packages\segypy\segypy.py", line 798, in writeSegy SH = getDefaultSegyHeader(ntraces, ns); File "D:\Users\traore\Anaconda3\lib\site-packages\segypy\segypy.py", line 472, in getDefaultSegyHeader if (tmpkey.has_key('def')): AttributeError: 'dict' object has no attribute 'has_key'.
I dont know how to use this function and there is no documentation about its use. can you help me please. Sory for my english.
I am having the same issues. I think 'has_key' was removed from python3 (https://stackoverflow.com/questions/33727149/dict-object-has-no-attribute-has-key) and the segypy package has not yet been updated