Skip to content

Commit

Permalink
fix: specify str dtypes reading acdc_df csv
Browse files Browse the repository at this point in the history
  • Loading branch information
ElpadoCan committed May 7, 2024
1 parent 846b40a commit ef1d998
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cellacdc/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,9 @@ def _save_acdc_df(self, recovery_acdc_df, posData):
load.store_unsaved_acdc_df(recovery_folderpath, recovery_acdc_df)
return

saved_acdc_df_path = posData.acdc_output_csv_path
saved_acdc_df = (
pd.read_csv(posData.acdc_output_csv_path)
pd.read_csv(saved_acdc_df_path, dtype=load.acdc_df_str_cols)
.set_index(['frame_i', 'Cell_ID'])
)

Expand All @@ -721,7 +722,7 @@ def _save_acdc_df(self, recovery_acdc_df, posData):
reference_acdc_df = saved_acdc_df
else:
reference_acdc_df = (
pd.read_csv(last_unsaved_csv_path)
pd.read_csv(last_unsaved_csv_path, dtype=load.acdc_df_str_cols)
.set_index(['frame_i', 'Cell_ID'])
)

Expand Down

0 comments on commit ef1d998

Please sign in to comment.