# -*- coding: utf-8 -*-## This file is subject to the terms and conditions defined in# file 'LICENSE.txt', which is part of this source code package.#fromMuscat.SimpleimportMesh# import cosapp base classestry:fromcosapp.baseimportSystem,Port,BaseConnectorexceptModuleNotFoundError:# define dummy to be able to parser the clases and build the documentationPort=objectSystem=objectBaseConnector=objectfromMuscat.Helpers.LoggerimportWarningWarning("CoSApp is not installed, Please install CoSApp before using this module")
[docs]classMuscatMeshPort(Port):"""CoSApp port for Muscat Meshes. This port implement a spacial connector to pass only a view of the mesh """
[docs]classCoSAppMuscatReader(System):"""CosApp Muscat Mesh Reader """
[docs]defsetup(self):self.add_inward("file_name",None,dtype=str,desc="file name")self.add_inward("time_to_read",-1,dtype=int,desc="time to read")self.add_output(MuscatMeshPort,"out")