Skip to content

Commit

Permalink
fix pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Mar 12, 2024
1 parent fa61e90 commit de18547
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/aiida_quantumespresso/workflows/xps.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,11 @@ def get_treatment_filepath(cls):
return files(protocols) / 'core_hole_treatments.yaml'

@classmethod
def get_builder_from_protocol( # pylint: disable=too-many-statements
def get_builder_from_protocol(
cls, code, structure, pseudos, core_hole_treatments=None, protocol=None,
overrides=None, elements_list=None, atoms_list=None, options=None,
structure_preparation_settings=None, correction_energies=None, **kwargs
): # pylint: enable=too-many-statements
): # pylint: disable=too-many-statements
"""Return a builder prepopulated with inputs selected according to the chosen protocol.
:param code: the ``Code`` instance configured for the ``quantumespresso.pw`` plugin.
Expand Down Expand Up @@ -584,8 +584,8 @@ def prepare_structures(self):
'call_link_label' : 'get_marked_structures'
}
}
result = get_marked_structures(input_structure, **inputs) # pylint: disable=unexpected-keyword-arg
self.ctx.supercell = input_structure # pylint: enable=unexpected-keyword-arg
result = get_marked_structures(input_structure, **inputs)
self.ctx.supercell = input_structure
self.ctx.equivalent_sites_data = result.pop('output_parameters').get_dict()
structures_to_process = {f'{Key.split("_")[0]}_{Key.split("_")[1]}' : Value for Key, Value in result.items()}
self.report(f'structures_to_process: {structures_to_process}')
Expand Down

0 comments on commit de18547

Please sign in to comment.