-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "add docstrings with help from copilot", diff eol
This reverts commit 7068ee0.
- Loading branch information
1 parent
7068ee0
commit 14a8a65
Showing
15 changed files
with
1,292 additions
and
1,910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import logging | ||
|
||
from mlfmu.utils.interface import publish_interface_schema | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def main(): | ||
"""Start the publishing process for the mlfmu interface docs, by calling the publish_interface_schema function.""" | ||
logger.info("Start publish-interface-docs.py") | ||
publish_interface_schema() | ||
import logging | ||
|
||
from mlfmu.utils.interface import publish_interface_schema | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def main(): | ||
logger.info("Start publish-interface-docs.py") | ||
publish_interface_schema() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,23 @@ | ||
#include "fmu-uuid.h" | ||
#include "model_definitions.h" | ||
|
||
#include <cppfmu_cs.hpp> | ||
#include <onnxFmu.hpp> | ||
|
||
|
||
/** | ||
* \class {FmuName} | ||
* \brief A class representing an {FmuName} FMU. | ||
* | ||
* This class is derived from the OnnxFmu class and provides functionality specific to the {FmuName} FMU. | ||
*/ | ||
class | ||
{ | ||
FmuName | ||
} : public OnnxFmu {{ | ||
public : | ||
/** | ||
* \brief Constructs a new {FmuName} object. | ||
* | ||
* \param fmuResourceLocation The location of the FMU resource. | ||
*/ | ||
{FmuName}(cppfmu::FMIString fmuResourceLocation) : OnnxFmu(fmuResourceLocation) {} | ||
|
||
private : | ||
// Add private members and functions here | ||
}}; | ||
|
||
/** | ||
* \brief Instantiate a `slave` instance of the FMU. | ||
* | ||
* \param instanceName The name of the FMU instance. | ||
* \param fmuGUID The GUID of the FMU. | ||
* \param fmuResourceLocation The location of the FMU resource. | ||
* \param mimeType The MIME type of the FMU. | ||
* \param timeout The timeout value for the instantiation process. | ||
* \param visible Flag indicating whether the FMU should be visible. | ||
* \param interactive Flag indicating whether the FMU should be interactive. | ||
* \param memory The memory to be used for the FMU instance. | ||
* \param logger The logger to be used for logging messages. | ||
* \returns A unique pointer to the instantiated slave instance. | ||
* | ||
* \throws std::runtime_error if the FMU GUID does not match. | ||
*/ | ||
cppfmu::UniquePtr<cppfmu::SlaveInstance> CppfmuInstantiateSlave( | ||
cppfmu::FMIString /*instanceName*/, cppfmu::FMIString fmuGUID, cppfmu::FMIString fmuResourceLocation, | ||
cppfmu::FMIString /*mimeType*/, cppfmu::FMIReal /*timeout*/, cppfmu::FMIBoolean /*visible*/, | ||
cppfmu::FMIBoolean /*interactive*/, cppfmu::Memory memory, cppfmu::Logger /*logger*/) | ||
{ | ||
{ | ||
if (std::strcmp(fmuGUID, FMU_UUID) != 0) { | ||
{ | ||
throw std::runtime_error("FMU GUID mismatch"); | ||
} | ||
} | ||
return cppfmu::AllocateUnique<{FmuName}>(memory, fmuResourceLocation); | ||
} | ||
} | ||
#include "fmu-uuid.h" | ||
#include "model_definitions.h" | ||
|
||
#include <cppfmu_cs.hpp> | ||
#include <onnxFmu.hpp> | ||
|
||
|
||
class {FmuName} : public OnnxFmu {{ | ||
public : | ||
{FmuName}(cppfmu::FMIString fmuResourceLocation) : OnnxFmu(fmuResourceLocation) {{}} private : | ||
}}; | ||
|
||
|
||
cppfmu::UniquePtr<cppfmu::SlaveInstance> CppfmuInstantiateSlave( | ||
cppfmu::FMIString /*instanceName*/, cppfmu::FMIString fmuGUID, cppfmu::FMIString fmuResourceLocation, | ||
cppfmu::FMIString /*mimeType*/, cppfmu::FMIReal /*timeout*/, cppfmu::FMIBoolean /*visible*/, | ||
cppfmu::FMIBoolean /*interactive*/, cppfmu::Memory memory, cppfmu::Logger /*logger*/) | ||
{{ | ||
if (std::strcmp(fmuGUID, FMU_UUID) != 0) {{ | ||
throw std::runtime_error("FMU GUID mismatch"); | ||
}} | ||
return cppfmu::AllocateUnique<{FmuName}>(memory, fmuResourceLocation); | ||
}} |
Oops, something went wrong.