Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #26

Merged
merged 4 commits into from
Jan 10, 2025
Merged

Update dependencies #26

merged 4 commits into from
Jan 10, 2025

Conversation

mbercx
Copy link
Member

@mbercx mbercx commented Jan 10, 2025

No description provided.

mbercx and others added 4 commits December 11, 2024 13:33
In order to avoid having to `verdi run` the `add_in_batches` example, we load the
profile in the `main` function.

We also add a break at the end of the function once the number of calculations to run
is zero.

Co-authored-by: Ali <khsrali@gmail.com>
Co-authored-by: Ali <khsrali@gmail.com>
Update dependencies and code to be compatible with `aiida-core~=2.5` and `pydantic~=2.8`.

Main changes are:

* `orm.Group.objects.get` -> `orm.Group.collection.get`
* `orm.Group.objects.get_or_create` -> `orm.Group.collection.get_or_create`
* `@validator` -> `@field_validator`
* `allow_reuse=True` removed as not needed anymore

Co-authored-by: Ali <khsrali@gmail.com>
@mbercx mbercx merged commit b861256 into aiidateam:main Jan 10, 2025
1 check passed
@mbercx mbercx deleted the dev/update-deps branch January 10, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant