From 56a6e1d6cb385a0d510c73b7b597e70c967c7a08 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sun, 30 May 2021 09:16:18 +0200 Subject: [PATCH] Remove default argument --- examples/show_sensitivity.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/show_sensitivity.py b/examples/show_sensitivity.py index a245ba7..a4e8e24 100755 --- a/examples/show_sensitivity.py +++ b/examples/show_sensitivity.py @@ -242,13 +242,9 @@ def show_sensitivity(): # Extract script parameters from options plotfile = options[0]['value'] - if len(args) > 0: - filename = args[0] - else: - filename = 'sensitivity.dat' # Read sensitivity data - sensitivity = read_sensitivity(filename) + sensitivity = read_sensitivity(args[0]) # Plot sensitivity data plot_sensitivity(sensitivity, filename, plotfile) -- libgit2 0.21.4