Commit 56a6e1d6cb385a0d510c73b7b597e70c967c7a08

Authored by Jürgen Knödlseder
1 parent 4a6ca4fc

Remove default argument

Showing 1 changed file with 1 additions and 5 deletions
examples/show_sensitivity.py
@@ -242,13 +242,9 @@ def show_sensitivity(): @@ -242,13 +242,9 @@ def show_sensitivity():
242 242
243 # Extract script parameters from options 243 # Extract script parameters from options
244 plotfile = options[0]['value'] 244 plotfile = options[0]['value']
245 - if len(args) > 0:  
246 - filename = args[0]  
247 - else:  
248 - filename = 'sensitivity.dat'  
249 245
250 # Read sensitivity data 246 # Read sensitivity data
251 - sensitivity = read_sensitivity(filename) 247 + sensitivity = read_sensitivity(args[0])
252 248
253 # Plot sensitivity data 249 # Plot sensitivity data
254 plot_sensitivity(sensitivity, filename, plotfile) 250 plot_sensitivity(sensitivity, filename, plotfile)