Changeset 4035


Ignore:
Timestamp:
Jun 21, 2019 10:31:17 AM (2 years ago)
Author:
vondreele
Message:

xline & yline masks now correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r4034 r4035  
    909909    for xline in masks.get('Xlines',[]):    #a y pixel position
    910910        if iLim[0] <= xline <= iLim[1]:
    911             tam[iLim[1]-xline,:] = True
     911            tam[xline-iLim[0],:] = True
    912912    for yline in masks.get('Ylines',[]):    #a x pixel position
    913913        if jLim[0] <= yline <= jLim[1]:
    914             tam[:,jLim[1]-yline] = True           
     914            tam[:,yline-jLim[0]] = True           
    915915    return tam           #position mask
    916916
Note: See TracChangeset for help on using the changeset viewer.