9aae219f8ef4f9850cd8ea7001d711bdb54721bf,hypertools/tools/load.py,,load,#Any#Any#Any#Any#Any#Any#,29
Before Change
if dataset in ("wiki_model", "sotus", "wiki"):
return data
else:
return (analyze(data[0], reduce=reduce, ndims=ndims, align=align, normalize=normalize), data[1])
else:
raise RuntimeError("No data loaded. Please specify a .geo file or "
"one of the following sample files: weights, "
"weights_avg, weights_sample, spiral, mushrooms or "
After Change
if data is not None:
if dataset in ("wiki_model"):
return data
if isinstance(data, DataGeometry):
opts = {}
if reduce:
opts.update(dict(reduce=reduce))
if ndims:
opts.update(dict(ndims=ndims))
if align:
opts.update(dict(align=align))
if normalize:
opts.update(dict(normalize=normalize))
if opts:
return data.plot(data=data.get_data(), show=False, **opts)
else:
return data
else:
return analyze(data, reduce=reduce, ndims=ndims, align=align, normalize=normalize)
def _load_data(dataset, fileid):
fullpath = os.path.join(homedir, "hypertools_data", dataset)
if not os.path.exists(datadir):
os.makedirs(datadir)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: ContextLab/hypertools
Commit Name: 9aae219f8ef4f9850cd8ea7001d711bdb54721bf
Time: 2018-02-22
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/load.py
Class Name:
Method Name: load
Project Name: ContextLab/hypertools
Commit Name: 6ff1611638814ce19bc7284110bdfcf038f4843c
Time: 2018-02-20
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/load.py
Class Name:
Method Name: load
Project Name: ContextLab/hypertools
Commit Name: 2df451029d31850d7f5353b3786b875f17f740a5
Time: 2018-04-06
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/load.py
Class Name:
Method Name: load