Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #181 and print ph5tostationxml to stdout by default #184

Merged
merged 2 commits into from
Feb 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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