Changed CategoryDataset ftsv files to be written with 0 and 1 instead of True and False.

This commit is contained in:
Einar Ryeng 2007-02-28 16:33:11 +00:00
parent 89636962a7
commit 6101bf850c

View File

@ -412,6 +412,9 @@ def write_ftsv(fd, ds):
# Write data
m = ds.asarray()
if type == 'category':
m = m.astype('i')
y, x = m.shape
for j in range(y):
for i in range(x):