From 28549741a844c9b6d31a0415df862a7920328669 Mon Sep 17 00:00:00 2001 From: Wes Kitlasten Date: Fri, 10 Nov 2023 08:25:21 +1300 Subject: [PATCH] better place for .lower on prefix --- pyemu/utils/pst_from.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyemu/utils/pst_from.py b/pyemu/utils/pst_from.py index f58ca140..80763d26 100644 --- a/pyemu/utils/pst_from.py +++ b/pyemu/utils/pst_from.py @@ -1566,7 +1566,7 @@ def add_observations( if len(nprefix) == 0: nprefix = filenames[0] - nprefix = "oname:{0}_otype:lst".format(nprefix) + nprefix = "oname:{0}_otype:lst".format(nprefix.lower()) df_ins = pyemu.pst_utils.csv_to_ins_file( df.set_index("idx_str"), ins_filename=self.new_d / insfile, @@ -1575,7 +1575,7 @@ def add_observations( marker="~", includes_header=includes_header, includes_index=False, - prefix=nprefix.lower(), + prefix=nprefix, head_lines_len=lenhead, sep=sep, gpname=obsgp,