Skip to content

Commit

Permalink
Add missing 'vol_diff' key to BinaryPairwiseMeasures.measures_dict
Browse files Browse the repository at this point in the history
Otherwise, the following KeyError is raised:

Traceback (most recent call last):
  File "/Users/user/code/MetricsReloaded/MetricsReloaded/metrics/pairwise_measures.py", line 1161, in to_dict_meas
    if len(self.measures_dict[key]) == 2:
KeyError: 'vol_diff'
  • Loading branch information
valosekj committed Feb 27, 2024
1 parent b3a3715 commit 1032d67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MetricsReloaded/metrics/pairwise_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def __init__(
"hd_perc": (self.measured_hausdorff_distance_perc, "HDPerc"),
"masd": (self.measured_masd, "MASD"),
"nsd": (self.normalised_surface_distance, "NSD"),
"vol_diff": (self.vol_diff, "VolDiff"),
}

self.pred = pred
Expand Down

0 comments on commit 1032d67

Please sign in to comment.