From 0b5672426d09dfad6a2e0d92a1387f6835d1073d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20R=C3=BC=C3=9Fmann?= <10085427+PhilippRue@users.noreply.github.com> Date: Thu, 21 Nov 2024 20:46:43 +0000 Subject: [PATCH] Small bugfix --- aiida_kkr/calculations/voro.py | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/aiida_kkr/calculations/voro.py b/aiida_kkr/calculations/voro.py index 1bae6018..9bc66d6a 100644 --- a/aiida_kkr/calculations/voro.py +++ b/aiida_kkr/calculations/voro.py @@ -14,7 +14,7 @@ __copyright__ = (u'Copyright (c), 2017, Forschungszentrum Jülich GmbH, ' 'IAS-1/PGI-1, Germany. All rights reserved.') __license__ = 'MIT license, see LICENSE.txt file' -__version__ = '0.5.3' +__version__ = '0.5.4' __contributors__ = ('Jens Broeder', 'Philipp Rüßmann') @@ -182,7 +182,8 @@ def prepare_for_submission(self, tempfolder): # Decide what files to copy local_copy_list = [] if overwrite_potential: - # copy the right files #TODO check first if file, exists and throw + # copy the right files + #TODO check first if file, exists and throw # warning, now this will throw an error if found_parent and self._is_KkrCalc(parent_calc): outfolder = parent_calc.outputs.retrieved # copy from remote folder @@ -199,17 +200,11 @@ def prepare_for_submission(self, tempfolder): filename = self._POTENTIAL_IN_OVERWRITE local_copy_list.append((outfolder.uuid, file1, filename)) # pylint: disable=possibly-used-before-assignment - # add shapefun to overwrite - if 'shapefun_overwrite' in self.inputs: - shapefun_overwrite = self.inputs.shapefun_overwrite - filename = shapefun_overwrite.filename - local_copy_list.append((shapefun_overwrite.uuid, filename, 'shapefun_overwrite')) - - # add shapefun to overwrite - if 'shapefun_overwrite' in self.inputs: - shapefun_overwrite = self.inputs.shapefun_overwrite - filename = shapefun_overwrite.filename - local_copy_list.append((shapefun_overwrite.uuid, filename, 'shapefun_overwrite')) + # add shapefun to overwrite + if 'shapefun_overwrite' in self.inputs: + shapefun_overwrite = self.inputs.shapefun_overwrite + filename = shapefun_overwrite.filename + local_copy_list.append((shapefun_overwrite.uuid, filename, 'shapefun_overwrite')) # Prepare CalcInfo to be returned to aiida calcinfo = CalcInfo()