Skip to content

Commit

Permalink
change print to notification
Browse files Browse the repository at this point in the history
  • Loading branch information
melonora committed May 6, 2024
1 parent 6dba9cf commit 74a7901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cell_gater/utils/csv_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def stack_csv_files(csv_dir: Path) -> pd.DataFrame | None:
napari_notification(f"Loaded {len(csv_files)} regionprops csvs.")
df = pd.DataFrame()
for file in csv_files:
if not file.name.startswith('.'):
if not file.name.startswith("."):
df_file = pd.read_csv(file)
df_file["sample_id"] = file.stem
df = pd.concat([df, df_file], ignore_index=True)
df["sample_id"] = df.sample_id.astype("category")
else:
print(f"Skipping file {file.name} as it is a hidden file.")
napari_notification(f"Skipping file {file.name} as it is a hidden file.")

return df

Expand Down

0 comments on commit 74a7901

Please sign in to comment.