Skip to content

Commit

Permalink
refactor(geo_submission): remove unnecessary conversion of output_fil…
Browse files Browse the repository at this point in the history
…e_name to pathlib.Path and simplify processed files handling
  • Loading branch information
alsmith151 committed Nov 15, 2024
1 parent 8afff39 commit 96914af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions seqnado/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,11 +999,6 @@ def processed_data_files(self) -> pd.DataFrame:
),
)

# Convert the output file name to a pathlib.Path object
df = df.assign(
output_file_name=lambda df: df["output_file_name"].apply(pathlib.Path),
)

return df

@property
Expand Down
5 changes: 2 additions & 3 deletions seqnado/workflow/rules/geo_submission.smk
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ def get_symlinked_files(wc: Any = None) -> List[str]:



processed_files = geo_files.processed_data_files['output_file_name']

if processed_files.any():
if not geo_files.processed_data_files.empty:
processed_files = geo_files.processed_data_files['output_file_name'].tolist()
processed_files = [outdir / fn for fn in processed_files]
else:
processed_files = []
Expand Down

0 comments on commit 96914af

Please sign in to comment.