diff --git a/aiida_fleur/cmdline/workflows/__init__.py b/aiida_fleur/cmdline/workflows/__init__.py index b52a1fa82..e82170a59 100755 --- a/aiida_fleur/cmdline/workflows/__init__.py +++ b/aiida_fleur/cmdline/workflows/__init__.py @@ -28,8 +28,9 @@ def cmd_workflow(): @cmd_workflow.command('res') -@arguments.PROCESS('process', type=ProcessParamType() - ) #, type=WorkflowParamType(sub_classes=('aiida.node:process.workflow.workchain',))) +@arguments.PROCESS( + 'process', + type=ProcessParamType()) #, type=WorkflowParamType(sub_classes=('aiida.node:process.workflow.workchain',))) @click.option('--info/--no-info', default=False, help='Print an info header above each node.') @click.option('-l', '--label', 'label', type=str, help='Print only output dicts with a certain link_label.') @options_fl.SHOW() @@ -69,8 +70,9 @@ def workchain_res(process, info, label, show, keys, fmt): @cmd_workflow.command('inputdict') -@arguments.PROCESS('process', type=ProcessParamType() - ) #, type=WorkflowParamType(sub_classes=('aiida.node:process.workflow.workchain',))) +@arguments.PROCESS( + 'process', + type=ProcessParamType()) #, type=WorkflowParamType(sub_classes=('aiida.node:process.workflow.workchain',))) @click.option('--info/--no-info', default=False, help='Print an info header above each node.') @click.option('-l', '--label', 'label', type=str, help='Print only output dicts with a certain link_label.') @options_fl.SHOW() diff --git a/aiida_fleur/tools/StructureData_util.py b/aiida_fleur/tools/StructureData_util.py index f60967639..c8d791700 100644 --- a/aiida_fleur/tools/StructureData_util.py +++ b/aiida_fleur/tools/StructureData_util.py @@ -1674,7 +1674,7 @@ def request_average_bond_length(first_bin, second_bin, user_api_key, ignore_seco from collections import defaultdict from copy import deepcopy - bond_data = defaultdict(lambda: defaultdict(lambda: 0.0)) + bond_data = defaultdict(lambda: defaultdict(float)) if ignore_second_bin: symbols = first_bin second_bin_calculate = first_bin