Skip to content

Commit

Permalink
write byte order code in rev2+
Browse files Browse the repository at this point in the history
  • Loading branch information
Altay Sansal committed Nov 20, 2024
1 parent 97f4e4d commit 4b54adb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/segy/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from segy.schema.format import ScalarType
from segy.schema.segy import SegyStandard
from segy.standards.codes import DataSampleFormatCode
from segy.standards.codes import SegyEndianCode
from segy.transforms import TransformFactory
from segy.transforms import TransformPipeline

Expand Down Expand Up @@ -164,6 +165,7 @@ def create_binary_header(self, update: dict[str, Any] | None = None) -> bytes:
minor = int(minor * 10) # fraction to int
bin_header["segy_revision_major"] = major
bin_header["segy_revision_minor"] = minor
bin_header["byte_order"] = SegyEndianCode.NATIVE

bin_header["sample_interval"] = self.sample_interval
bin_header["orig_sample_interval"] = self.sample_interval
Expand Down

0 comments on commit 4b54adb

Please sign in to comment.