diff --git a/wetb/hawc2/hawc2_simulation.py b/wetb/hawc2/hawc2_simulation.py index a57c6ae5ee00a76eb56ff031452cbeb896961f8d..f26ac6971691d1fd3f3da7a3f76b107c1776beb3 100644 --- a/wetb/hawc2/hawc2_simulation.py +++ b/wetb/hawc2/hawc2_simulation.py @@ -641,6 +641,12 @@ if __name__ == '__main__': h2_sim.add_accompanying_file(accompanying_file_list) # add the dll input h2_sim.add_dll_input_file_object(dll_key='hawc2_input.dll.type2_dll_dtu_we_controller', dll_input_file_name='wpdata', dll_input_file_path=wpdata_path, dll_input_file_object=wpdata_obj) + # print the keys + keys=h2_sim.keys() + for key in keys: + print(key) + # print some data + print(h2_sim['hawc2_input.dll.type2_dll_dtu_we_controller.dll_input_file_objects.wpdata.wind_speed']) # write the input files h2_sim.write_input_files() diff --git a/wetb/hawc2/htc_contents.py b/wetb/hawc2/htc_contents.py index 2fe7d54a589431892880b6c30cd4d13c53e4ba29..e635619862cd768760d5df1a2c3eac3800b62348 100644 --- a/wetb/hawc2/htc_contents.py +++ b/wetb/hawc2/htc_contents.py @@ -871,7 +871,7 @@ class HTCSingleDllSection(HTCSection): if key=='dll_input_file_objects': return self.dll_input_files elif key.startswith('dll_input_file_objects.'): - keys.split('.') + keys=key.split('.') main_key=keys[1] if not main_key in self.dll_input_files: raise KeyError('The key "%s" is not contained within the input file object dictionary'%(main_key)) diff --git a/wetb/hawc2/tests/test_files/hawc2_simulation/.iea_10_198_rc1_winHawc.htc.swp b/wetb/hawc2/tests/test_files/hawc2_simulation/.iea_10_198_rc1_winHawc.htc.swp deleted file mode 100644 index 548a1c891915a5a8c8d8eea1dcc44f9e403f02c3..0000000000000000000000000000000000000000 Binary files a/wetb/hawc2/tests/test_files/hawc2_simulation/.iea_10_198_rc1_winHawc.htc.swp and /dev/null differ