Skip to content

Commit

Permalink
remove mode bec we removed it from the table
Browse files Browse the repository at this point in the history
  • Loading branch information
DhanshreeA committed Feb 13, 2025
1 parent 52efd2a commit 2cb0b99
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions ersilia/hub/content/base_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
InputBaseInformationError,
InputShapeBaseInformationError,
LicenseBaseInformationError,
ModeBaseInformationError,
OutputBaseInformationError,
OutputConsistencyBaseInformationError,
OutputDimensionBaseInformationError,
Expand Down Expand Up @@ -83,8 +82,6 @@ def __init__(self, config_json=None):
Placeholder for the model’s title.
_description : None
Placeholder for a description of the model.
_mode : None
Placeholder for the training mode, one of 'retrained', 'pretrained', 'in-house', or 'online'.
_task : None
Placeholder for the primary task associated with the model, such as 'classification', or 'regression'.
_subtask : None
Expand Down Expand Up @@ -151,7 +148,6 @@ def __init__(self, config_json=None):
self._status = None
self._title = None
self._description = None
self._mode = None
self._task = None
self._subtask = None
self._input = None
Expand Down Expand Up @@ -360,37 +356,6 @@ def description(self, new_description):
raise DescriptionBaseInformationError
self._description = new_description

@property
def mode(self):
"""
Get the model mode.
Returns
-------
str
The model mode.
"""
return self._mode

@mode.setter
def mode(self, new_mode):
"""
Set the model mode.
Parameters
----------
new_mode : str
The new model mode.
Raises
------
ModeBaseInformationError
If the mode is not valid.
"""
if new_mode not in self._read_default_fields("Mode"):
raise ModeBaseInformationError
self._mode = new_mode

@property
def source(self):
"""
Expand Down Expand Up @@ -1400,7 +1365,6 @@ def as_dict(self):
"Status": self.status,
"Title": self.title,
"Description": self.description,
"Mode": self.mode,
"Source": self.source,
"Source Type": self.source_type,
"Input": self.input,
Expand Down Expand Up @@ -1451,7 +1415,6 @@ def from_dict(self, data):
self._assign("status", "Status", data)
self._assign("title", "Title", data)
self._assign("description", "Description", data)
self._assign("mode", "Mode", data)
self._assign("source", "Source", data)
self._assign("source_type", "Source Type", data)
self._assign("input", "Input", data)
Expand Down

0 comments on commit 2cb0b99

Please sign in to comment.