Skip to content

Commit

Permalink
Pop activity mask_uuids (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamuzakki authored Nov 26, 2024
1 parent bfd2668 commit e1eaa07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cplus_core/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ def from_dict(cls, activity_dict: typing.Dict):
del pathway["carbon_uuids"]
pathways.append(NcsPathway(**pathway))
activity_dict["pathways"] = pathways
# delete mask_uuids using pop
activity_dict.pop("mask_uuids", None)
return Activity(**activity_dict)

def __post_init__(self):
Expand Down

0 comments on commit e1eaa07

Please sign in to comment.