openprotein-python 0.5.4__py3-none-any.whl → 0.5.5__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.
@@ -1,6 +1,7 @@
1
1
  import logging
2
2
  from typing import TYPE_CHECKING
3
3
 
4
+ from openprotein import config
4
5
  from openprotein.api import predict
5
6
  from openprotein.base import APISession
6
7
  from openprotein.errors import MissingParameterError
@@ -133,6 +134,23 @@ class PredictionResultFuture(PagedFuture, Future):
133
134
  # else:
134
135
  # return self._fmt_ssp_results(results)
135
136
 
137
+ def wait_until_done(
138
+ self, interval: int = config.POLLING_INTERVAL, timeout=None, verbose=False
139
+ ):
140
+ if self.id is not None:
141
+ return super().wait_until_done(interval, timeout, verbose)
142
+ return True
143
+
144
+ def wait(
145
+ self,
146
+ interval: int = config.POLLING_INTERVAL,
147
+ timeout: int | None = None,
148
+ verbose: bool = False,
149
+ ):
150
+ if self.id is not None:
151
+ return super().wait(interval, timeout, verbose)
152
+ return self.get(verbose=verbose)
153
+
136
154
  def get_dict(self, verbose: bool = False) -> dict:
137
155
 
138
156
  results: list = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: openprotein_python
3
- Version: 0.5.4
3
+ Version: 0.5.5
4
4
  Summary: OpenProtein Python interface.
5
5
  Author-email: Mark Gee <markgee@ne47.bio>
6
6
  License: MIT
@@ -26,7 +26,7 @@ openprotein/app/models/assaydata.py,sha256=QdX2Y4FI2QZ6Qnz2zT5X_0kPua1qlM0waNU0S
26
26
  openprotein/app/models/design.py,sha256=CmW78-12-QnbZ6wIWwJg-yY3K5D6JRFflNZP7oJFQu4,3174
27
27
  openprotein/app/models/designer.py,sha256=ZA-DI-bXkwrc8WeQRngLCcd1XkcO27NvnlvnbY3ulLg,3426
28
28
  openprotein/app/models/futures.py,sha256=N8M8aK6xZJVwvKLHUJPnpUGNZt0cZyazstXpiV2XVas,15105
29
- openprotein/app/models/predict.py,sha256=GsGKJvd0J-f4apeY5oiACtOdqWKKIlhiyE28J0vKsdE,8147
29
+ openprotein/app/models/predict.py,sha256=7xQW3HPW0IxeRhsKo000AKSzRSRxWAgQEbo1Y_lBEDU,8702
30
30
  openprotein/app/models/svd.py,sha256=4Z_3_H7rnsycRDLhxmqT_YC_2uBmIdKw1BFvFN2Q_qU,8059
31
31
  openprotein/app/models/train.py,sha256=kVC0QcS4brjQSNHFx0caz89zE5D2bSmo-t2MsP5qK3Q,8790
32
32
  openprotein/app/models/umap.py,sha256=eGDF9-qA37XHAwFFDYE-BuNnVoWSH6rVbR3a7cpNkBM,4417
@@ -81,7 +81,7 @@ openprotein/schemas/train.py,sha256=KVhVW1ZKWZ4RweBOXhxLH-vvkeDEHmMdwcrweTs2J5E,
81
81
  openprotein/schemas/umap.py,sha256=Hfg_NwVTRv5uZHEWFYEx73IuZLMUJ50KBsbdsxMH8L4,792
82
82
  openprotein/schemas/deprecated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
83
  openprotein/schemas/deprecated/poet.py,sha256=bWprjLIC7cSCNSMMTco0BGJ3lMCTH9R2X_bSr8BQLZY,1918
84
- openprotein_python-0.5.4.dist-info/METADATA,sha256=LxOHaZcSNXZNWjQEI1fM32vbArj8gL0qTTymxbn1H1w,7348
85
- openprotein_python-0.5.4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
86
- openprotein_python-0.5.4.dist-info/licenses/LICENSE.txt,sha256=amMkJEL2uNWuwaaj25UfyZ37g-KwGF7E3ingj7_Xu4A,1543
87
- openprotein_python-0.5.4.dist-info/RECORD,,
84
+ openprotein_python-0.5.5.dist-info/METADATA,sha256=Ow8jwTeDRHxGDwcL3C-hU2WSNIV4wKbJgWCfIl629Z8,7348
85
+ openprotein_python-0.5.5.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
86
+ openprotein_python-0.5.5.dist-info/licenses/LICENSE.txt,sha256=amMkJEL2uNWuwaaj25UfyZ37g-KwGF7E3ingj7_Xu4A,1543
87
+ openprotein_python-0.5.5.dist-info/RECORD,,