Commit 8724a054 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins

get rid of --dump option in favor of --text

--dump option was not working anyway because of changes to precompIFO (which
hopefully will be going away).  text output now does not do precomp.
parent e7e4b49c
......@@ -74,10 +74,10 @@ group.add_argument('--interactive', '-i', action='store_true',
help="interactive plot with interactive shell")
group.add_argument('--save', '-s',
help="save noise (hdf5) or figure (pdf/png/svg) to file")
group.add_argument('--yaml', '-y', dest='yaml', action='store_true',
help="print specified IFO yaml to stdout and exit")
group.add_argument('--dump', '-d', dest='dump', action='store_true',
help="print precomp'd IFO parameters to stdout and exit")
group.add_argument('--yaml', '-y', action='store_true',
help="print IFO as yaml to stdout and exit")
group.add_argument('--text', '-x', action='store_true',
help="print IFO as text table to stdout and exit")
group.add_argument('--no-plot', '-np', action='store_false', dest='plot',
help="supress plotting")
parser.add_argument('IFO', default=IFO,
......@@ -104,11 +104,9 @@ def main():
title = '{} GWINC Noise Budget'.format(args.IFO)
if args.yaml:
ifo = load_ifo(args.IFO)
print(ifo.to_yaml(), end='')
return
if args.dump:
ifo = precompIFO(ifo)
if args.text:
print(ifo.to_txt(), end='')
return
if args.plot:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment