Changeset 246


Ignore:
Timestamp:
Oct 29, 2009, 5:09:42 PM (11 years ago)
Author:
marchulsman
Message:

Set operation bug solved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • container/qg_translate.py

    r243 r246  
    507507                sdata = numpy.unique1d(xnumpy.dimarray(adata.tolist(),object)).tolist()
    508508                sdata = itypes_py.transpose(sdata)
    509                 nfields = [node.fields[i] for i in node.actidx]
     509                nfields = node.fields
    510510                if(len(sdata)>0):
    511511                    data = tuple(xnumpy.dimarray(col,itypes_py.to_numpy(nfields[i].type)) for i,col in enumerate(sdata))
     
    523523                sdata = numpy.intersect1d_nu(xnumpy.dimarray(aldata.tolist(),object),xnumpy.dimarray(ardata.tolist(),object)).tolist()
    524524                sdata = itypes_py.transpose(sdata)
    525                 nfields = [node.fields[i] for i in node.actidx]
     525                nfields = node.fields
    526526                if(len(sdata)>0):
    527527                    data = tuple(xnumpy.dimarray(col,itypes_py.to_numpy(nfields[i].type)) for i,col in enumerate(sdata))
     
    537537                ardata = set([tuple(row) for row in numpy.array(tuple(rr.data),dtype=object).T])
    538538                sdata = itypes_py.transpose(list(aldata - ardata))
    539                 nfields = [node.fields[i] for i in node.actidx]
     539                nfields = node.fields
    540540                if(len(sdata)>0):
    541541                    data = tuple(xnumpy.dimarray(col,itypes_py.to_numpy(nfields[i].type)) for i,col in enumerate(sdata))
Note: See TracChangeset for help on using the changeset viewer.