def main(): # initialize testing framework test = testing_framework() # build the models build_models() # run the test models for idx, dir in enumerate(exdirs): sim = Simulation(dir, require_failure=require_failure[idx]) test.run_mf6(sim) return
def main(): # initialize testing framework test = testing_framework() # build the models build_models() # run the test models for dir in exdirs: sim = Simulation(dir, exe_dict=replace_exe, exfunc=eval_wcomp) test.run_mf6(sim) return
def test_mf6model(idx, exdir): # initialize testing framework test = testing_framework() # build the model test.build_mf6_models(build_model, idx, exdir) # run the test models test.run_mf6(Simulation( exdir, exfunc=eval_npointdepth, idxsim=idx, ))
def main(): # initialize testing framework test = testing_framework() # build the models build_models() # run the test models for dir in exdirs: sim = Simulation(dir) test.run_mf6(sim) return
def main(): # initialize testing framework test = testing_framework() # build the models build_models() # run the test models for idx, dir in enumerate(exdirs): sim = Simulation(dir, idxsim=idx, bmifunc=bmifunc) test.run_mf6(sim) return
def main(): # initialize testing framework test = testing_framework() # build the models build_models() # run the test models for idx, dir in enumerate(exdirs): sim = Simulation(dir, exfunc=eval_sub, exe_dict=replace_exe, idxsim=idx) test.run_mf6(sim) return
def main(): # initialize testing framework test = testing_framework() # run the test model for idx, dir in enumerate(exdirs): test.build_mf6_models(build_model, idx, dir) sim = Simulation(dir, exfunc=eval_comp, exe_dict=replace_exe, htol=htol, idxsim=idx) test.run_mf6(sim)
def main(): # initialize testing framework test = testing_framework() # build the models sim = build_models() # write model input sim.write_simulation() # attempt to run model, should fail sim.run_simulation() # ensure that the error msg is contained in the mfsim.lst file f = open(os.path.join(exdirs[0], "mfsim.lst"), "r") lines = f.readlines() error_count = 0 expected_msg = False for line in lines: if "ID2 (iconn) is missing" in line: expected_msg = True error_count += 1 assert error_count == 1, ("error count = " + str(error_count) + ", but should equal 1") # fix the error and attempt to rerun model orig_fl = os.path.join(exdirs[0], ex[0] + ".lak.obs") new_fl = os.path.join(exdirs[0], ex[0] + ".lak.obs.new") sr = open(orig_fl, "r") sw = open(new_fl, "w") lines = sr.readlines() error_free_line = " lak1 lak 1 1\n" for line in lines: if " lak " in line: sw.write(error_free_line) else: sw.write(line) sr.close() sw.close() # delete original and replace with corrected lab obs input os.remove(orig_fl) os.rename(new_fl, orig_fl) # rerun the model, should be no errors sim.run_simulation() return
def main(): # initialize testing framework test = testing_framework() # run the test model for idx, exdir in enumerate(exdirs): test.build_mf6_models(build_model, idx, exdir) sim = Simulation( exdir, exfunc=eval_sub, idxsim=idx, mf6_regression=True, ) test.run_mf6(sim)
def test_mf6model(idx, exdir): # initialize testing framework test = testing_framework() # run the test model test.build_mf6_models(build_model, idx, exdir) test.run_mf6( Simulation( exdir, exfunc=eval_sub, idxsim=idx, mf6_regression=True, ))
def test_mf6model(idx, dir): # determine if running on CI infrastructure is_CI = running_on_CI() # initialize testing framework test = testing_framework() # build the models test.build_mf6_models_legacy(build_model, idx, dir) # run the test model if is_CI and not continuous_integration[idx]: return test.run_mf6(Simulation(dir, require_failure=require_failure[idx]))
def main(): # initialize testing framework test = testing_framework() # build the models for idx, ws in enumerate(exdirs): build_models(idx, ws) # run the test models for idx, ws in enumerate(exdirs): sim = Simulation(ws, exfunc=eval_transport, idxsim=idx) test.run_mf6(sim) return
def main(): # initialize testing framework test = testing_framework() for idx, exdir in enumerate(exdirs): test.build_mf6_models(build_model, idx, exdir) sim = Simulation( exdir, exfunc=check_simulation_output, idxsim=idx, ) test.run_mf6(sim) return
def main(): # initialize testing framework test = testing_framework() # run the test model for dir in exdirs: test.build_mf6_models(build_model, idx, dir) sim = Simulation( dir, mf6_regression=True, ) test.run_mf6(sim) return
def test_mf6model(idx, exdir): # initialize testing framework test = testing_framework() # build the model test.build_mf6_models(build_model, idx, exdir) # replace quotes replace_quotes(idx, exdir) # run the test model test.run_mf6(Simulation( exdir, idxsim=idx, ))
def test_mf6model(idx, dir): # determine if running on CI infrastructure is_CI = running_on_CI() # initialize testing framework test = testing_framework() # build the models test.build_mf6_models(build_model, idx, dir) if is_CI and not continuous_integration[idx]: return # run the test model test.run_mf6(Simulation(dir, mf6_regression=True))
def main(): # initialize testing framework test = testing_framework() # build the models build_and_run_simulations() # Check scenario output # evaluate list file output to ensure total flows are similar # no matter what the mvr connection setup is (i.e., simulation-level # mvr vs gwf-level mvr) or what the relative fraction between the # different level mvrs is. check_simulation_output() return
def main(): # initialize testing framework test = testing_framework() # run the test models for idx, exdir in enumerate(exdirs): test.build_mf6_models(build_model, idx, exdir) sim = Simulation( exdir, exfunc=eval_npointq, idxsim=idx, ) test.run_mf6(sim) return
def main(): # initialize testing framework test = testing_framework() # build and run the test model for idx, exdir in enumerate(exdirs): test.build_mf6_models(build_model, idx, exdir) sim = Simulation( exdir, idxsim=idx, exfunc=eval_obs, ) replace_quotes(idx, exdir) test.run_mf6(sim) return
def test_mf6model(idx, dir): # initialize testing framework test = testing_framework() # build the models test.build_mf6_models(build_model, idx, dir) # run the test model test.run_mf6( Simulation( dir, idxsim=idx, mf6_regression=True, cmp_verbose=False, make_comparison=set_make_comparison(), ))
def main(): # initialize testing framework test = testing_framework() # run the test model for idx, on_dir in enumerate(exdirs): test.build_mf6_models(build_model, idx, dir) sim = Simulation( on_dir, idxsim=idx, mf6_regression=True, cmp_verbose=True, make_comparison=set_make_comparison(), ) test.run_mf6(sim) return
def main(): # initialize testing framework test = testing_framework() # build the models # run the test model for idx, dir in enumerate(exdirs): test.build_mf6_models(build_model, idx, dir) sim = Simulation( dir, exfunc=eval_comp, mf6_regression=True, htol=htol[idx], ) test.run_mf6(sim) return
def test_mf6model(): # determine if running on Travis is_travis = 'TRAVIS' in os.environ # initialize testing framework test = testing_framework() # build the models build_models() # run the test models for idx, dir in enumerate(exdirs): if is_travis and not travis[idx]: continue yield test.run_mf6, Simulation(dir, require_failure=require_failure[idx]) return
def main(): # initialize testing framework test = testing_framework() # build the models # run the test model for dir in exdirs: test.build_mf6_models(build_model, idx, dir) sim = Simulation( dir, exe_dict=replace_exe, exfunc=eval_comp, htol=htol[idx], mf6_regression=True, ) test.run_mf6(sim) return
def test_mf6model(idx, dir): # determine if running on CI infrastructure is_CI = running_on_CI() r_exe = None if not is_CI: if replace_exe is not None: r_exe = replace_exe # initialize testing framework test = testing_framework() # build the models test.build_mf6_models(build_model, idx, dir) # run the test model if is_CI and not continuous_integration[idx]: return test.run_mf6(Simulation(dir, exfunc=eval_sub, exe_dict=r_exe, idxsim=idx))
def test_mf6model(): # determine if running on Travis or GitHub actions is_CI = running_on_CI() # initialize testing framework test = testing_framework() # build the models build_models() # run the test models for idx, dir in enumerate(exdirs): if is_CI and not continuous_integration[idx]: continue yield test.run_mf6, Simulation(dir, require_failure=require_failure[idx]) return
def test_mf6model(): # initialize testing framework test = testing_framework() # build the models build_models() # run the test models for idx, on_dir in enumerate(exdirs): yield test.run_mf6, Simulation( on_dir, idxsim=idx, mf6_regression=True, cmp_verbose=False, make_comparison=set_make_comparison(), ) return
def main(): # initialize testing framework test = testing_framework() # build the models # run the test model for idx, dir in enumerate(exdirs): test.build_mf6_models_legacy(build_model, idx, dir) sim = Simulation( dir, exfunc=eval_zb6, exe_dict=replace_exe, htol=htol[idx], idxsim=idx, ) test.run_mf6(sim) return
def main(): # initialize testing framework test = testing_framework() # build the models build_models() # run the test models for idx, dir in enumerate(exdirs): sim = Simulation( dir, exfunc=eval_comp, exe_dict=replace_exe, htol=htol[idx], idxsim=idx, mf6_regression=True, ) test.run_mf6(sim) return
def main(): include_NWT = False # initialize testing framework test = testing_framework() # build the models mf6, mfnwt = build_models(include_NWT=include_NWT) # run the test models mf6.run_simulation() if include_NWT: mfnwt.run_model() # compare water contents if include_NWT: eval_model(mf6, mfnwt) else: eval_model(mf6, None, include_NWT=include_NWT) return