1cf1a4c00ba6404bb7387c722187a22357b2f193,mltsp/custom_feature_tools.py,,parse_tsdata_from_file,#Any#,355
Before Change
def parse_tsdata_from_file(ts_datafile_path):
tme = []
with open(ts_datafile_path) as f:
all_lines = f.readlines()
for i in range(len(all_lines)):
if all_lines[i].strip() == "":
continue
else:
tme.append([x.strip() for x in all_lines[i].strip().split(",")])
return tme
def add_tsdata_to_feats_known_dict(features_already_known_list,
After Change
with open(ts_datafile_path) as f:
ts_data = np.loadtxt(f, delimiter=",")
ts_data = ts_data[:,: 3].tolist() // Only using T, M, E; convert to list
for row in ts_data:
if len(row) < 2:
raise custom_exceptions.DataFormatError(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: cesium-ml/cesium
Commit Name: 1cf1a4c00ba6404bb7387c722187a22357b2f193
Time: 2015-02-13
Author: a.crellinquick@gmail.com
File Name: mltsp/custom_feature_tools.py
Class Name:
Method Name: parse_tsdata_from_file
Project Name: NifTK/NiftyNet
Commit Name: 0a3c1aa4d67cb9c49f22a87bef180c07dfafec8a
Time: 2017-06-16
Author: wenqi.li@ucl.ac.uk
File Name: testing/get_gpu_index.py
Class Name:
Method Name:
Project Name: NifTK/NiftyNet
Commit Name: aa495c2ace9444aa5028f699ae62dddef45ab7d9
Time: 2017-06-15
Author: wenqi.li@ucl.ac.uk
File Name: testing/get_gpu_index.py
Class Name:
Method Name: