[segyio] 97/376: Fixed depth slice shape

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

jokva-guest pushed a commit to branch debian
in repository segyio.

commit 28ba06ed010d5dc06d0c7a41d54de89a65164e59
Author: jeanpaul <jpb at prador.net>
Date:   Sat Nov 5 10:42:17 2016 +0100

    Fixed depth slice shape
---
 python/segyio/segy.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/segyio/segy.py b/python/segyio/segy.py
index a16ea63..3b553ef 100644
--- a/python/segyio/segy.py
+++ b/python/segyio/segy.py
@@ -513,9 +513,9 @@ class SegyFile(object):
         xl_len = self._xline_length
 
         if self.sorting == TraceSortingFormat.CROSSLINE_SORTING:
-            shape = (xl_len, il_len)
-        elif self.sorting == TraceSortingFormat.INLINE_SORTING:
             shape = (il_len, xl_len)
+        elif self.sorting == TraceSortingFormat.INLINE_SORTING:
+            shape = (xl_len, il_len)
         else:
             raise RuntimeError("Unexpected sorting type")
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git



More information about the debian-science-commits mailing list