def fill_report(self): """ Fills the report QTextEdit with data. """ template_text = get_template_text(self.TEMPLATE_PATH) gencase_info = get_executable_info_flag(self._executable_paths.gencase) gencase_features = "\n".join(["<li><b>{}</b>: {}</li>".format(x, gencase_info["Features"][x]) for x in gencase_info["Features"].keys()]) dsph_info = get_executable_info_flag(self._executable_paths.dsphysics) dsph_features = "\n".join(["<li><b>{}</b>: {}</li>".format(x, str(dsph_info["Features"][x]).replace("True", __("Supported")).replace("False", __("Not supported"))) for x in dsph_info["Features"].keys()]) formatter = { "gencase_fullname": gencase_info["FullName"], "gencase_features": gencase_features, "dsph_fullname": dsph_info["FullName"], "dsph_features": dsph_features } template_text = template_text.format(**formatter) self.report_text.setHtml(template_text)
def supports_ddt_fourtakas(self) -> bool: """ Returns whether this package supports Fourtakas DDT or not. """ return bool( get_executable_info_flag( self.dsphysics)["Features"]["DDT_Fourtakas"])
def supports_chrono(self) -> bool: """ Returns whether this package supports CHRONO or not. """ return bool( get_executable_info_flag( self.dsphysics)["Features"]["CHRONO_Coupling"])
def supports_moorings(self) -> bool: """ Returns whether this package supports Moorings + MoorDyn or not. """ return bool( get_executable_info_flag( self.dsphysics)["Features"]["MoorDyn_Coupling"])