From 9f090c2381e07cb6b9f35382465589de739b1042 Mon Sep 17 00:00:00 2001 From: Robert Smallshire Date: Thu, 14 May 2015 10:04:19 +0200 Subject: [PATCH] Adds Python 3 shebangs to command-line scripts. --- examples/loadsave.py | 3 +++ examples/report.py | 2 ++ examples/timed_reader.py | 2 ++ examples/timeslice.py | 2 ++ 4 files changed, 9 insertions(+) diff --git a/examples/loadsave.py b/examples/loadsave.py index 0b799f5..b0a3058 100644 --- a/examples/loadsave.py +++ b/examples/loadsave.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """A simple example which loads a SEG Y file and saves it again. Usage: @@ -5,6 +7,7 @@ Usage: loadsave.py """ + from __future__ import print_function import os diff --git a/examples/report.py b/examples/report.py index b0554a6..208d4c7 100644 --- a/examples/report.py +++ b/examples/report.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """Displays a simple report of a SEG Y file. Usage: diff --git a/examples/timed_reader.py b/examples/timed_reader.py index d4e78d9..9b7418d 100644 --- a/examples/timed_reader.py +++ b/examples/timed_reader.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """A simple example which times reading of all traces in a SEG Y file. Usage: diff --git a/examples/timeslice.py b/examples/timeslice.py index b6cbd85..ee7a217 100644 --- a/examples/timeslice.py +++ b/examples/timeslice.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """Extract a timeslice from a 3D seismic volume to a Numpy array. This utility assumes the inline and crossline numbers are evenly spaced.