Skip to content

Commit

Permalink
added setter decorator for pdbx_release_status
Browse files Browse the repository at this point in the history
  • Loading branch information
“roshan” committed Sep 12, 2023
2 parents d27fa27 + ad52113 commit 5164421
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pdbeccdutils/core/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ def id(self) -> str:

@id.setter
def id(self, value):
"""Set mapping for this component obtained with a different mean
but internal use of UniChem.
"""Set id of the component.
Args:
list[tuple[str]]: UniChem mappings
value: Id of the component to be used
"""
self._cif_properties.id = value

Expand Down Expand Up @@ -146,6 +145,15 @@ def pdbx_release_status(self) -> ReleaseStatus:
"""
return self._cif_properties.pdbx_release_status

@pdbx_release_status.setter
def pdbx_release_status(self, value: ReleaseStatus):
"""Set the release_status of component
Args:
value: ReleaseStatus object
"""
self._cif_properties.pdbx_release_status = value

@property
def modified_date(self) -> date:
"""Supply the pdbx_modified_date for the PDB-CCD
Expand Down

0 comments on commit 5164421

Please sign in to comment.