generated from pyiron/pyiron_module_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
@samwaseda and I were chatting on how to handle actual input data in a recipe context. We don't have a conclusion on actual input values, but he did convince me to include primitive defaults.
I'm not sure how to modify the actual model structure to fit these in yet, but the rough idea is to permit a new default field per-input like default: OK where
from typing import Union
JsonPrimitive = str | int | float | bool | None
OK = JsonPrimitive | tuple[OK] # Forgive the recursion, I'm just trying to log the pointWhere deserialization converts the json list back to a python tuple.
Don't support mutable json-compliant stuff (list and dict) because actual uses of mutable defaults are almost exclusively going to be mistakes, and for the odd time it wouldn't be there are alternative approaches.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request