[segyio] 93/376: Reshape the make-file.py line
Jørgen Kvalsvik
jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:13 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 40383df613aea247254523a1b2d73cd6d45aceb0
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date: Thu Nov 3 12:46:55 2016 +0100
Reshape the make-file.py line
This way it matches the expected input, saving some work.
---
examples/make-file.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/examples/make-file.py b/examples/make-file.py
index 451de8f..d76e10b 100644
--- a/examples/make-file.py
+++ b/examples/make-file.py
@@ -37,6 +37,7 @@ def main():
# one inline is N traces concatenated. We fill in the xline number
line = np.concatenate([trace + (xl / 100.0) for xl in spec.xlines])
+ line = line.reshape( (len(spec.xlines), spec.samples) )
# write the line itself to the file
# write the inline number in all this line's headers
--
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