Skip to content

Commit

Permalink
Fixed typo in python interface
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Mar 12, 2024
1 parent 1b9c7cc commit 4ea5a91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions binding/python3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


# This is a dummy class that is used as an interface for the group of the parameters
class GroupParameter:
class _GroupParameter:
def __init__(self, data):
self.__dict__ = data

Expand Down Expand Up @@ -223,7 +223,7 @@ def __init__(self, swig_param):
self._storage[group_name]["__METADATA__"]["IS_LOCKED"] = group.isLocked()

# Add easy accessor to the group
setattr(self, group_name, GroupParameter(self._storage[group_name]))
setattr(self, group_name, _GroupParameter(self._storage[group_name]))

for parameter in group.parameters():
self.add_parameter(group_name, parameter)
Expand Down Expand Up @@ -367,7 +367,7 @@ def add_parameter(

def add_event(
self,
time: (list, tuple),
time: list | tuple,
context: str = "",
label: str = "",
description: str = "",
Expand Down Expand Up @@ -594,7 +594,7 @@ def write(self, path: str, *, first_frame_as_zero: bool = False):
for group in groups:
# Write the metadata of the group
if not new_c3d.parameters().isGroup(group):
new_c3d.parameters().group(ezc3d.GroupParameter(group))
new_c3d.parameters().group(ezc3d.Group(group))
new_c3d.parameters().group(group).description(groups[group]["__METADATA__"]["DESCRIPTION"])
if groups[group]["__METADATA__"]["IS_LOCKED"]:
new_c3d.parameters().group(group).lock()
Expand Down

0 comments on commit 4ea5a91

Please sign in to comment.