Conversation
Release/v 1.4.3
…ernizing type hints
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1522 +/- ##
===========================================
- Coverage 78.27% 76.93% -1.35%
===========================================
Files 76 77 +1
Lines 7674 7816 +142
Branches 1146 1160 +14
===========================================
+ Hits 6007 6013 +6
- Misses 1469 1602 +133
- Partials 198 201 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| pre-commit = ">=4.0.1,<5" | ||
| nlopt = ">=2.8.0,<3" | ||
| scipy = ">=1.9.1,<2" | ||
| ipdb = ">=0.13.13,<0.14" |
There was a problem hiding this comment.
Nope, I just added it to the dev virtual environment.
| self.gen_ngpus = libE_info.get("num_gpus") | ||
|
|
||
| def set_resources(self, resources: Resources) -> None: | ||
| def set_resources(self, resources) -> None: |
There was a problem hiding this comment.
We don't necessarily need to import the class just for typehint purposes
| data: Data, | ||
| search_space: Optional[SearchSpace] = None, | ||
| trial_index: Optional[int] = None, | ||
| search_space: Optional[SearchSpace] = None, # noqa: MDA501 |
|
|
||
| @abstractmethod | ||
| def live_update(self, hist: npt.NDArray) -> None: | ||
| def live_update(self, hist: object) -> None: |
| return Executor | ||
|
|
||
| def _result(self, calc_in: npt.NDArray, persis_info: dict, libE_info: dict) -> (npt.NDArray, dict, Optional[int]): | ||
| def _result(self, calc_in: npt.NDArray, persis_info: dict, libE_info: dict) -> (npt.NDArray, dict, int | None): |
There was a problem hiding this comment.
npt.NDArray still here but not above?
|
There are still some places public facing functions without type hints (like tools.py). is there the some method to what has hints or not. |
|
Merging develop into this. Warning ahead of time that the upcoming commit will contain fixes to address: |
… presumably-extra redefinitions of imports or objects in persistent_ax_multitask
…nsemble into release/v_1.5.0
…listed in advanced_installation
This reverts commit 877f52b.
…e attribute from the object. try the dynamic versioning again...
…ibensemble.gen_funcs.persistent_tasmanian import *
Replace flashing live animation with clean post-run version
Testing/some coverage + another attempt at dynamic versioning
Release/v 1.5.0
With Python 3.9 dropped, many type hints can be modernized, e.g:
Optional[Union[int, float]]->int | float | NoneChanges were guided by
flake8-modern-annotationsandflake8-type-checking,which were added to the dev environment.
Addresses #1378