3e8df2376596e7caa4af27fe8875f2b0c115f0dc,app/grandchallenge/cases/image_builders/dicom.py,,_process_dicom_file,#,152
Before Change
img = _create_sitk_image(dcm_array)
sitk_origin = ref_origin if z_i > 0.0 else tuple(file_origin)
z_i = np.abs(z_i)
if "PixelSpacing" in ref_file:
x_i, y_i = (float(x) for x in ref_file.PixelSpacing)
else:
x_i = y_i = 1.0
sitk_spacing = (x_i, y_i, z_i)
if dimensions == 4:
sitk_spacing += (1.0,)
sitk_origin += (0.0,)
After Change
if origin is None:
origin = (0.0, 0.0, 0.0)
sitk_origin = ref_origin if z_i >= 0.0 else tuple(origin)
z_i = np.abs(z_i) if not np.isnan(z_i) else 1.0
if "PixelSpacing" in ref_file:
x_i, y_i = (float(x) for x in ref_file.PixelSpacing)
else:
x_i = y_i = 1.0
sitk_spacing = (x_i, y_i, z_i)
if dimensions == 4:
sitk_spacing += (1.0,)
sitk_origin += (0.0,)

In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: comic/grand-challenge.org
Commit Name: 3e8df2376596e7caa4af27fe8875f2b0c115f0dc
Time: 2020-03-24
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/dicom.py
Class Name:
Method Name: _process_dicom_file
Project Name: librosa/librosa
Commit Name: 7b9bf2b0ad074f35bef7bb513f5066af6adf1f9e
Time: 2014-02-25
Author: brm2132@columbia.edu
File Name: librosa/core.py
Class Name:
Method Name: logamplitude
Project Name: comic/grand-challenge.org
Commit Name: 3e8df2376596e7caa4af27fe8875f2b0c115f0dc
Time: 2020-03-24
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/dicom.py
Class Name:
Method Name: _process_dicom_file
Project Name: ntucllab/libact
Commit Name: c9b56d6f5811d35bb72fb4928faf292a149a4318
Time: 2015-12-29
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/uncertainty_sampling.py
Class Name: UncertaintySampling
Method Name: make_query
Project Name: librosa/librosa
Commit Name: 7474beb8e6f97ccad01bfe3cc60a299fe3ffec7c
Time: 2019-08-18
Author: brian.mcfee@nyu.edu
File Name: librosa/beat.py
Class Name:
Method Name: plp