diff --git a/src/aiida_wannier90_workflows/workflows/optimize.py b/src/aiida_wannier90_workflows/workflows/optimize.py index 92313d5..d6b6196 100644 --- a/src/aiida_wannier90_workflows/workflows/optimize.py +++ b/src/aiida_wannier90_workflows/workflows/optimize.py @@ -273,6 +273,8 @@ def get_builder_from_protocol( # pylint: disable=arguments-differ :return: [description] :rtype: ProcessBuilder """ + from copy import deepcopy + from aiida_wannier90_workflows.utils.workflows.bands import ( has_overlapping_semicore, ) @@ -290,7 +292,7 @@ def get_builder_from_protocol( # pylint: disable=arguments-differ ) parent_builder = Wannier90BandsWorkChain.get_builder_from_protocol( - codes, structure, overrides=inputs, **kwargs + codes, structure, overrides=deepcopy(inputs), **kwargs ) if reference_bands is not None: