Skip to content

Commit 60c0a08

Browse files
committed
trying some stuff
1 parent 5a3c8b1 commit 60c0a08

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

aiida_mlip/workflows/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Workflows for aiida-mlip."""

aiida_mlip/workflows/hts.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def define(cls, spec):
117117
help="Filename for the output CSV",
118118
)
119119
spec.input("group", valid_type=Int, help="Group to add the nodes to")
120-
# spec.input("entrypoint", valid_type=Str, help="calculation entry point")
120+
spec.input("entrypoint", valid_type=Str, help="calculation entry point")
121121
spec.input(
122122
"settings.sleep_submission_time",
123123
valid_type=(int, float),
@@ -126,12 +126,16 @@ def define(cls, spec):
126126
help="Time in seconds to wait before submitting calculations.",
127127
)
128128

129-
spec.expose_inputs(
130-
geomopt_janus, namespace="janus_inputs", exclude="struct", required=False
131-
)
132-
spec.expose_inputs(
133-
geomopt_qe, namespace="qe_inputs", exclude="struct", required=False
134-
)
129+
# entrypoint = spec.inputs["entrypoint"]
130+
print("PRINTING STUFF FOR DEBUG")
131+
print(spec.inputs)
132+
print(type(spec.inputs.entrypoint))
133+
134+
# geomopt_janus = CalculationFactory(entrypoint)
135+
spec.expose_inputs(geomopt_janus, namespace="janus_inputs", exclude="struct")
136+
# spec.expose_inputs(
137+
# geomopt_qe, namespace="qe_inputs", exclude="struct", required=False
138+
# )
135139

136140
spec.outline(
137141
cls.initialize,
@@ -167,7 +171,6 @@ def initialize(self):
167171
"""Initialize the workchain context."""
168172
# self.ctx.calculation_cls = CalculationFactory(self.inputs.entrypoint.value)
169173
self.ctx.folder = Path(self.inputs.folder.value)
170-
self.ctx.launch = self.inputs.launch.value
171174
self.ctx.group = load_group(pk=self.inputs.group.value)
172175
# self.ctx.calcjob_inputs = dict(self.inputs.calc_inputs)
173176
self.ctx.dict_of_nodes = {}
@@ -192,7 +195,7 @@ def run_calculations(self):
192195
struct_dict = get_input_structures_dict(self.inputs.folder.value)
193196
self.out("input_structures", struct_dict)
194197
inputs = AttributeDict(
195-
self.exposed_inputs(geomopt_janus, namespace="calc_inputs")
198+
self.exposed_inputs(geomopt_janus, namespace="janus_inputs")
196199
)
197200

198201
for name, structure in struct_dict.items():

examples/workflows/run_hts_WC.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"folder": folder,
3535
"group": Int(1),
36+
"entrypoint": Str("mlip.opt"),
3637
}
3738

3839
result = run(HTSWorkChain, inputs)

0 commit comments

Comments
 (0)