Skip to content

Commit

Permalink
remove empty namespace from builder
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Jan 10, 2025
1 parent 75a792d commit a925b3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aiidalab_qe/workflows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ def get_builder_from_protocol(
plugin_workchain = entry_point["workchain"]
if plugin_workchain.spec().has_input("clean_workdir"):
plugin_builder.clean_workdir = clean_workdir
setattr(builder, name, plugin_builder)
# some plugin's logic depend on whether a input exist or not, but not check if it is empty.
# here we remove the empty namespace for safety.
setattr(builder, name, plugin_builder._inputs(prune=True))
else:
builder.pop(name, None)

Expand Down

0 comments on commit a925b3d

Please sign in to comment.