From 96c2e501fcabd172fb93af6fb416b9c254e37b48 Mon Sep 17 00:00:00 2001 From: Nicholas Falco Date: Tue, 27 Feb 2018 11:10:40 -0800 Subject: [PATCH 1/2] - Bug fix for text format resulting in error. #181 - Print to stdout by default in instead of a file. --- ph5/clients/ph5tostationxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ph5/clients/ph5tostationxml.py b/ph5/clients/ph5tostationxml.py index b5ff3eba..f9f86a03 100755 --- a/ph5/clients/ph5tostationxml.py +++ b/ph5/clients/ph5tostationxml.py @@ -45,7 +45,7 @@ def get_args(): type=str, metavar="reportnum_list") parser.add_argument("-o", "--outfile", action="store", - default="something.xml", type=str, metavar="outfile") + default=sys.stdout, type=str, metavar="outfile") parser.add_argument("-f", "--format", action="store", default="STATIONXML", dest="out_format", @@ -925,7 +925,7 @@ def main(): elif out_format == "SACPZ": inv.write(args.outfile, format="SACPZ") elif out_format == "TEXT": - inv.write(args.outfile, format="STATIONTXT") + inv.write(args.outfile, format="STATIONTXT", level=level) else: sys.stderr.write("Incorrect output format. " "Formats are STATIONXML or KML") From bfca5a61cbc5b5cf250bd5831f7a9aa6a449fc84 Mon Sep 17 00:00:00 2001 From: Derick Hess Date: Tue, 27 Feb 2018 13:12:31 -0700 Subject: [PATCH 2/2] Update CHANGELOG.txt --- CHANGELOG.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5c033dc8..fc4d0efb 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,9 @@ Master: -ph5.utilities.kefedit * Fix bugs caused when loading PH5 experiment without offset tables +-ph5.clients.ph5tostationxml + * Address issue #181 + * print to stdout by default v4.1.1: -ph5.clients.ph5toexml