generated from pyiron/pyiron_module_template
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Consider:
inp = CalcInputMinimize()
inp.relax_cell = False
Engine = LammpsEngine(EngineInput = inp)
Engine.working_directory = "test_opt_cubic_cell"
# Adjust this line to match your LAMMPS installation
# If you are using conda-lammps or a LAMMPS binary on your system, you can use directly:
Engine.command = "lmp -in in.lmp -log minimize.log"
Engine.lammps_log_filepath = "minimize.log"
Engine.input_script_pair_style = "eam/fs"
Engine.path_to_model = "Al-Fe_eam.fs"
# /root/github_dev/pyiron_workflow_atomistics/pyiron_workflow_atomistics
structure = bulk("Fe", a=2.828, cubic=True)
wf1 = Workflow(Engine.working_directory, delete_existing_savefiles=True)
wf1.opt_cubic_cell = optimise_cubic_lattice_parameter(
structure=structure,
name="Fe",
crystalstructure="bcc",
calculation_engine=Engine,
parent_working_directory="opt_cubic_cell",
rattle=0.1,
strain_range=(-0.02, 0.02),
num_points=6,
)
wf1.run()
wf1.save(filename="opt_cubic_cell_wf")
When I try to load the workflow that I saved,
import os
wf2 = Workflow(label=f"opt_cubic_cell_wf")
print(wf2.outputs)
it provides empty output
print(wf2.outputs)
OutputsWithInjection []
Or fails directly when I invoke the wf.load()
method:
wf2 = Workflow.load(filename="opt_cubic_cell_wf")
wf2
Instead, it is expected (?) that you invoke Workflow("exact same label here")
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[36], line 1
----> 1 wf2 = Workflow.load(filename="opt_cubic_cell_wf")
2 wf2
TypeError: Node.load() missing 1 required positional argument: 'self'
Expected behaviour (imho) should be that it loads the workflow from the savefile specified
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request