Skip to content

Commit

Permalink
In masked ROI loading, cast to float first to fix #783
Browse files Browse the repository at this point in the history
  • Loading branch information
jluethi committed Jul 12, 2024
1 parent 585d050 commit 0c8922a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fractal_tasks_core/masked_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def _preprocess_input(
'In _preprocess_input, "{column_name}" '
f" missing in {ROI_table.obs.columns=}"
)
label_value = int(ROI_table.obs[column_name][ROI_positional_index])
label_value = int(float(ROI_table.obs[column_name][ROI_positional_index]))

# Load masking-label array (lazily)
masking_label_path = str(
Expand Down

0 comments on commit 0c8922a

Please sign in to comment.