data = _load_data(dataset, datadict[dataset])
if data is not None:
return analyze(data, reduce=reduce, ndims=ndims, align=align, normalize=normalize)
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 dataset in ("wiki_model", "sotus"):
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, "