project_name
string
class_name
string
class_modifiers
string
class_implements
int64
class_extends
int64
function_name
string
function_body
string
cyclomatic_complexity
int64
NLOC
int64
num_parameter
int64
num_token
int64
num_variable
int64
start_line
int64
end_line
int64
function_index
int64
function_params
string
function_variable
string
function_return_type
string
function_body_line_type
string
function_num_functions
int64
function_num_lines
int64
outgoing_function_count
int64
outgoing_function_names
string
incoming_function_count
int64
incoming_function_names
string
lexical_representation
string
AdvancedPhotonSource_GSAS-II
public
public
0
0
FitImageSpots.calc2Peak
def calc2Peak(values,nxy,pixSize,img):back,mag,px,py,sigx,sigy,rho = valuespeak = np.zeros([nxy,nxy])+backnor = 1./(2.*np.pi*sigx*sigy*np.sqrt(1.-rho**2))gdx,gdy = np.mgrid[0:nxy,0:nxy]gdx = (gdx-nxy//2)*pixSize[0]/1000.gdy = (gdy-nxy//2)*pixSize[1]/1000.argnor = -1./(2.*(1.-rho**2))arg = (gdx-px)**2/sigx**2+(gdy-py)**...
1
11
4
201
0
1,786
1,796
1,786
null
[]
None
null
0
0
0
null
0
null
The function (FitImageSpots.calc2Peak) defined within the public class called public.The function start at line 1786 and ends at 1796. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1786.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
FitImageSpots
def FitImageSpots(Image,ImMax,ind,pixSize,nxy,spotSize=1.0):'''Used with "s" key in image plots to search for spot masks'''def calcMean(nxy,pixSize,img):gdx,gdy = np.mgrid[0:nxy,0:nxy]gdx = ma.array((gdx-nxy//2)*pixSize[0]/1000.,mask=~ma.getmaskarray(ImBox))gdy = ma.array((gdy-nxy//2)*pixSize[1]/1000.,mask=~ma.getmaska...
6
27
6
350
17
1,764
1,820
1,764
null
['gdx', 'arg', 'ImBox', 'vals', 'peak', 'nor', 'px', 'posx', 'gdy', 'posy', 'back', 'py', 'argnor', 'result', 'ratio', 'mag', 'nxy2']
None
null
0
0
0
null
0
null
The function (FitImageSpots) defined within the public class called public.The function start at line 1764 and ends at 1820. It contains 27 lines of code and it has a cyclomatic complexity of 6. It takes 6 parameters, represented as [1764.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
TestFastPixelMask
def TestFastPixelMask():'''Test if the fast (C) version of Auto Pixel Masking is available.:returns: True if the airxd.mask package can be imported; False otherwise.'''try:if GSASIIpath.binaryPath:import fmaskelse:from . import fmaskexcept ModuleNotFoundError:if GSASIIpath.GetConfigValue('debug'): print('fmask not foun...
4
10
0
39
0
1,822
1,835
1,822
null
[]
None
null
0
0
0
null
0
null
The function (TestFastPixelMask) defined within the public class called public.The function start at line 1822 and ends at 1835. It contains 10 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
FastAutoPixelMask
def FastAutoPixelMask(Image, Masks, Controls, numChans, dlg=None):'''Find "bad" regions on an image and create a pixel mask to remove them.This works by masking pixels that are m*sigma outside the range of themedian at that radial distance using the using the fmask C module (based on theAIRXD C++ code https://github.co...
7
27
5
299
10
1,837
1,895
1,837
null
['ttmax', 'TA', 'frame', 'TThs', 'masked', 'LUtth', 'outMask', 'esdMul', 'tam', 'ttmin']
None
null
0
0
0
null
0
null
The function (FastAutoPixelMask) defined within the public class called public.The function start at line 1837 and ends at 1895. It contains 27 lines of code and it has a cyclomatic complexity of 7. It takes 5 parameters, represented as [1837.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
AutoPixelMask.MAD
def MAD(args,**kwargs):kwargs['scale'] = 1.4826return newMAD(args,**kwargs)
1
3
2
24
0
1,923
1,925
1,923
null
[]
None
null
0
0
0
null
0
null
The function (AutoPixelMask.MAD) defined within the public class called public.The function start at line 1923 and ends at 1925. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1923.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
AutoPixelMask
def AutoPixelMask(Image, Masks, Controls, numChans, dlg=None):'''Find "bad" regions on an image and creata a pixel mask to remove them.This works by masking pixels that are well outside the range of themedian at that radial distance.This is ~4x faster than the original version from RBVD.Developed by Howard Yanxon, Wenq...
12
44
5
412
15
1,897
1,969
1,897
null
['dtth', 'TA', 'median', 'frame', 'TThs', 'band', 'LUtth', 'mad', 'esdMul', 'mask', 'bin', 'anom', 'GoOn', 'tam', 'masker']
None
null
0
0
0
null
0
null
The function (AutoPixelMask) defined within the public class called public.The function start at line 1897 and ends at 1969. It contains 44 lines of code and it has a cyclomatic complexity of 12. It takes 5 parameters, represented as [1897.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
DoPolaCalib.func
def func(p):p = min(1.0,max(p,0.0))data['PolaVal'][0] = pH0 = ImageIntegrate(ImageZ,data,Masks)[0]H0A = ImageIntegrate(ImageZ,data,AMasks)[0]M = np.sum(H0)-np.sum(H0A)print(' Polarization %.4f, fxn: %.1f'%(p,M))return M**2
1
8
1
86
0
1,991
1,998
1,991
null
[]
None
null
0
0
0
null
0
null
The function (DoPolaCalib.func) defined within the public class called public.The function start at line 1991 and ends at 1998. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
DoPolaCalib
def DoPolaCalib(ImageZ,imageData,arcTth):''' Determine image polarization by successive integrations with & without preset arc mask.After initial search, does a set of five with offset azimuth to get mean(std) result.'''from scipy.optimize import minimize_scalarprint(' Polarization fit for mask at %.1f deg 2-theta'%arc...
2
36
3
496
14
1,971
2,018
1,971
null
['res', 'std', 'data', 'Pola', 'pola', 'H0', 'time0', 'mean', 'AMasks', 'H0A', 'M', 'p', 'Masks', 'Arc']
None
null
0
0
0
null
0
null
The function (DoPolaCalib) defined within the public class called public.The function start at line 1971 and ends at 2018. It contains 36 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [1971.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
GetImageZ
def GetImageZ(G2frame,data,newRange=False):'''Gets image & applies dark, background & flat background corrections.:param wx.Frame G2frame: main GSAS-II frame:param dict data: Image Controls dictionary:returns: array sumImg: corrected image for background/dark/flat back'''# Note that routine GSASIIscriptable._getCorrIma...
18
52
3
573
18
63
126
63
null
['Gdata', 'GMimage', 'sumImg', 'Imax', 'backImage', 'bformatName', 'Bid', 'Bdata', 'GMid', 'gformat', 'dformatName', 'Did', 'Imin', 'Ddata', 'darkImg', 'formatName', 'gainMap', 'darkImage']
None
null
0
0
0
null
0
null
The function (GetImageZ) defined within the public class called public.The function start at line 63 and ends at 126. It contains 52 lines of code and it has a cyclomatic complexity of 18. It takes 3 parameters, represented as [63.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageData.OnPixVal
def OnPixVal(invalid,value,tc):G2plt.PlotExposedImage(G2frame,newPlot=True,event=tc.event)
1
2
3
25
0
130
131
130
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageData.OnPixVal) defined within the public class called public.The function start at line 130 and ends at 131. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [130.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageData.OnPolaCalib
def OnPolaCalib(event):if data['IOtth'][1] < 34.:G2G.G2MessageBox(G2frame,'Maximum 2-theta not greater than 34 deg','Polarization Calibration Error')returnIOtth = [32.,data['IOtth'][1]-2.]dlg = G2G.SingleFloatDialog(G2frame,'Polarization test arc mask',
2
7
1
55
0
133
139
133
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageData.OnPolaCalib) defined within the public class called public.The function start at line 133 and ends at 139. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageData
def UpdateImageData(G2frame,data):def OnPixVal(invalid,value,tc):G2plt.PlotExposedImage(G2frame,newPlot=True,event=tc.event)def OnPolaCalib(event):if data['IOtth'][1] < 34.:G2G.G2MessageBox(G2frame,'Maximum 2-theta not greater than 34 deg','Polarization Calibration Error')returnIOtth = [32.,data['IOtth'][1]-2.]dlg = G2...
1
3
2
11
0
128
139
128
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageData) defined within the public class called public.The function start at line 128 and ends at 139. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [128.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnCalibrate
def OnCalibrate(event):if not data['calibrant']:G2G.G2MessageBox(G2frame,'No calibrant material specified.\n'+ 'Please correct this and try again.')returnG2frame.GetStatusBar().SetStatusText('Select > 4 points on 1st used ring; LB to pick (shift key to force pick), RB on point to delete else RB to finish',1)G2frame.ifG...
2
7
1
40
0
295
301
295
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnCalibrate) defined within the public class called public.The function start at line 295 and ends at 301. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnRecalibrate
def OnRecalibrate(event):'''Use existing calibration values as starting point for a calibrationfit'''G2img.ImageRecalibrate(G2frame,G2frame.ImageZ,data,masks)wx.CallAfter(UpdateImageControls,G2frame,data,masks)
1
3
1
32
0
303
308
303
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnRecalibrate) defined within the public class called public.The function start at line 303 and ends at 308. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnRecalibAll
def OnRecalibAll(event):'''Use existing calibration values as starting point for a calibrationfit for a selected series of images'''Id = NoneNames = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])dlg = G2G.G2MultiChoiceDialog(G2frame,'Image calibration controls','Select images to recalibrate:',Names)try:if dlg.ShowModal() ...
8
47
1
422
0
310
364
310
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnRecalibAll) defined within the public class called public.The function start at line 310 and ends at 364. It contains 47 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnMultiGainMap
def OnMultiGainMap(event):Id = NoneNames = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])First = Truedlg = G2G.G2MultiChoiceDialog(G2frame,'Image calibration controls','Select images for gain map:',Names)try:if dlg.ShowModal() == wx.ID_OK:items = dlg.GetSelections()G2frame.EnablePlot = Falsefor item in items:name = Names[...
9
84
1
925
0
366
452
366
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnMultiGainMap) defined within the public class called public.The function start at line 366 and ends at 452. It contains 84 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnCalcRings
def OnCalcRings(event):'''Use existing calibration values to compute rings & display them'''G2img.CalcRings(G2frame,G2frame.ImageZ,data,masks)G2plt.PlotExposedImage(G2frame,event=None)wx.CallAfter(UpdateImageControls,G2frame,data,masks)
1
4
1
42
0
454
459
454
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnCalcRings) defined within the public class called public.The function start at line 454 and ends at 459. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnDistRecalib
def OnDistRecalib(event):'''Assemble rings & calibration input for a series of images withdiffering distances'''obsArr = np.array([]).reshape(0,4)parmDict = {}varList = []HKL = {}Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])startID = G2frame.GPXtree.GetSelection()dlg = G2G.G2MultiChoiceDialog(G2frame,'Image calib...
20
102
1
908
0
461
603
461
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnDistRecalib) defined within the public class called public.The function start at line 461 and ends at 603. It contains 102 lines of code and it has a cyclomatic complexity of 20. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnClearCalib
def OnClearCalib(event):data['ring'] = []data['rings'] = []data['ellipses'] = []G2plt.PlotExposedImage(G2frame,event=event)
1
5
1
36
0
611
615
611
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnClearCalib) defined within the public class called public.The function start at line 611 and ends at 615. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.ResetThresholds
def ResetThresholds():Imin = max(0.,np.min(G2frame.ImageZ))Imax = np.max(G2frame.ImageZ)data['range'] = [(0,Imax),[Imin,Imax]]masks['Thresholds'] = [(0,Imax),[Imin,Imax]]G2frame.slideSizer.GetChildren()[1].Window.ChangeValue(Imax) #tricky G2frame.slideSizer.GetChildren()[4].Window.ChangeValue(Imin) #tricky
1
7
0
100
0
617
623
617
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.ResetThresholds) defined within the public class called public.The function start at line 617 and ends at 623. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnIntegrate
def OnIntegrate(event,useTA=None,useMask=None):'''Integrate image in response to a menu event or from the AutoIntegratedialog. In the latter case, event=None.'''CleanupMasks(masks)sumImg = GetImageZ(G2frame,data)if masks.get('SpotMask',{'spotMask':None})['spotMask'] is not None:sumImg = ma.array(sumImg,mask=masks['Spot...
3
13
3
155
0
625
640
625
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnIntegrate) defined within the public class called public.The function start at line 625 and ends at 640. It contains 13 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [625.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnIntegrateAll
def OnIntegrateAll(event):Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])dlg = G2G.G2MultiChoiceDialog(G2frame,'Image integration controls','Select images to integrate:',Names)try:if dlg.ShowModal() != wx.ID_OK: returnitems = dlg.GetSelections()G2frame.EnablePlot = Falsedlgp = wx.ProgressDialog("Elapsed time","2D i...
14
62
1
549
0
642
703
642
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnIntegrateAll) defined within the public class called public.The function start at line 642 and ends at 703. It contains 62 lines of code and it has a cyclomatic complexity of 14. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnCopyControls
def OnCopyControls(event):Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])if len(Names) == 1:G2frame.ErrorDialog('Nothing to copy controls to','There must be more than one "IMG" pattern')returnSource = G2frame.GPXtree.GetItemText(G2frame.Image)Names.pop(Names.index(Source))# select targets & do copydlg = G2G.G2Multi...
8
34
1
345
0
705
739
705
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnCopyControls) defined within the public class called public.The function start at line 705 and ends at 739. It contains 34 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnCopySelected
def OnCopySelected(event):Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])if len(Names) == 1:G2frame.ErrorDialog('Nothing to copy controls to','There must be more than one "IMG" pattern')returnSource = G2frame.GPXtree.GetItemText(G2frame.Image)# Assemble a list of item labelskeyList = ['type','color','wavelength','c...
11
37
1
327
0
741
779
741
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnCopySelected) defined within the public class called public.The function start at line 741 and ends at 779. It contains 37 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnSaveControls
def OnSaveControls(event):pth = G2G.GetExportPath(G2frame)dlg = wx.FileDialog(G2frame, 'Choose image controls file', pth, '','image control files (*.imctrl)|*.imctrl',wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)try:if dlg.ShowModal() == wx.ID_OK:filename = dlg.GetPath()# make sure extension is .imctrlfilename = os.path.splitext(...
3
11
1
87
0
781
792
781
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnSaveControls) defined within the public class called public.The function start at line 781 and ends at 792. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnSaveMultiControls
def OnSaveMultiControls(event):'''Save controls from multiple images'''imglist = []item, cookie = G2frame.GPXtree.GetFirstChild(G2frame.root)while item:name = G2frame.GPXtree.GetItemText(item)if name.startswith('IMG '):imglist.append(name)item, cookie = G2frame.GPXtree.GetNextChild(G2frame.root, cookie)if not imglist:p...
12
44
1
307
0
794
839
794
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnSaveMultiControls) defined within the public class called public.The function start at line 794 and ends at 839. It contains 44 lines of code and it has a cyclomatic complexity of 12. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnLoadControls
def OnLoadControls(event):pth = G2G.GetImportPath(G2frame)if not pth: pth = '.'dlg = wx.FileDialog(G2frame, 'Choose image controls file', pth, '','image control files (*.imctrl)|*.imctrl',wx.FD_OPEN)try:if dlg.ShowModal() == wx.ID_OK:filename = dlg.GetPath()File = open(filename,'r')Slines = File.readlines()File.close()...
4
18
1
132
0
841
858
841
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnLoadControls) defined within the public class called public.The function start at line 841 and ends at 858. It contains 18 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnLoadMultiControls
def OnLoadMultiControls(event): #TODO: how read in multiple image controls & match them by 'twoth' tag?print('This is not implemented yet, sorry')G2G.G2MessageBox(G2frame,'This is not implemented yet, sorry')returnpth = G2G.GetImportPath(G2frame)if not pth: pth = '.'controlsDict = {}dlg = wx.FileDialog(G2frame, 'Choose...
13
40
1
287
0
860
899
860
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnLoadMultiControls) defined within the public class called public.The function start at line 860 and ends at 899. It contains 40 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnTransferAngles
def OnTransferAngles(event):'''Sets the integration range for the selected Images based on the difference in detector distance'''Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])if len(Names) == 1:G2frame.ErrorDialog('No images to transfer integration angles to','Need more "IMG"s')returnSource = G2frame.GPXtree.GetIt...
11
55
1
513
0
901
958
901
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnTransferAngles) defined within the public class called public.The function start at line 901 and ends at 958. It contains 55 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnResetDist
def OnResetDist(event):dlg = wx.MessageDialog(G2frame,'Are you sure you want to do this?',caption='Reset dist to set dist',style=wx.YES_NO|wx.ICON_EXCLAMATION)if dlg.ShowModal() != wx.ID_YES:dlg.Destroy()returndlg.Destroy()Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])dlg = G2G.G2MultiChoiceDialog(G2frame,'Reset d...
5
19
1
170
0
960
978
960
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnResetDist) defined within the public class called public.The function start at line 960 and ends at 978. It contains 19 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.ComboSizer.OnDataType
def OnDataType(event):data['type'] = typeSel.GetValue()[:4]if 'SASD' in data['type']:data['SampleAbs'][0] = np.exp(-data['SampleAbs'][0]) #switch from muT to trans!if data['binType'] == '2-theta': data['binType'] = 'log(q)'#switch default bin typeelif 'PWDR' in data['type']:data['SampleAbs'][0] = -np.log(data['SampleAb...
5
9
1
119
0
984
992
984
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.ComboSizer.OnDataType) defined within the public class called public.The function start at line 984 and ends at 992. It contains 9 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.ComboSizer.OnNewColorBar
def OnNewColorBar(event):data['color'] = colSel.GetValue()wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)
1
3
1
29
0
994
996
994
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.ComboSizer.OnNewColorBar) defined within the public class called public.The function start at line 994 and ends at 996. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.ComboSizer.OnAzmthOff
def OnAzmthOff(invalid,value,tc):wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=tc.event)
1
2
3
25
0
998
999
998
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.ComboSizer.OnAzmthOff) defined within the public class called public.The function start at line 998 and ends at 999. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [998.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.ComboSizer
def ComboSizer():def OnDataType(event):data['type'] = typeSel.GetValue()[:4]if 'SASD' in data['type']:data['SampleAbs'][0] = np.exp(-data['SampleAbs'][0]) #switch from muT to trans!if data['binType'] == '2-theta': data['binType'] = 'log(q)'#switch default bin typeelif 'PWDR' in data['type']:data['SampleAbs'][0] = -np.l...
1
21
0
249
0
982
1,017
982
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.ComboSizer) defined within the public class called public.The function start at line 982 and ends at 1017. It contains 21 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.MaxSizer.OnNewVal
def OnNewVal(invalid,value,tc):'''Called when a Imax or Imin value is typed into a Validated TextCrtl (which putsthe value into the data['range'] nested list).This adjusts the slider positions to match the current values'''scaleSel.SetSelection(len(scaleChoices)-1)r11 = min(max(Range[1][1],Range[1][0]+1),Range[0][1]) #...
4
23
3
411
0
1,023
1,049
1,023
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.MaxSizer.OnNewVal) defined within the public class called public.The function start at line 1023 and ends at 1049. It contains 23 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [1023.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.MaxSizer.OnMaxSlider
def OnMaxSlider(event):val = maxSel.GetValue()if G2frame.prevMaxValue == val: return # if this val has been processed, no need to repeatscaleSel.SetSelection(len(scaleChoices)-1)G2frame.prevMaxValue = valsqrtDeltZero = math.sqrt(max(1.0,Range[0][1]-max(0.0,Range[1][0])-1)) # sqrt(Imax0-Imin-1)Range[1][1] = int(0.5 + (v...
3
18
1
300
0
1,052
1,069
1,052
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.MaxSizer.OnMaxSlider) defined within the public class called public.The function start at line 1052 and ends at 1069. It contains 18 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.MaxSizer.OnMinSlider
def OnMinSlider(event):val = minSel.GetValue()scaleSel.SetSelection(len(scaleChoices)-1)if G2frame.prevMinValue == val: return # if this val has been processed, no need to repeatG2frame.prevMinValue = valDeltOne= max(1.0,Range[1][1]-max(0.0,Range[0][0])-1) # Imax-Imin0-1Range[1][0] = max(0,int(0.5 + val * DeltOne / 100...
3
18
1
291
0
1,072
1,089
1,072
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.MaxSizer.OnMinSlider) defined within the public class called public.The function start at line 1072 and ends at 1089. It contains 18 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.MaxSizer.OnAutoSet
def OnAutoSet(event):'''Responds to a button labeled 95%, etc; Sets the Imax and Imin valuesfor the image so that 95% (etc.) of pixels are inside the color map limits.An equal number of pixels are dropped at the minimum and maximum levels.'''try:val = int(event.GetEventObject().GetStringSelection()[:-1])margin = (100-v...
4
28
1
439
0
1,091
1,122
1,091
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.MaxSizer.OnAutoSet) defined within the public class called public.The function start at line 1091 and ends at 1122. It contains 28 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.MaxSizer.OnLineScan
def OnLineScan(event):data['linescan'][0] = linescan.GetValue()wx.CallAfter(UpdateImageControls,G2frame,data,masks)G2plt.PlotExposedImage(G2frame,event=event)
1
4
1
40
0
1,124
1,127
1,124
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.MaxSizer.OnLineScan) defined within the public class called public.The function start at line 1124 and ends at 1127. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.MaxSizer.OnNewLineScan
def OnNewLineScan(invalid,value,tc):G2plt.PlotExposedImage(G2frame,event=None)
1
2
3
19
0
1,129
1,130
1,129
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.MaxSizer.OnNewLineScan) defined within the public class called public.The function start at line 1129 and ends at 1130. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [1129.0] and does not return any value....
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.MaxSizer.OnMoveAzm
def OnMoveAzm(event):incr = azmSpin.GetValue()if incr == 0: return # ignore SetValue(0) eventdata['linescan'][1] += float(incr)data['linescan'][1] = data['linescan'][1]%360.G2frame.scanazm.ChangeValue(data['linescan'][1])wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)azmSpin.SetValue(0) # causes an event, at l...
2
8
1
82
0
1,132
1,139
1,132
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.MaxSizer.OnMoveAzm) defined within the public class called public.The function start at line 1132 and ends at 1139. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.MaxSizer
def MaxSizer():'''Defines a sizer with sliders and TextCtrl widgets for controlling the colormapfor the image, as well as callback routines.'''def OnNewVal(invalid,value,tc):'''Called when a Imax or Imin value is typed into a Validated TextCrtl (which putsthe value into the data['range'] nested list).This adjusts the s...
6
66
0
887
0
1,019
1,206
1,019
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.MaxSizer) defined within the public class called public.The function start at line 1019 and ends at 1206. It contains 66 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.CalibCoeffSizer.OnCalRef
def OnCalRef(event):Obj = event.GetEventObject()name = Indx[Obj]data['varyList'][name] = Obj.GetValue()
1
4
1
31
0
1,210
1,213
1,210
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.CalibCoeffSizer.OnCalRef) defined within the public class called public.The function start at line 1210 and ends at 1213. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.CalibCoeffSizer
def CalibCoeffSizer():def OnCalRef(event):Obj = event.GetEventObject()name = Indx[Obj]data['varyList'][name] = Obj.GetValue()calibSizer = wx.FlexGridSizer(0,2,5,5)calibSizer.SetFlexibleDirection(wx.HORIZONTAL)calibSizer.Add(wx.StaticText(parent=G2frame.dataWindow,label=' Calibration coefficients'),0,WACV)calibSizer.Add...
5
30
0
445
0
1,208
1,242
1,208
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.CalibCoeffSizer) defined within the public class called public.The function start at line 1208 and ends at 1242. It contains 30 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnNewBinType
def OnNewBinType(event):data['binType'] = binSel.GetValue()wx.CallLater(100,UpdateImageControls,G2frame,data,masks)
1
3
1
29
0
1,246
1,248
1,246
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnNewBinType) defined within the public class called public.The function start at line 1246 and ends at 1248. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value....
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnIOtth
def OnIOtth(invalid,value,tc):'''Respond to a change in integration 2theta range'''Ltth,Utth = IOtthif Ltth > Utth:Ltth,Utth = Utth,LtthG2frame.InnerTth.ChangeValue(Ltth)G2frame.OuterTth.ChangeValue(Utth)if 'q' in data['binType'].lower():data['IOtth'] = [2.*asind(Ltth*wave/(4.*math.pi)),2.*asind(Utth*wave/(4.*math.pi))...
3
11
3
127
0
1,250
1,262
1,250
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnIOtth) defined within the public class called public.The function start at line 1250 and ends at 1262. It contains 11 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [1250.0] and does not return any value...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnLRazim
def OnLRazim(invalid,value,tc):'''Respond to a change in integration azimuth range'''Lazm = data['LRazimuth'][0] % 360.Razm = data['LRazimuth'][1] % 360.if Lazm > Razm:Razm += 360.if data['fullIntegrate']:Razm = Lazm+360.# if data['LRazimuth'][0] != Lazm or data['LRazimuth'][1] != Razm:# G2frame.Lazim.ChangeValue(Lazm)...
3
10
3
93
0
1,264
1,278
1,264
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnLRazim) defined within the public class called public.The function start at line 1264 and ends at 1278. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [1264.0] and does not return any valu...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnNumOutAzms
def OnNumOutAzms(invalid,value,tc):wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=tc.event)
1
2
3
25
0
1,280
1,281
1,280
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnNumOutAzms) defined within the public class called public.The function start at line 1280 and ends at 1281. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [1280.0] and does not return any v...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnNumOutBins
def OnNumOutBins(invalid,value,tc):# make sure # channels is divisible by 4data['outChannels'] = (data['outChannels']//4)*4outChan.ChangeValue(data['outChannels'])
1
3
3
29
0
1,283
1,286
1,283
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnNumOutBins) defined within the public class called public.The function start at line 1283 and ends at 1286. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [1283.0] and does not return any v...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnOblique
def OnOblique(event):data['Oblique'][1] = not data['Oblique'][1]
1
2
1
21
0
1,288
1,289
1,288
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnOblique) defined within the public class called public.The function start at line 1288 and ends at 1289. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnSampleShape
def OnSampleShape(event):data['SampleShape'] = samShape.GetValue()if 'Cylind' in data['SampleShape']:data['SampleAbs'][0] = 0.0elif 'Fixed' in data['SampleShape']:data['SampleAbs'][0] = 1.0wx.CallLater(100,UpdateImageControls,G2frame,data,masks)
3
7
1
67
0
1,291
1,297
1,291
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnSampleShape) defined within the public class called public.The function start at line 1291 and ends at 1297. It contains 7 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnSamAbs
def OnSamAbs(event):data['SampleAbs'][1] = not data['SampleAbs'][1]wx.CallLater(100,UpdateImageControls,G2frame,data,masks)
1
3
1
35
0
1,299
1,301
1,299
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnSamAbs) defined within the public class called public.The function start at line 1299 and ends at 1301. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnShowLines
def OnShowLines(event):data['showLines'] = not data['showLines']G2plt.PlotExposedImage(G2frame,event=event)
1
3
1
25
0
1,303
1,305
1,303
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnShowLines) defined within the public class called public.The function start at line 1303 and ends at 1305. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnFullIntegrate
def OnFullIntegrate(event):Lazm = data['LRazimuth'][0]if data['fullIntegrate']:data['fullIntegrate'] = Falsedata['LRazimuth'] = [Lazm,Lazm+20.]else:data['fullIntegrate'] = Truedata['LRazimuth'] = [Lazm,Lazm+360.]wx.CallLater(100,UpdateImageControls,G2frame,data,masks)G2plt.PlotExposedImage(G2frame,event=event)
2
10
1
84
0
1,307
1,316
1,307
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnFullIntegrate) defined within the public class called public.The function start at line 1307 and ends at 1316. It contains 10 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any va...
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnSetDefault
def OnSetDefault(event):if data['setDefault']:G2frame.imageDefault = {}data['setDefault'] = Falseelse:G2frame.imageDefault = copy.deepcopy(data)G2frame.imageDefault['setDefault'] = Falseif 'formatName' in G2frame.imageDefault: del G2frame.imageDefault['formatName']data['setDefault'] = True
3
9
1
63
0
1,318
1,326
1,318
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnSetDefault) defined within the public class called public.The function start at line 1318 and ends at 1326. It contains 9 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value....
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnCenterAzm
def OnCenterAzm(event):data['centerAzm'] = not data['centerAzm']wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)
1
3
1
29
0
1,328
1,330
1,328
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnCenterAzm) defined within the public class called public.The function start at line 1328 and ends at 1330. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnApplyPola
def OnApplyPola(event):data['PolaVal'][1] = not data['PolaVal'][1]
1
2
1
21
0
1,332
1,333
1,332
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnApplyPola) defined within the public class called public.The function start at line 1332 and ends at 1333. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnIfPink
def OnIfPink(event):data['IfPink'] = not data['IfPink']
1
2
1
15
0
1,335
1,336
1,335
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnIfPink) defined within the public class called public.The function start at line 1335 and ends at 1336. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.IntegrateSizer.OnOchoice
def OnOchoice(event):data['orientation'] = ochoice.GetValue()
1
2
1
15
0
1,338
1,339
1,338
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.IntegrateSizer.OnOchoice) defined within the public class called public.The function start at line 1338 and ends at 1339. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.IntegrateSizer
def IntegrateSizer():def OnNewBinType(event):data['binType'] = binSel.GetValue()wx.CallLater(100,UpdateImageControls,G2frame,data,masks)def OnIOtth(invalid,value,tc):'''Respond to a change in integration 2theta range'''Ltth,Utth = IOtthif Ltth > Utth:Ltth,Utth = Utth,LtthG2frame.InnerTth.ChangeValue(Ltth)G2frame.OuterT...
16
139
0
1,686
0
1,244
1,465
1,244
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.IntegrateSizer) defined within the public class called public.The function start at line 1244 and ends at 1465. It contains 139 lines of code and it has a cyclomatic complexity of 16. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.BackSizer.OnBackImage
def OnBackImage(event):data['background image'][0] = backImage.GetValue()G2frame.ImageZ = GetImageZ(G2frame,data,newRange=True)ResetThresholds()wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)
1
5
1
49
0
1,470
1,474
1,470
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.BackSizer.OnBackImage) defined within the public class called public.The function start at line 1470 and ends at 1474. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.BackSizer.OnDarkImage
def OnDarkImage(event):data['dark image'][0] = darkImage.GetValue()G2frame.ImageZ = GetImageZ(G2frame,data,newRange=True)ResetThresholds()wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)
1
5
1
49
0
1,476
1,480
1,476
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.BackSizer.OnDarkImage) defined within the public class called public.The function start at line 1476 and ends at 1480. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.BackSizer.OnFlatBkg
def OnFlatBkg(invalid,value,tc):global oldFlatG2frame.ImageZ += int(oldFlat-data['Flat Bkg'])oldFlat = data['Flat Bkg']ResetThresholds()wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=tc.event)
1
6
3
49
0
1,482
1,487
1,482
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.BackSizer.OnFlatBkg) defined within the public class called public.The function start at line 1482 and ends at 1487. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [1482.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.BackSizer.OnMult
def OnMult(invalid,value,tc):G2frame.ImageZ = GetImageZ(G2frame,data,newRange=True)wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=tc.event)
1
3
3
39
0
1,489
1,491
1,489
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.BackSizer.OnMult) defined within the public class called public.The function start at line 1489 and ends at 1491. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [1489.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.BackSizer.OnGainMap
def OnGainMap(event):data['Gain map'] = gainMap.GetValue()G2frame.ImageZ = GetImageZ(G2frame,data,newRange=True)ResetThresholds()wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)
1
5
1
46
0
1,493
1,497
1,493
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.BackSizer.OnGainMap) defined within the public class called public.The function start at line 1493 and ends at 1497. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.BackSizer
def BackSizer():global oldFlatdef OnBackImage(event):data['background image'][0] = backImage.GetValue()G2frame.ImageZ = GetImageZ(G2frame,data,newRange=True)ResetThresholds()wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)def OnDarkImage(event):data['dark image'][0] = darkImage.GetValue()G2frame.ImageZ = GetIma...
1
42
0
517
0
1,467
1,535
1,467
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.BackSizer) defined within the public class called public.The function start at line 1467 and ends at 1535. It contains 42 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.CalibSizer.OnNewCalibrant
def OnNewCalibrant(event):data['calibrant'] = calSel.GetValue().strip()if data['calibrant']:G2frame.dataWindow.ImageEdit.Enable(id=G2G.wxID_IMRECALIBRATE,enable=True)G2frame.dataWindow.ImageEdit.Enable(id=G2G.wxID_IMCALIBRATE,enable=True)G2frame.dataWindow.ImageEdit.Enable(id=G2G.wxID_IMRECALIBALL,enable=True)data['cal...
2
17
1
226
0
1,539
1,555
1,539
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.CalibSizer.OnNewCalibrant) defined within the public class called public.The function start at line 1539 and ends at 1555. It contains 17 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.CalibSizer.OnCalibSkip
def OnCalibSkip(event):data['calibskip'] = int(calibSkip.GetValue())
1
2
1
18
0
1,557
1,558
1,557
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.CalibSizer.OnCalibSkip) defined within the public class called public.The function start at line 1557 and ends at 1558. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.CalibSizer.OnPixLimit
def OnPixLimit(event):data['pixLimit'] = int(pixLimit.GetValue())
1
2
1
18
0
1,560
1,561
1,560
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.CalibSizer.OnPixLimit) defined within the public class called public.The function start at line 1560 and ends at 1561. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.CalibSizer.OnSetRings
def OnSetRings(event):data['setRings'] = not data['setRings']G2plt.PlotExposedImage(G2frame,event=event)
1
3
1
25
0
1,563
1,565
1,563
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.CalibSizer.OnSetRings) defined within the public class called public.The function start at line 1563 and ends at 1565. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.CalibSizer
def CalibSizer():def OnNewCalibrant(event):data['calibrant'] = calSel.GetValue().strip()if data['calibrant']:G2frame.dataWindow.ImageEdit.Enable(id=G2G.wxID_IMRECALIBRATE,enable=True)G2frame.dataWindow.ImageEdit.Enable(id=G2G.wxID_IMCALIBRATE,enable=True)G2frame.dataWindow.ImageEdit.Enable(id=G2G.wxID_IMRECALIBALL,enab...
5
48
0
603
0
1,537
1,614
1,537
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.CalibSizer) defined within the public class called public.The function start at line 1537 and ends at 1614. It contains 48 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.UpdateImageControls.GonioSizer.OnGlobalEdit
def OnGlobalEdit(event):Names = []Items = []if G2frame.GPXtree.GetCount():Id, cookie = G2frame.GPXtree.GetFirstChild(G2frame.root)while Id:name = G2frame.GPXtree.GetItemText(Id)if 'IMG' in name:ctrls = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,Id,'Image Controls'))Names.append(name)Items.append(ctrls[...
9
30
1
267
0
1,618
1,647
1,618
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.UpdateImageControls.GonioSizer.OnGlobalEdit) defined within the public class called public.The function start at line 1618 and ends at 1647. It contains 30 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.GonioSizer
def GonioSizer():def OnGlobalEdit(event):Names = []Items = []if G2frame.GPXtree.GetCount():Id, cookie = G2frame.GPXtree.GetFirstChild(G2frame.root)while Id:name = G2frame.GPXtree.GetItemText(Id)if 'IMG' in name:ctrls = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,Id,'Image Controls'))Names.append(name)It...
2
13
0
155
0
1,616
1,659
1,616
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.GonioSizer) defined within the public class called public.The function start at line 1616 and ends at 1659. It contains 13 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.RefreshPlot
def RefreshPlot():'''Refresh the Image plot after a change in superimposed phase info'''computePhaseRings()G2plt.PlotExposedImage(G2frame,event=None)
1
3
0
18
0
1,661
1,665
1,661
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.RefreshPlot) defined within the public class called public.The function start at line 1661 and ends at 1665. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnSelectPhases
def OnSelectPhases(event):'generate and plot the rings for a selected phase' # make a list of phases & calibrantscalList = sorted(calFile.Calibrants.keys(),key=lambda s: s.lower())phaseOpts['warnOnce'] = NonephaseOpts['calList'] = calListselList = G2frame.GetPhaseNames()selList += [i for i in calList if i] # removes bl...
3
9
1
73
0
1,667
1,676
1,667
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnSelectPhases) defined within the public class called public.The function start at line 1667 and ends at 1676. It contains 9 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.computePhaseRings
def computePhaseRings():'generate the powder reflections for the selected phase/calibrants'from . import GSASIIlattice as G2latfrom . import GSASIIspc as G2spcfrom . import GSASIIpwd as G2pwddmin = data['calibdmin']G2frame.PhaseRing2Th = []for p in phaseOpts['selList']:if not phaseOpts[p]['Show']: continuerColor = phas...
11
49
0
425
0
1,678
1,726
1,678
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.computePhaseRings) defined within the public class called public.The function start at line 1678 and ends at 1726. It contains 49 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnDestroy
def OnDestroy(event):G2frame.autoIntFrame = None
1
2
1
10
0
1,792
1,793
1,792
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnDestroy) defined within the public class called public.The function start at line 1792 and ends at 1793. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnAutoInt
def OnAutoInt(event):if G2frame.autoIntFrame: # ensure only one open at a timeprint('Auto-integration window already open')G2frame.autoIntFrame.Raise()returnPollTime = GSASIIpath.GetConfigValue('Autoint_PollTime',30.)G2frame.autoIntFrame = AutoIntFrame(G2frame,PollTime=PollTime)# debug code to reload code for window on...
2
8
1
57
0
1,794
1,806
1,794
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnAutoInt) defined within the public class called public.The function start at line 1794 and ends at 1806. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls.OnIntPDFtool
def OnIntPDFtool(event):import subprocessex = sys.executableif sys.platform == "darwin": # mac requires pythonw which is not always reported as sys.executableif os.path.exists(ex+'w'): ex += 'w'if G2frame.GSASprojectfile:project = os.path.abspath(G2frame.GSASprojectfile)else:project = ''subprocess.Popen([ex,os.path.joi...
4
10
1
79
0
1,808
1,817
1,808
null
[]
None
null
0
0
0
null
0
null
The function (UpdateImageControls.OnIntPDFtool) defined within the public class called public.The function start at line 1808 and ends at 1817. It contains 10 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateImageControls
def UpdateImageControls(G2frame,data,masks,useTA=None,useMask=None,IntegrateOnly=False):'''Shows and handles the controls on the "Image Controls"data tree entry'''#patchif 'Flat Bkg' not in data:data['Flat Bkg'] = 0.0if 'Gain map' not in data:data['Gain map'] = ' 'if 'GonioAngles' not in data:data['GonioAngles'] = [0.,...
26
139
6
1,269
186
258
1,849
258
null
['r11', 'pId', 'Lazm', 'CId', 'sigList', 'azmthOff', 'samabs', 'globEdit', 'samabsVal', 'backSizer', 'setPolariz', 'setRings', 'hkl', 'rStyle', 'phdata', 'GMsum', 'margin', 'SGData', 'polaVal', 'minVal', 'gonioSizer', 'Mid', 'Items', 'flatBkg', 'ochoice', 'binChoice', 'phId', 'Choices', 'copyDict', 'gainMap', 'binType'...
None
null
0
0
0
null
0
null
The function (UpdateImageControls) defined within the public class called public.The function start at line 258 and ends at 1849. It contains 139 lines of code and it has a cyclomatic complexity of 26. It takes 6 parameters, represented as [258.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
CleanupMasks
def CleanupMasks(data):'''If a mask creation is not completed, an empty mask entry is created in themasks array. This cleans them out. It is called when the masks page is first loadedand before saving them or after reading them in. This should also probably be donebefore they are used for integration.'''for key in ['Po...
6
8
1
98
2
1,854
1,866
1,854
null
['l2', 'l1']
None
null
0
0
0
null
0
null
The function (CleanupMasks) defined within the public class called public.The function start at line 1854 and ends at 1866. It contains 8 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnTextMsg
def OnTextMsg(event):Obj = event.GetEventObject()Obj.SetToolTip('Drag this mask on 2D Powder Image with mouse to change ')
1
3
1
18
0
1,872
1,874
1,872
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnTextMsg) defined within the public class called public.The function start at line 1872 and ends at 1874. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.Replot
def Replot(*args,**kwargs):wx.CallAfter(G2plt.PlotExposedImage,G2frame)
1
2
2
19
0
1,876
1,877
1,876
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.Replot) defined within the public class called public.The function start at line 1876 and ends at 1877. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1876.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.newReplot
def newReplot(*args,**kwargs):wx.CallAfter(G2plt.PlotExposedImage,G2frame,newPlot=True)
1
2
2
23
0
1,879
1,880
1,879
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.newReplot) defined within the public class called public.The function start at line 1879 and ends at 1880. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1879.0] and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.onDeleteMask
def onDeleteMask(event):Obj = event.GetEventObject()typ = Obj.locationcode.split('+')[0]num = int(Obj.locationcode.split('+')[1]) del(data[typ][num])wx.CallAfter(UpdateMasks,G2frame,data)G2plt.PlotExposedImage(G2frame,event=event)
1
7
1
71
0
1,882
1,888
1,882
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.onDeleteMask) defined within the public class called public.The function start at line 1882 and ends at 1888. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnSpotChange
def OnSpotChange(event):r,c = event.GetRow(),event.GetCol()if c == 2:del Spots[r]SpotTable.DeleteRow(r)else:Spots[r][2] = float(SpotGrid.GetCellValue(r,c))SpotGrid.ForceRefresh()wx.CallAfter(UpdateMasks,G2frame,data)G2plt.PlotExposedImage(G2frame,event=event)event.Skip()
2
11
1
87
0
1,890
1,900
1,890
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnSpotChange) defined within the public class called public.The function start at line 1890 and ends at 1900. It contains 11 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.onDeleteFrame
def onDeleteFrame(event):data['Frames'] = []wx.CallAfter(UpdateMasks,G2frame,data)G2plt.PlotExposedImage(G2frame,event=event)
1
4
1
32
0
1,902
1,905
1,902
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.onDeleteFrame) defined within the public class called public.The function start at line 1902 and ends at 1905. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnCopyMask
def OnCopyMask(event):Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])if len(Names) == 1:G2frame.ErrorDialog('Nothing to copy masks to','There must be more than one "IMG" pattern')returnSource = G2frame.GPXtree.GetItemText(G2frame.Image)Names.pop(Names.index(Source))Data = copy.deepcopy(data)Thresh = Data.pop('Thres...
5
23
1
214
0
1,907
1,929
1,907
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnCopyMask) defined within the public class called public.The function start at line 1907 and ends at 1929. It contains 23 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnCopySelected
def OnCopySelected(event):Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])if len(Names) == 1:G2frame.ErrorDialog('Nothing to copy controls to','There must be more than one "IMG" pattern')returnSource = G2frame.GPXtree.GetItemText(G2frame.Image)# Assemble a list of item labelskeyList = ['Points','Rings','Arcs','Polyg...
11
33
1
277
0
1,931
1,965
1,931
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnCopySelected) defined within the public class called public.The function start at line 1931 and ends at 1965. It contains 33 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnSaveMask
def OnSaveMask(event):CleanupMasks(data)pth = G2G.GetExportPath(G2frame)dlg = wx.FileDialog(G2frame, 'Choose image mask file', pth, '','image mask files (*.immask)|*.immask',wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)try:if dlg.ShowModal() == wx.ID_OK:filename = dlg.GetPath()filename = os.path.splitext(filename)[0]+'.immask'Fil...
4
16
1
138
0
1,967
1,982
1,967
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnSaveMask) defined within the public class called public.The function start at line 1967 and ends at 1982. It contains 16 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnLoadMask
def OnLoadMask(event):if event.Id == G2G.wxID_MASKLOADNOT:ignoreThreshold = Trueelse:ignoreThreshold = Falsepth = G2G.GetImportPath(G2frame)if not pth: pth = '.'dlg = wx.FileDialog(G2frame, 'Choose image mask file', pth, '','image mask files (*.immask)|*.immask',wx.FD_OPEN)try:if dlg.ShowModal() == wx.ID_OK:filename = ...
5
17
1
114
0
1,984
2,001
1,984
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnLoadMask) defined within the public class called public.The function start at line 1984 and ends at 2001. It contains 17 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnLoadPixelMask
def OnLoadPixelMask(event):Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])img = G2frame.GPXtree.GetItemText(G2frame.Image)if img not in Names: # remove current entry from list of namesprint(f'Strange: {img} not in IMG entries')else:del Names[Names.index(img)]# if nothing left, provide error & quitif not Names:G2G.G...
6
44
1
314
0
2,003
2,050
2,003
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnLoadPixelMask) defined within the public class called public.The function start at line 2003 and ends at 2050. It contains 44 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnFindPixelMask
def OnFindPixelMask(event):'''Do auto search for pixels to maskCalled from (Masks) Operations->"Pixel mask search"'''Controls = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,G2frame.Image,'Image Controls'))try:wave = Controls['wavelength']LUtth = np.array(Controls['IOtth'])dsp0 = wave/(2.0*sind(LUtth[0]/2...
11
47
1
504
0
2,052
2,107
2,052
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnFindPixelMask) defined within the public class called public.The function start at line 2052 and ends at 2107. It contains 47 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnAutoFindPixelMask
def OnAutoFindPixelMask(event):Names = G2gd.GetGPXtreeDataNames(G2frame,['IMG ',])fast = G2img.TestFastPixelMask()dlg = G2G.G2MultiChoiceDialog(G2frame,'Multiple image pixel mask search','Select images for pixel masking:',Names)if dlg.ShowModal() != wx.ID_OK: returnitems = dlg.GetSelections()G2frame.EnablePlot = Falsef...
15
63
1
606
0
2,109
2,172
2,109
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnAutoFindPixelMask) defined within the public class called public.The function start at line 2109 and ends at 2172. It contains 63 lines of code and it has a cyclomatic complexity of 15. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnDeleteSpotMask
def OnDeleteSpotMask(event):data['Points'] = []wx.CallAfter(UpdateMasks,G2frame,data)G2plt.PlotExposedImage(G2frame,newPlot=True,event=event)
1
4
1
36
0
2,174
2,177
2,174
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnDeleteSpotMask) defined within the public class called public.The function start at line 2174 and ends at 2177. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.ToggleSpotMaskMode
def ToggleSpotMaskMode(event):G2plt.ToggleMultiSpotMask(G2frame)
1
2
1
11
0
2,179
2,180
2,179
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.ToggleSpotMaskMode) defined within the public class called public.The function start at line 2179 and ends at 2180. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnNewArcMask
def OnNewArcMask(event):'Start a new arc mask'G2frame.MaskKey = 'a'G2plt.OnStartMask(G2frame)
1
4
1
17
0
2,182
2,185
2,182
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnNewArcMask) defined within the public class called public.The function start at line 2182 and ends at 2185. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnNewRingMask
def OnNewRingMask(event):'Start a new ring mask'G2frame.MaskKey = 'r'G2plt.OnStartMask(G2frame)
1
4
1
17
0
2,187
2,190
2,187
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnNewRingMask) defined within the public class called public.The function start at line 2187 and ends at 2190. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnNewXlineMask
def OnNewXlineMask(event):'Start a new x-line mask'G2frame.MaskKey = 'x'G2plt.OnStartMask(G2frame)
1
4
1
17
0
2,192
2,195
2,192
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnNewXlineMask) defined within the public class called public.The function start at line 2192 and ends at 2195. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
AdvancedPhotonSource_GSAS-II
public
public
0
0
UpdateMasks.OnNewYlineMask
def OnNewYlineMask(event):'Start a new y-line mask'G2frame.MaskKey = 'y'G2plt.OnStartMask(G2frame)
1
4
1
17
0
2,197
2,200
2,197
null
[]
None
null
0
0
0
null
0
null
The function (UpdateMasks.OnNewYlineMask) defined within the public class called public.The function start at line 2197 and ends at 2200. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..