[cig-commits] [commit] master: Small changes (2c5f6a4)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Jan 28 22:37:33 PST 2015


Repository : https://github.com/geodynamics/vq

On branch  : master
Link       : https://github.com/geodynamics/vq/compare/4a71dae87966b80bfee7c194773543359a343617...941b3d7e55983967dea392d12aeac9ce3998ca30

>---------------------------------------------------------------

commit 2c5f6a48e1168696cbd885bf1b111c82cf1ad40e
Author: Kasey Schultz <kwschultz at ucdavis.edu>
Date:   Wed Dec 10 08:48:28 2014 -0800

    Small changes


>---------------------------------------------------------------

2c5f6a48e1168696cbd885bf1b111c82cf1ad40e
 examples/pyvq.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/examples/pyvq.py b/examples/pyvq.py
index 103302d..1e1485b 100755
--- a/examples/pyvq.py
+++ b/examples/pyvq.py
@@ -275,7 +275,7 @@ if __name__ == "__main__":
             help="List of model sections to use (all sections used if unspecified).")
 
     # Event plotting arguments
-    parser.add_argument('--plot_freq_mag', required=False,
+    parser.add_argument('--plot_freq_mag', required=False, action='store_true',
             help="Generate frequency magnitude plot.")
     parser.add_argument('--plot_mag_rupt_area', required=False,
             help="Generate magnitude vs rupture area plot.")        
@@ -299,10 +299,7 @@ if __name__ == "__main__":
     args = parser.parse_args()
 
     # Read the event and sweeps files
-    if args.event_file_type == "hdf5":
-        events = Events(args.event_file, args.event_file_type)
-    else:
-        events = Events(args.event_file, args.event_file_type, sweep_file = args.sweep_file)
+    events = Events(args.event_file, args.event_file_type, args.sweep_file)
 
     # Read the geometry model if specified
     if args.model_file:



More information about the CIG-COMMITS mailing list