Skip to content

Commit

Permalink
Merge pull request #184 from PIC-IRIS/fix_181
Browse files Browse the repository at this point in the history
Fix #181 and print ph5tostationxml to stdout by default
  • Loading branch information
nick-falco authored Feb 27, 2018
2 parents 1e52956 + bfca5a6 commit 38f0bfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions ph5/clients/ph5tostationxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 38f0bfe

Please sign in to comment.