@@ -786,8 +786,8 @@ def EdgeFinder(image,data):
786786 scalex = pixelSize [0 ]/ 1000.
787787 scaley = pixelSize [1 ]/ 1000.
788788 tay ,tax = np .mgrid [0 :Nx ,0 :Ny ]
789- tax = np .asfarray (tax * scalex ,dtype = np .float32 )
790- tay = np .asfarray (tay * scaley ,dtype = np .float32 )
789+ tax = np .asarray (tax * scalex ,dtype = np .float32 )
790+ tay = np .asarray (tay * scaley ,dtype = np .float32 )
791791 tam = ma .getmask (ma .masked_less (image .flatten (),edgemin ))
792792 tax = ma .compressed (ma .array (tax .flatten (),mask = tam ))
793793 tay = ma .compressed (ma .array (tay .flatten (),mask = tam ))
@@ -1238,8 +1238,8 @@ def Make2ThetaAzimuthMap(data,iLim,jLim): #most expensive part of integration!
12381238 scalex = pixelSize [0 ]/ 1000.
12391239 scaley = pixelSize [1 ]/ 1000.
12401240 tay ,tax = np .mgrid [iLim [0 ]+ 0.5 :iLim [1 ]+ .5 ,jLim [0 ]+ .5 :jLim [1 ]+ .5 ] #bin centers not corners
1241- tax = np .asfarray (tax * scalex ,dtype = np .float32 ).flatten ()
1242- tay = np .asfarray (tay * scaley ,dtype = np .float32 ).flatten ()
1241+ tax = np .asarray (tax * scalex ,dtype = np .float32 ).flatten ()
1242+ tay = np .asarray (tay * scaley ,dtype = np .float32 ).flatten ()
12431243 nI = iLim [1 ]- iLim [0 ]
12441244 nJ = jLim [1 ]- jLim [0 ]
12451245 TA = np .empty ((4 ,nI ,nJ ))
@@ -1325,8 +1325,8 @@ def MakeMaskMap(data,masks,iLim,jLim):
13251325 else :
13261326 masks ['Pmask' ] = []
13271327 tay ,tax = np .mgrid [iLim [0 ]+ 0.5 :iLim [1 ]+ .5 ,jLim [0 ]+ .5 :jLim [1 ]+ .5 ] #bin centers not corners
1328- tax = np .asfarray (tax * scalex ,dtype = np .float32 ).flatten ()
1329- tay = np .asfarray (tay * scaley ,dtype = np .float32 ).flatten ()
1328+ tax = np .asarray (tax * scalex ,dtype = np .float32 ).flatten ()
1329+ tay = np .asarray (tay * scaley ,dtype = np .float32 ).flatten ()
13301330 nI = iLim [1 ]- iLim [0 ]
13311331 nJ = jLim [1 ]- jLim [0 ]
13321332 #make position masks here
0 commit comments