Example to time header-reading/catalog-building and trace reading.

This commit is contained in:
Robert Smallshire
2015-01-30 20:54:20 +01:00
parent a152672bf5
commit 5322c2a5d2
+2 -1
View File
@@ -14,7 +14,6 @@ import sys
import traceback
from segpy.reader import create_reader
from segpy.writer import write_segy
def read_traces(in_filename):
@@ -39,6 +38,7 @@ def read_traces(in_filename):
print("Time to read traces : {} seconds", time_to_read_traces)
print("Total time : {} seconds", time_to_read_both)
def main(argv=None):
if argv is None:
argv = sys.argv[1:]
@@ -62,5 +62,6 @@ def main(argv=None):
return os.EX_SOFTWARE
return os.EX_OK
if __name__ == '__main__':
sys.exit(main())