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

Fix: Set common inputs to non_db #339

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

t-reents
Copy link
Collaborator

After setting to_aiida_type as the default serializer in aiida-core 2.6, the common workflows would fail. The common inputs expect Pyhton data types instead of their corresponding AiiDA data types. Instead of adding the corresponding AiiDA data types as valid types, I set non_db = True for the common inputs, since the inputs were not stored in the database before, anyway.

Due to the updates in version 2.6 of `aiida-core`, the `to_aiida_type`
serializer is used as a default. Therefore, the validation fails for the
inputs defined in the common interfaces, as those are typically defined
as Python datatypes. Since these inputs are anyway not stored in the database, we fix it by explicitly setting `non_db = True` for those inputs.
@t-reents t-reents force-pushed the fix/compatible_with_aiida_2_6 branch from d3892d7 to 7cf7d12 Compare November 11, 2024 15:23
@t-reents t-reents merged commit efa2c64 into aiidateam:master Nov 12, 2024
7 checks passed
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.

2 participants