-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Engine: Set the
to_aiida_type
as default inport port serializer (#6439
) The `to_aiida_type` serializer automatically converts a number of Python base types to the corresponding `Data` node when passed as an input to a process. Process functions already automatically set this serializer as a default, which simplifies the life of users and developers. Here, the `to_aiida_type` is now set as the default serializer for all input ports. The only exception is if the port is a metadata input port, in which case the data is stored directly in the attributes of the process node and so should not be converted to a node. It is also skipped if the port itself already declares a serializer.
- Loading branch information
Showing
3 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters