Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing vol_diff key to BinaryPairwiseMeasures.measures_dict #44

Closed

Conversation

valosekj
Copy link

@valosekj valosekj commented Feb 27, 2024

This PR adds 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'

@p-j-smith, @csudre, could you please review this PR?

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'
@valosekj
Copy link
Author

Fixed in ivadomed#1

@valosekj valosekj closed this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant