mirror of
https://github.com/wassname/segpy.git
synced 2026-06-27 18:44:26 +08:00
Example to time header-reading/catalog-building and trace reading.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user