From cabe8d71e19c1d809a647125492c358396b25f9e Mon Sep 17 00:00:00 2001 From: VelizarVESSELINOV Date: Sat, 19 Jul 2014 10:04:35 -0700 Subject: [PATCH] Revision mismatch during BPS computation --- segypy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/segypy.py b/segypy.py index 6b8a3ad..c20fb3a 100644 --- a/segypy.py +++ b/segypy.py @@ -448,6 +448,9 @@ def read_binary_value(f, index, ctype='l', endian='>', number=1): def getBytePerSample(SH): revision = SH["SegyFormatRevisionNumber"] + if revision == 100: + revision = SEGY_REVISION_1 + dsf = SH["DataSampleFormat"] try: # block added by A Squelch