Skip to content

Commit cb3b901

Browse files
committed
fixup! Add python fields tests
1 parent 691fb57 commit cb3b901

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

python/test/segy.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -977,22 +977,22 @@ def test_field_types_write(tmpdir):
977977
orig_binh = f.bin
978978
orig_trh = f.header[0]
979979

980-
with segyio.open(updpath, mode='r+', ignore_geometry=True) as f:
981-
bupd = {
982-
BinField.NrTracesInStream: 18446744073709551615,
983-
BinField.JobID: 2147483647,
984-
BinField.SamplesOriginal: 65535,
985-
BinField.VerticalSum: -32768,
986-
BinField.SEGYRevisionMinor: 255,
987-
BinField.ExtIntervalOriginal: 10.125,
988-
}
989-
990-
tupd = {
991-
TraceField.INLINE_3D: -2147483648,
992-
TraceField.TRACE_SAMPLE_COUNT: 65535,
993-
TraceField.DelayRecordingTime: 32767,
994-
}
980+
bupd = {
981+
BinField.NrTracesInStream: 18446744073709551615,
982+
BinField.JobID: 2147483647,
983+
BinField.SamplesOriginal: 65535,
984+
BinField.VerticalSum: -32768,
985+
BinField.SEGYRevisionMinor: 255,
986+
BinField.ExtIntervalOriginal: 10.125,
987+
}
988+
989+
tupd = {
990+
TraceField.INLINE_3D: -2147483648,
991+
TraceField.TRACE_SAMPLE_COUNT: 65535,
992+
TraceField.DelayRecordingTime: 32767,
993+
}
995994

995+
with segyio.open(updpath, mode='r+', ignore_geometry=True) as f:
996996
f.bin.update(bupd)
997997
f.header[0].update(tupd)
998998
f.flush()

0 commit comments

Comments
 (0)