Bug #69

Simulation grid problem when not square shape

Added by a.glavic almost 8 years ago. Updated almost 8 years ago.

Status:ArchivedStart date:02 Aug 2012
Priority:LowDue date:
Assignee:herck% Done:

100%

Category:-
Target version:-

Description

When the simulation grid in the python GISASExperiment class is set using setDetectorParameters and the number of points in x and y differ the resulting image is mixed up.
This seems to be an index issue where x and y columns/lines are mixed up.

problem_grid.png (86.3 KB) a.glavic, 02 Aug 2012 14:50

square_grid.png (50.1 KB) a.glavic, 02 Aug 2012 14:50

History

#1 Updated by a.glavic almost 8 years ago

#2 Updated by a.glavic almost 8 years ago

#3 Updated by a.glavic almost 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Was only a problem with the mesh grid creation in the python script as the output matrix of GISASFW is transposed to what numpy expects.
To resolve replace:
Y,X = pylab.meshgrid(y,x)
pylab.pcolormesh(X,Y,output, norm=LogNorm(0.1, 1e+05) )
with:
X,Y = pylab.meshgrid(x,y)
pylab.pcolormesh(Y,X,output, norm=LogNorm(0.1, 1e+05) )

#4 Updated by pospelov almost 8 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF