Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hospital Gasch authored and Adam Hospital Gasch committed Dec 14, 2023
1 parent ebb399b commit c673822
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
26 changes: 14 additions & 12 deletions biobb_chemistry/acpype/acpype_params_cns.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,19 +152,21 @@ def launch(self) -> int:

# move files to output_path and removes temporary folder
if self.container_path:
process_output_cns(self.unique_name,
self.stage_io_dict['unique_dir'],
self.remove_tmp,
self.basename,
get_default_value(self.__class__.__name__),
self.output_files, self.out_log)
process_output_cns(
self.unique_name,
self.stage_io_dict['unique_dir'],
self.remove_tmp,
self.basename,
get_default_value(self.__class__.__name__),
self.output_files, self.out_log)
else:
process_output_cns(self.unique_name,
self.basename + "." + self.unique_name + ".acpype",
self.remove_tmp,
self.basename,
get_default_value(self.__class__.__name__),
self.output_files, self.out_log)
process_output_cns(
self.unique_name,
self.basename + "." + self.unique_name + ".acpype",
self.remove_tmp,
self.basename,
get_default_value(self.__class__.__name__),
self.output_files, self.out_log)

self.check_arguments(output_files_created=True, raise_exception=False)

Expand Down
1 change: 1 addition & 0 deletions biobb_chemistry/acpype/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def process_output_gmx(unique_name, files_folder, remove_tmp, basename, class_pa
shutil.copy(file_name, output_files[file_extension[1:]])
fu.log('File %s succesfully created' % output_files[file_extension[1:]], out_log)


def process_output_cns(unique_name, files_folder, remove_tmp, basename, class_params, output_files, out_log):
""" Moves and removes temporal files generated by the wrapper """
path = files_folder
Expand Down

0 comments on commit c673822

Please sign in to comment.