Skip to content

Commit

Permalink
BUG: Fix label_channel selection bug
Browse files Browse the repository at this point in the history
When Label_channel column is present in the CSV input, it needs to be parsed as an int.
However, due to a bug, the value for label was used instead.
  • Loading branch information
JoostJM committed Sep 26, 2019
1 parent 7bab402 commit 54a3782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiomics/scripts/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _extractFeatures(case_idx, case, extractor):
label = int(label)
label_channel = case.get('Label_channel', None) # Optional
if isinstance(label_channel, six.string_types):
label_channel = int(label)
label_channel = int(label_channel)

# Extract features
feature_vector.update(extractor.execute(imageFilepath, maskFilepath, label, label_channel))
Expand Down

0 comments on commit 54a3782

Please sign in to comment.