Skip to content

Commit

Permalink
Fix pylint checks for decimation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippRue committed Nov 18, 2024
1 parent 4d33c2c commit fc98f34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aiida_kkr/workflows/_decimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ def run_voroaux(self):
if 'shapefun_substrate_overwrite' in self.inputs:
builder.shapefun_overwrite = self.inputs.shapefun_substrate_overwrite
# make sure the shapefun is really used
append_text = builder.metadata.options.get('append_text', '')
append_text = builder.metadata.options.get('append_text', '') # pylint: disable=no-member
append_text += '\nmv shapefun shapefun_voro; mv shapefun_overwrite shapefun'
builder.metadata.options['append_text'] = append_text
builder.metadata.options['append_text'] = append_text # pylint: disable=no-member

# submit voroaux for substrate calculation
future_substrate = self.submit(builder)
Expand All @@ -458,9 +458,9 @@ def run_voroaux(self):
if 'shapefun_deci_overwrite' in self.inputs:
builder.shapefun_overwrite = self.inputs.shapefun_deci_overwrite
# make sure the shapefun is really used
append_text = builder.metadata.options.get('append_text', '')
append_text = builder.metadata.options.get('append_text', '') # pylint: disable=no-member
append_text += '\nmv shapefun shapefun_voro; mv shapefun_overwrite shapefun'
builder.metadata.options['append_text'] = append_text
builder.metadata.options['append_text'] = append_text # pylint: disable=no-member

# submit voroaux for substrate calculation
future_decimation = self.submit(builder)
Expand All @@ -483,7 +483,7 @@ def run_deciout(self):
builder.metadata.options['resources'] = {'tot_num_mpiprocs': 1, 'num_machines': 1} # pylint: disable=no-member
if 'options_deci_out' in self.inputs:
# overwrite default (serial) option if given in input
builder.metadata.options = self.inputs.options_deci_out.get_dict()
builder.metadata.options = self.inputs.options_deci_out.get_dict() # pylint: disable=no-member

builder.metadata.label = 'deci-out' # pylint: disable=no-member
builder.parent_folder = self.ctx.voroaux_substrate.outputs.remote_folder
Expand Down

0 comments on commit fc98f34

Please sign in to comment.