61a0663a45beb2e59f6a549c51d55940c80734e3,niftynet/io/image_as_nibabel.py,,,#,11
Before Change
from niftynet.utilities.util_import import require_module
SKIO = require_module("skimage.io", (0, 13, 0))
USE_SKIMAGE = True
tf.logging.info("+++ Using SKIMAGE as Image Loading backend")
except (ImportError, AssertionError):
tf.logging.info("+++ Using PIL as Image Loading backend")
USE_SKIMAGE = False
After Change
for loader in EXTERNAL_LOADERS:
try:
// Default params
min_ver = loader.get("version", None)
args = loader.get("args", tuple())
kwargs = loader.get("kwargs", dict())
// Retrieve external function
external_module = require_module(loader["module"], min_version=min_ver)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: NifTK/NiftyNet
Commit Name: 61a0663a45beb2e59f6a549c51d55940c80734e3
Time: 2018-03-05
Author: rmaplue@ucl.ac.uk
File Name: niftynet/io/image_as_nibabel.py
Class Name:
Method Name:
Project Name: allenai/allennlp
Commit Name: 87c23e4a7e25d81e91ba8234eef38b5395993c51
Time: 2020-06-12
Author: epwalsh10@gmail.com
File Name: allennlp/training/util.py
Class Name:
Method Name: make_vocab_from_params
Project Name: uber/ludwig
Commit Name: fcb01e3b18c0b3304c4ff0b1f0b8b4ede518f762
Time: 2020-12-03
Author: jimthompson5802@gmail.com
File Name: ludwig/features/numerical_feature.py
Class Name: NumericalFeatureMixin
Method Name: get_feature_meta