From: Christian Heller Date: Mon, 26 Aug 2024 04:40:02 +0000 (+0200) Subject: Minor parsing corrections. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/add_free?a=commitdiff_plain;h=1e1b56afe4204286f8772820cb9af9c7d44479ca;p=stable_plom Minor parsing corrections. --- diff --git a/stable.py b/stable.py index 64ee704..e601f00 100755 --- a/stable.py +++ b/stable.py @@ -65,7 +65,7 @@ def parse_args(): temp_gen_paramses = [None] if parsed_args.defaults_from_stdin: temp_gen_paramses = [] - for line in stdin.readlines(): + for line in [l for l in stdin.readlines() if len(l.rstrip())]: temp_gen_paramses += [GenParams.from_str(line)] parsed_args.models = [] parsed_args.gen_paramses = []