Skip to content

Commit

Permalink
Added setter methods to pdbx_release_status and modified_date of comp…
Browse files Browse the repository at this point in the history
…onent (#22)

* added setter emthod for pdbx_release_status & modified_date

* linting

* bumped version

---------

Co-authored-by: “roshan” <“roshan@ebi.ac.uk”>
  • Loading branch information
roshkjr and “roshan” authored Sep 15, 2023
1 parent ad52113 commit 0c68115
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pdbeccdutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.2"
__version__ = "0.8.3"
23 changes: 20 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 All @@ -159,6 +167,15 @@ def modified_date(self) -> date:
"""
return self._cif_properties.modified_date

@modified_date.setter
def modified_date(self, value: date):
"""Set pdbx_modified_date for the component
Args:
value: pdbx_modified_date
"""
self._cif_properties.modified_date = value

@property
def descriptors(self) -> List[Descriptor]:
"""Supply the _pdbx_chem_comp_descriptor category for the PDB-CCD
Expand Down

0 comments on commit 0c68115

Please sign in to comment.