wizata-dsapi 1.3.26__py3-none-any.whl → 1.3.27__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
wizata_dsapi/mlmodel.py CHANGED
@@ -133,31 +133,32 @@ class ModelList:
133
133
  def __len__(self) -> int:
134
134
  return len(self.models)
135
135
 
136
- def exists(self, key: str) -> bool:
136
+ def exists(self, model: ModelInfo) -> bool:
137
137
  """
138
138
  check if a model is within the model list.
139
- :param key: identifier to check.
139
+ :param model: identifier to check.
140
140
  :return: True if it exists.
141
141
  """
142
- return any(model.identifier() == key for model in self.models)
142
+ return any(model_in_list.identifier(include_alias=True) == model.identifier(include_alias=True) for model_in_list in self.models)
143
143
 
144
- def __getitem__(self, key: Union[int, str]) -> ModelInfo:
144
+ def __getitem__(self, key: Union[int, ModelInfo]) -> ModelInfo:
145
145
  """
146
- find a model within list based on key or index.
147
- :param key: str or int identifier or index
146
+ find a model within list based on key or ModelInfo.
147
+ :param key: ModelInfo or index
148
148
  :return: the model_info
149
149
  """
150
150
  if isinstance(key, int):
151
151
  return self.models[key]
152
152
 
153
- elif isinstance(key, str):
153
+ elif isinstance(key, ModelInfo):
154
+ identifier = key.identifier(include_alias=True)
154
155
  for model in self.models:
155
- if model.identifier() == key:
156
+ if model.identifier(include_alias=True) == identifier:
156
157
  return model
157
- raise KeyError(f"model with identifier '{key}' not found within this ModelList.")
158
+ raise KeyError(f"model with identifier '{identifier}' not found within this ModelList.")
158
159
 
159
160
  else:
160
- raise TypeError("ModelList indices must be int or str (model identifier).")
161
+ raise TypeError("ModelList indices must be int or ModelInfo.")
161
162
 
162
163
  def append(self, model: ModelInfo):
163
164
  self.models.append(model)
wizata_dsapi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.3.26"
1
+ __version__ = "1.3.27"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.3.26
3
+ Version: 1.3.27
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -16,7 +16,7 @@ wizata_dsapi/experiment.py,sha256=QYQ1CJ-MTWsXq08xYbm5sAp95dRxbPOmGDgaAOoBMDQ,46
16
16
  wizata_dsapi/group_system.py,sha256=6rUKe0_J3YWACysyBlzuw_TEpKNXgLOMxhpWsNxOzwY,1708
17
17
  wizata_dsapi/ilogger.py,sha256=iYnID-Z-qrYhie26C43404aIuU4_tHSKXbDeQIdo82Q,807
18
18
  wizata_dsapi/insight.py,sha256=ABFZ04DqYxxzqAEfU1tzlTZqqrigM-zN-8Lbetko3g0,6468
19
- wizata_dsapi/mlmodel.py,sha256=WuFmWJu9Kiur_po75w7ZPEJ6ima6L2MucN17-MdNQPg,16701
19
+ wizata_dsapi/mlmodel.py,sha256=HIEkz9oBkEdf4VqNH3RP0sXf4FJuvxweUmVDSBfWu4U,16861
20
20
  wizata_dsapi/model_toolkit.py,sha256=UNyw5CFSgZeXydQFsiDIRTjoMeqIsdyIIuiwumLW5bA,1574
21
21
  wizata_dsapi/paged_query_result.py,sha256=0Iyt2Kd4tvrfthhT-tk9EmSERsbJTaPNON2euHcBn6k,1150
22
22
  wizata_dsapi/pipeline.py,sha256=WDJeOxPZJiYW1qwTNZUm3jom2epIxqrSoiUwcrTF9EE,31300
@@ -31,7 +31,7 @@ wizata_dsapi/template.py,sha256=wtCRKKk3PchH4RrNgNYlEF_9C6bzZwKIeLyEvgv6Fdo,1370
31
31
  wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
32
32
  wizata_dsapi/twin.py,sha256=S0DUzQf1smZXZTdXpXZPtkZYCfKIhw53EecCnsl9i4Q,11017
33
33
  wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
34
- wizata_dsapi/version.py,sha256=FUR7f4pt-OI8Js0kq9qe-3B6QfqdPsb76K2Ety-wObM,23
34
+ wizata_dsapi/version.py,sha256=H8bc94V7g-rGiJGFYxK8fhdpYFXJ828zIP4jjUf0z0k,23
35
35
  wizata_dsapi/wizard_function.py,sha256=RbM7W7Gf-6Rhp_1dU9DBYkHaciknGAGvuAndhAS_vyo,942
36
36
  wizata_dsapi/wizard_request.py,sha256=v6BaqKLKvTWmUSo0_gda9FabAQz5x_-GOH1Av50GzFo,3762
37
37
  wizata_dsapi/wizata_dsapi_client.py,sha256=h8iSz7IGbP-Zq9rbqMdq-hTrt16laD1JeaRWPzaLaoo,77695
@@ -42,8 +42,8 @@ wizata_dsapi/plots/__init__.py,sha256=qgnSFqrjOPur-807M8uh5awIfjM1ZHXUXcAqHc-r2l
42
42
  wizata_dsapi/plots/common.py,sha256=jdPsJqLHBwSKc6dX83BSGPqSRxzIVNHSYO5yI_8sjGk,6568
43
43
  wizata_dsapi/scripts/__init__.py,sha256=hAxiETSQf0qOHde1si1tEAJU48seqEgHrchCzS2-LvQ,80
44
44
  wizata_dsapi/scripts/common.py,sha256=efwq-Rd0lvYljIs3gSFz9izogBD7asOU2cTK-IvHTkM,4244
45
- wizata_dsapi-1.3.26.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
- wizata_dsapi-1.3.26.dist-info/METADATA,sha256=aHsP7FR8qgBot7pl2emCWgRCbBKoe_bMxfJBUO60AQ0,5844
47
- wizata_dsapi-1.3.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- wizata_dsapi-1.3.26.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
- wizata_dsapi-1.3.26.dist-info/RECORD,,
45
+ wizata_dsapi-1.3.27.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
+ wizata_dsapi-1.3.27.dist-info/METADATA,sha256=gelWeEHmigf1fXY7dWjHmb68MyWUDPfgTrNXrQyQx_o,5844
47
+ wizata_dsapi-1.3.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ wizata_dsapi-1.3.27.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
+ wizata_dsapi-1.3.27.dist-info/RECORD,,