performance improvement

this mapping is faster for large volumes
This commit is contained in:
navyanthkusam 2019-10-25 14:47:36 +02:00
parent 894b646283
commit fca288ae8a
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ class DADF5():
p = np.where(f['mapping/cellResults/constituent'][:,c]['Name'] == str.encode(label))[0]
if len(p)>0:
u = (f['mapping/cellResults/constituent'][p,c]['Position'])
u = (f['mapping/cellResults/constituent']['Position'][p,c])
a = np.array(f[pa])
if len(a.shape) == 1:
a=a.reshape([a.shape[0],1])