Coverage for /opt/obspy/update-docs/src/obspy/obspy/segy/util : 83%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*-
# Import shared libsegy depending on the platform. # create library names # platform specific library name 'libsegy-%s-%s-py%s' % (platform.system(), platform.architecture()[0], ''.join([str(i) for i in platform.python_version_tuple()[:2]])), # fallback for pre-packaged libraries 'libsegy'] # get default file extension for shared objects # initialize library 'lib', lib_name + lib_extension)) except Exception, e: pass else: msg = 'Could not load shared library for obspy.segy.\n\n %s' % (e) raise ImportError(msg)
""" Unpacks a single value. """ # Use special format if necessary. # Unpack according to different lengths. # Update: Seems to be correct. Two's complement integers seem to be # the common way to store integer values. # The unassigned field. Since it is unclear how this field is # encoded it will just be stored as a string. # Should not happen else: raise Exception |