"""
AssertInputs class is used to assert the inputs of the simulator.
"""
# Modules
# =============================================================================
# Authorship and Credits
# =============================================================================
__author__ = 'Jiaxiang Yi (J.Yi@tudelft.nl), Martin van der Schelling (M.P.vanderSchelling@tudelft.nl)'
__credits__ = ['Martin van der Schelling', 'Jiaxiang Yi']
__status__ = 'Stable'
# =============================================================================
#
# =============================================================================
[docs]def is_mwd_in_folder_info(folder_info: dict) -> None:
assert (
"main_work_directory" in folder_info.keys()
), "main_work_directory should in folder_info dict"
[docs]def is_script_path_in_folder_info(folder_info: dict) -> None:
assert (
"script_path" in folder_info.keys()
), "script_path should in folder_info dict"
[docs]def is_cwd_in_folder_info(folder_info: dict) -> None:
assert (
"current_work_directory" in folder_info.keys()
), "current_work_directory should in folder_info dict"
[docs]def is_sim_path_in_folder_info(folder_info: dict) -> None:
assert (
"sim_path" in folder_info.keys()
), "sim_path should in folder_info dict"
[docs]def is_sim_script_in_folder_info(folder_info: dict) -> None:
assert (
"sim_script" in folder_info.keys()
), "sim_script should in folder_info dict"
[docs]def is_post_path_in_folder_info(folder_info: dict) -> None:
assert (
"post_path" in folder_info.keys()
), "post_path should in folder_info dict"
[docs]def is_post_script_in_folder_info(folder_info: dict) -> None:
assert (
"post_script" in folder_info.keys()
), "post_script should in folder_info dict"
[docs]def is_job_name_in_sim_info(sim_info: dict) -> None:
assert (
"job_name" in sim_info.keys()
), "job_name should in folder_info dict"