@@ -117,7 +117,7 @@ def define(cls, spec):
117
117
help = "Filename for the output CSV" ,
118
118
)
119
119
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" )
121
121
spec .input (
122
122
"settings.sleep_submission_time" ,
123
123
valid_type = (int , float ),
@@ -126,12 +126,16 @@ def define(cls, spec):
126
126
help = "Time in seconds to wait before submitting calculations." ,
127
127
)
128
128
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
+ # )
135
139
136
140
spec .outline (
137
141
cls .initialize ,
@@ -167,7 +171,6 @@ def initialize(self):
167
171
"""Initialize the workchain context."""
168
172
# self.ctx.calculation_cls = CalculationFactory(self.inputs.entrypoint.value)
169
173
self .ctx .folder = Path (self .inputs .folder .value )
170
- self .ctx .launch = self .inputs .launch .value
171
174
self .ctx .group = load_group (pk = self .inputs .group .value )
172
175
# self.ctx.calcjob_inputs = dict(self.inputs.calc_inputs)
173
176
self .ctx .dict_of_nodes = {}
@@ -192,7 +195,7 @@ def run_calculations(self):
192
195
struct_dict = get_input_structures_dict (self .inputs .folder .value )
193
196
self .out ("input_structures" , struct_dict )
194
197
inputs = AttributeDict (
195
- self .exposed_inputs (geomopt_janus , namespace = "calc_inputs " )
198
+ self .exposed_inputs (geomopt_janus , namespace = "janus_inputs " )
196
199
)
197
200
198
201
for name , structure in struct_dict .items ():
0 commit comments