def test_pbs_file(self): htc = HTCFile(self.testfilepath + "../simulation_setup/DTU10MWRef6.0/htc/DTU_10MW_RWT.htc") assert os.path.relpath(htc.modelpath, self.testfilepath) == os.path.relpath( "../simulation_setup/DTU10MWRef6.0/") from wetb.hawc2.hawc2_pbs_file import JESS_WINE32_HAWC2MB htc.pbs_file(r"R:\HAWC2_tests\v12.6_mmpe3\hawc2\win32", JESS_WINE32_HAWC2MB)
def test_pbs_file_inout(self): htc = HTCFile(self.testfilepath + "../simulation_setup/DTU10MWRef6.0_IOS/input/htc/DTU_10MW_RWT.htc") assert os.path.relpath(htc.modelpath, self.testfilepath) == os.path.relpath( "../simulation_setup/DTU10MWRef6.0_IOS/input") from wetb.hawc2.hawc2_pbs_file import JESS_WINE32_HAWC2MB print(htc.pbs_file(r"R:\HAWC2_tests\v12.6_mmpe3\hawc2\win32", JESS_WINE32_HAWC2MB, input_files=["./input/*"], output_files=['./output/*']))