generated from pyiron/pyiron_module_template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dataclass parsing #111
Comments
This is my note for me to see what should come out. No need for anyone to understand class Class1:
var_2: float
class_1 = Class1(var_2=1.0) flowchart TB;
node_1 --> node_1.outputs.var_1;
node_1.outputs.var_1 --> node_2.inputs.var_1;
node_2.inputs.var_1 --> node_2;
node_2.inputs.var_1 -- hasValue --> node_1.outputs.var_1.value;
node_1.outputs.var_1 -- hasValue --> node_1.outputs.var_1.value;
node_1 --> node_1.outputs.class_1;
node_1.outputs.class_1 --> node_2.inputs.class_1;
node_2.inputs.class_1--> node_2;
node_2.inputs.class_1 -- hasValue --> node_1.outputs.class_1.value;
node_1.outputs.class_1 -- hasValue --> node_1.outputs.class_1.value;
node_1.outputs.class_1.var_2.value -- subClassOf --> node_1.outputs.class_1.value;
node_2.inputs.class_1 -- hasValue --> node_1.outputs.class_1.var_2.value;
node_1.outputs.class_1 -- hasValue --> node_1.outputs.class_1.var_2.value;
|
Merged
EDIT: With this PR I realized that what I had claimed was not wrong in the end, and you don't need dependence on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the latest pyiron meeting I had claimed that data classes can be parsed automatically, but afterwards I realized that it was only partly true. Currently the plan is for the user to be able to write something like:
And
temperature
andnumber_of_steps
should be stored as subclasses ofInput
. More in the PR (to come)The text was updated successfully, but these errors were encountered: