Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

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
1 changed files with 3 additions and 0 deletions

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):