ivadomed / MetricsReloaded

A fork of the Project-MONAI/MetricsReloaded repo
Apache License 2.0
3 stars 0 forks source link

Add missing `vol_diff` key to BinaryPairwiseMeasures.measures_dict #1

Closed valosekj closed 4 months ago

valosekj commented 4 months ago

This is a minor PR adding the missing vol_diff key to BinaryPairwiseMeasures.measures_dict.

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'

Note: I also originally opened the same PR on Project-MONAI/MetricsReloaded: https://github.com/Project-MONAI/MetricsReloaded/pull/44. But it has not been merged yet.