Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from manual to pydantic validation of config and LighterSystem (…
…#135) * Switch from manual to pydantic validation of config and LighterSystem components * Add pydantic dependency * Do not like how Postprocessing looks. Fix style. * Match current Lighter's postprocessing scheme * Fix validators in schema * Add PatchedModuleDict, add missing "test" in ArgsConfigShema, use model_dump() and remove SubscriptableBaseModel * Fix mistake in schema * _lightning_module_methods_defined not needed anymore * Reorganize LighterSystem methods * See if pandas upgrade will fix the numpy issue in checks * Attempt to fix "Numpy is not available" in checks * Another attempt, numpy below v2 * Add missing predict to batch postprocessing schema * Bump aiohttp from 3.9.5 to 3.10.2 (#136) Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.5 to 3.10.2. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](aio-libs/aiohttp@v3.9.5...v3.10.2) --- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ibrahim Hadzic <ibrahimhadzic45@gmail.com> * Bump zipp from 3.19.0 to 3.19.1 (#132) Bumps [zipp](https://github.com/jaraco/zipp) from 3.19.0 to 3.19.1. - [Release notes](https://github.com/jaraco/zipp/releases) - [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst) - [Commits](jaraco/zipp@v3.19.0...v3.19.1) --- updated-dependencies: - dependency-name: zipp dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ibrahim Hadzic <ibrahimhadzic45@gmail.com> * Bump certifi from 2024.2.2 to 2024.7.4 (#131) Bumps [certifi](https://github.com/certifi/python-certifi) from 2024.2.2 to 2024.7.4. - [Commits](certifi/python-certifi@2024.02.02...2024.07.04) --- updated-dependencies: - dependency-name: certifi dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ibrahim Hadzic <ibrahimhadzic45@gmail.com> * Filter out the warning about "validate" field in ArgsConfigSchema * Enable interpolation strings in ArgsConfig * Allow multiple lighter commands at once (lighter fit test --config). Forbid extra fields pydantic. * Add workaround for the validation of _requires_ with pydantic * Add basic tests for schema * Fix codestyle --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Suraj Pai <bspai@bwh.harvard.edu>
- Loading branch information