def tpl_ins_test(): import os from pyemu import Pst,pst_utils # creation functionality dir = os.path.join("..","..","verification","henry","misc") files = os.listdir(dir) tpl_files,ins_files = [],[] for f in files: if f.lower().endswith(".tpl") and "coarse" not in f: tpl_files.append(os.path.join(dir,f)) if f.lower().endswith(".ins"): ins_files.append(os.path.join(dir,f)) out_files = [f.replace(".ins",".junk") for f in ins_files] in_files = [f.replace(".tpl",".junk") for f in tpl_files] pst_utils.pst_from_io_files(tpl_files, in_files, ins_files, out_files, pst_filename=os.path.join("pst","test.pst")) return
def tpl_ins_test(): import os from pyemu import Pst, pst_utils # creation functionality dir = os.path.join("..", "verification", "henry", "misc") files = os.listdir(dir) tpl_files, ins_files = [], [] for f in files: if f.lower().endswith(".tpl") and "coarse" not in f: tpl_files.append(os.path.join(dir, f)) if f.lower().endswith(".ins"): ins_files.append(os.path.join(dir, f)) out_files = [f.replace(".ins", ".junk") for f in ins_files] in_files = [f.replace(".tpl", ".junk") for f in tpl_files] pst_utils.pst_from_io_files(tpl_files, in_files, ins_files, out_files, pst_filename=os.path.join("temp", "test.pst")) return
def from_io_with_inschek_test(): import os from pyemu import Pst, pst_utils # creation functionality dir = os.path.join("..", "..", "verification", "10par_xsec", "template_mac") pst = Pst(os.path.join(dir, "pest.pst")) tpl_files = [os.path.join(dir, f) for f in pst.template_files] out_files = [os.path.join(dir, f) for f in pst.output_files] ins_files = [os.path.join(dir, f) for f in pst.instruction_files] in_files = [os.path.join(dir, f) for f in pst.input_files] new_pst = pst_utils.pst_from_io_files(tpl_files, in_files, ins_files, out_files, pst_filename=os.path.join( "pst", "test.pst")) print(new_pst.observation_data) return