Skip to content

Commit

Permalink
Improved tmp_files removal and added ipython docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
gbayarri committed Jan 23, 2025
1 parent 2237919 commit d4b9b0f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions biobb_pmx/pmxbiobb/pmxgentop.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ def launch(self) -> int:
output_file_name = fu.create_name(
prefix=self.prefix, step=self.step, name=str(Path(top_file).name)
)
u_dir = fu.create_unique_dir()
unique_dir_output_file = str(
Path(fu.create_unique_dir()).joinpath(output_file_name)
Path(u_dir).joinpath(output_file_name)
)
fu.log(f"unique_dir_output_file: {unique_dir_output_file}", self.out_log)

Expand Down Expand Up @@ -242,7 +243,11 @@ def launch(self) -> int:
out_log=self.out_log,
)

self.tmp_files.extend([self.stage_io_dict.get("unique_dir", ""), top_dir, unique_dir_output_file])
self.tmp_files.extend([
# self.stage_io_dict.get("unique_dir", ""),
top_dir,
u_dir
])
self.remove_tmp_files()

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

0 comments on commit d4b9b0f

Please sign in to comment.