Skip to content

Commit

Permalink
bring accidentally deleted ktype.setter
Browse files Browse the repository at this point in the history
  • Loading branch information
MBueschelberger committed Oct 2, 2024
1 parent a0e1e69 commit cffaeb3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dsms/core/dsms.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def __init__(
"""

self._config = None
self._ktypes = None
self._context.dsms = self

if env:
Expand All @@ -94,7 +95,7 @@ def __init__(
)

self._sparql_interface = SparqlInterface(self)
self._ktypes = _get_remote_ktypes()
self.ktypes = _get_remote_ktypes()

def __getitem__(self, key: str) -> "KItem":
"""Get KItem from remote DSMS instance."""
Expand Down Expand Up @@ -148,6 +149,15 @@ def ktypes(cls) -> "Enum":
"""Getter for the Enum of the KTypes defined in the DSMS instance."""
return cls._ktypes

@ktypes.setter
def ktypes(self, value: "Enum") -> None:
"""Setter for the ktypes property of the DSMS instance.
Args:
value: the Enum object to be set as the ktypes property.
"""
self._ktypes = value

@property
def config(cls) -> Configuration:
"""Property returning the DSMS Configuration"""
Expand Down

0 comments on commit cffaeb3

Please sign in to comment.