def write_test_file(self, variable='v', check=False):
data, metadata = self.build_test_data(variable)
with open(self.test_file, 'wb') as f:
for item in sorted(metadata.items()):
f.write(("# %s = %s\n" % item).encode('utf8'))
np.savetxt(f, data)
if check:
raise NotImplementedError
评论列表
文章目录