From f7e1247060b13e5798e69f21db0cbba83d58f9d5 Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Wed, 11 May 2016 12:01:10 +0200 Subject: [PATCH] [fix] make all scripts executable new script for pilot data base reassessmant --- scripts/pylot-noisewindow.py | 0 scripts/pylot-reasses-pilot-db.py | 33 ++++++++++++++++++++++++++++ scripts/pylot-reasses-pilot-event.py | 22 ++++++++++++++----- scripts/pylot-signalwindow.py | 0 scripts/pylot-snr.py | 0 5 files changed, 50 insertions(+), 5 deletions(-) mode change 100644 => 100755 scripts/pylot-noisewindow.py create mode 100755 scripts/pylot-reasses-pilot-db.py mode change 100644 => 100755 scripts/pylot-reasses-pilot-event.py mode change 100644 => 100755 scripts/pylot-signalwindow.py mode change 100644 => 100755 scripts/pylot-snr.py diff --git a/scripts/pylot-noisewindow.py b/scripts/pylot-noisewindow.py old mode 100644 new mode 100755 diff --git a/scripts/pylot-reasses-pilot-db.py b/scripts/pylot-reasses-pilot-db.py new file mode 100755 index 00000000..5bb4441d --- /dev/null +++ b/scripts/pylot-reasses-pilot-db.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import argparse + +from pylot.core.util.version import get_git_version as _getVersionString +from pylot.core.io.phases import reassess_pilot_db + +__version__ = _getVersionString() +__author__ = 'S. Wehling-Benatelli' + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description='reassess old PILOT event data base in terms of consistent ' + 'automatic uncertainty estimation', + epilog='Script written by {author} belonging to PyLoT version' + ' {version}\n'.format(author=__author__, + version=__version__) + ) + + parser.add_argument( + 'dbroot', type=str, help='specifies the root directory (in ' + 'most cases PILOT database folder)' + ) + parser.add_argument( + '--output', '-o', type=str, help='path to the output directory', dest='output' + ) + parser.add_argument( + '--parameterfile', '-p', type=str, help='full path to the parameterfile', dest='parfile' + ) + + args = parser.parse_args() + reassess_pilot_db(args.dbroot, args.output, args.parfile) diff --git a/scripts/pylot-reasses-pilot-event.py b/scripts/pylot-reasses-pilot-event.py old mode 100644 new mode 100755 index 939bf860..1852e680 --- a/scripts/pylot-reasses-pilot-event.py +++ b/scripts/pylot-reasses-pilot-event.py @@ -7,18 +7,30 @@ from pylot.core.util.version import get_git_version as _getVersionString from pylot.core.io.phases import reassess_pilot_event __version__ = _getVersionString() -__author__ = 'sebastianw' +__author__ = 'S. Wehling-Benatelli' if __name__ == '__main__': - parser = argparse.ArgumentParser() + parser = argparse.ArgumentParser( + description='reassess old PILOT event data in terms of consistent ' + 'automatic uncertainty estimation', + epilog='Script written by {author} belonging to PyLoT version' + ' {version}\n'.format(author=__author__, + version=__version__) + ) parser.add_argument( - '--directory', '-d', type=str, help='specifies the root directory (in ' + 'dbroot', type=str, help='specifies the root directory (in ' 'most cases PILOT database folder)' ) parser.add_argument( - '--eventid', '-i', type=str, help='PILOT event identifier' + 'id', type=str, help='PILOT event identifier' + ) + parser.add_argument( + '--output', '-o', type=str, help='path to the output directory', dest='output' + ) + parser.add_argument( + '--parameterfile', '-p', type=str, help='full path to the parameterfile', dest='parfile' ) args = parser.parse_args() - reassess_pilot_event(args.dir, args.id, None) + reassess_pilot_event(args.dbroot, args.id, args.output, args.parfile) diff --git a/scripts/pylot-signalwindow.py b/scripts/pylot-signalwindow.py old mode 100644 new mode 100755 diff --git a/scripts/pylot-snr.py b/scripts/pylot-snr.py old mode 100644 new mode 100755