6b7091c361ecee7bdc3729ae9cd6b7db91187cb3,app/grandchallenge/cases/image_builders/utils.py,,convert_itk_to_internal,#,13

Before Change


        else:
            timepoints = None
        depth = simple_itk_image.GetDepth()
        metadata_keys = simple_itk_image.GetMetaDataKeys()
        window_center = (
            float(simple_itk_image.GetMetaData("WindowCenter"))
            if "WindowCenter" in metadata_keys
            else None
        )
        window_width = (
            float(simple_itk_image.GetMetaData("WindowWidth"))
            if "WindowWidth" in metadata_keys
            else None

After Change


            timepoints = None
        depth = simple_itk_image.GetDepth()

        try:
            window_center = float(simple_itk_image.GetMetaData("WindowCenter"))
        except (RuntimeError, ValueError):
            window_center = None
        try:
            window_width = float(simple_itk_image.GetMetaData("WindowWidth"))
        except (RuntimeError, ValueError):
            window_width = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: comic/grand-challenge.org
Commit Name: 6b7091c361ecee7bdc3729ae9cd6b7db91187cb3
Time: 2020-05-27
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/utils.py
Class Name:
Method Name: convert_itk_to_internal


Project Name: snorkel-team/snorkel
Commit Name: 0722cbb28234dfb6f38c375fed80d339e9921324
Time: 2017-08-14
Author: ajratner@gmail.com
File Name: snorkel/learning/utils.py
Class Name: GridSearch
Method Name: _fit_st


Project Name: austin-taylor/flare
Commit Name: 9cc8397cee3dcc24d1697cb45378eddc660cc8e1
Time: 2019-10-21
Author: jdpberba@gmail.com
File Name: flare/data_science/features.py
Class Name:
Method Name: domain_tld_extract