Skip to content

Commit

Permalink
fix json serializable unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobEliasWagner committed Jan 19, 2024
1 parent f0919ad commit 3fe2629
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def serialize(self) -> dict:
Dictionary containing the information of this class and its properties.
"""
des_dict = dataclasses.asdict(self)
des_dict["unique_id"] = str(self.unique_id)

for key, value in des_dict.items():
if isinstance(value, np.ndarray):
Expand Down

0 comments on commit 3fe2629

Please sign in to comment.