[segyio] 135/376: text.__str__

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:21 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 8aa57ebf071b07d7b25a22ede39d834f4cd4020c
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date:   Tue Nov 22 10:01:37 2016 +0100

    text.__str__
---
 python/segyio/segy.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/python/segyio/segy.py b/python/segyio/segy.py
index 0f1d3db..7aa2871 100644
--- a/python/segyio/segy.py
+++ b/python/segyio/segy.py
@@ -813,6 +813,9 @@ class SegyFile(object):
             def __repr__(inner):
                 return "Text(external_headers = {})".format(self.ext_headers)
 
+            def __str__(inner):
+                return '\n'.join(map(''.join, zip(*[iter(inner[0])] * 80)))
+
         return TextHeader()
 
     @property

-- 
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