From 4ad29201dfc111e4975baabb2a8a79aef1e82886 Mon Sep 17 00:00:00 2001 From: Damien Marchal Date: Thu, 9 Jan 2025 11:41:20 +0100 Subject: [PATCH 1/2] Remove the generation of the parameter "hack" for first release. --- scripts/sofaStubgen.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scripts/sofaStubgen.py b/scripts/sofaStubgen.py index 6016501f..a30e8f96 100644 --- a/scripts/sofaStubgen.py +++ b/scripts/sofaStubgen.py @@ -204,18 +204,6 @@ def __init__(self, {constructor_params_typehints}): {class_typehints} - @dataclasses.dataclass - class Parameters: - \"\"\"Parameter for the construction of the {class_name} component\"\"\" - -{params_typehints} - - def to_dict(self): - return dataclasses.asdict(self) - - @staticmethod - def new_parameters() -> Parameters: - return {class_name}.Parameters() """ def documentation_code(class_name): From 48360e669398febdb62964b88e935efbed8f0011 Mon Sep 17 00:00:00 2001 From: Damien Marchal Date: Thu, 9 Jan 2025 11:55:34 +0100 Subject: [PATCH 2/2] [SofaStubgen] Add the handling of the "long long" to python int. --- scripts/sofaStubgen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/sofaStubgen.py b/scripts/sofaStubgen.py index a30e8f96..bc184dd5 100644 --- a/scripts/sofaStubgen.py +++ b/scripts/sofaStubgen.py @@ -31,6 +31,8 @@ def sofa_to_python_typename(name, short=False): "f" : "float", "i" : "int", "I" : "int", + "q" : "int", + "Q" : "int", "L" : "int", "l" : "int", "b" : "int",