source: sasview/calculatorview/docs/sans_perspective_calculator_pylint.txt @ c958e30

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since c958e30 was 6d48919, checked in by Gervaise Alina <gervyh@…>, 14 years ago

working on pylint warnings

  • Property mode set to 100644
File size: 119.0 KB
RevLine 
[6d48919]1Microsoft Windows XP [Version 5.1.2600]
2(C) Copyright 1985-2001 Microsoft Corp.
3
4C:\Documents and Settings\galina\workspace>pylint sans.perspectives.calculator
5No config file found, using default configuration
6************* Module sans.perspectives.calculator
7W: 26: Bad indentation. Found 13 spaces, expected 12
8W: 27: Bad indentation. Found 13 spaces, expected 12
9W: 28: Bad indentation. Found 17 spaces, expected 16
10W: 29: Bad indentation. Found 13 spaces, expected 12
11C:  1: Missing docstring
12W:  2: Relative import 'calculator', should be 'sans.perspectives.calculator.cal
13culator'
14W:  2: Wildcard import calculator
15C:  7:get_data_path: Empty docstring
16W: 22:get_data_path: Unused variable 'i'
17W: 41:data_files: Redefining name 'data_files' from outer scope (line 33)
18C: 41:data_files: Operator not followed by a space
19    data_files =[]
20               ^
21C: 43:data_files: Invalid name "f" (should match [a-z_][a-z0-9_]{2,30}$)
22************* Module sans.perspectives.calculator.aperture_editor
23C: 43: Line too long (82/80)
24C: 58: Line too long (89/80)
25C: 77: Line too long (84/80)
26C: 79: Line too long (87/80)
27C: 82: Line too long (82/80)
28C: 90: Line too long (85/80)
29C:101: Line too long (88/80)
30C:103: Line too long (88/80)
31C:105: Line too long (89/80)
32C:107: Line too long (92/80)
33C:108: Line too long (87/80)
34C:110: Line too long (81/80)
35C:112: Line too long (81/80)
36C:114: Line too long (81/80)
37C:116: Line too long (85/80)
38C:252: Line too long (84/80)
39C:286: Line too long (89/80)
40C:289: Line too long (84/80)
41C:291: Line too long (82/80)
42C:301: Line too long (89/80)
43C:304: Line too long (83/80)
44C:306: Line too long (82/80)
45C:322: Line too long (82/80)
46W:350: Bad indentation. Found 13 spaces, expected 12
47C:  1: Missing docstring
48R: 20:ApertureDialog: Too many instance attributes (26/7)
49C: 20:ApertureDialog: Missing docstring
50W: 21:ApertureDialog.__init__: Redefining name 'aperture' from outer scope (line
51 359)
52C: 21:ApertureDialog.__init__: Comma not followed by a space
53    def __init__(self, parent=None, manager=None,aperture=None, *args, **kwds):
54                                                ^^
55C: 25:ApertureDialog.__init__: Operator not followed by a space
56        kwds['size'] =(PANEL_WIDTH, PANEL_HEIGHT)
57                     ^
58W: 33:ApertureDialog.__init__: Unused variable 'self_description'
59C: 42:ApertureDialog._define_structure: Comma not followed by a space
60        self.box_aperture = wx.StaticBox(self, -1,str("Aperture"))
61                                                 ^^
62C: 79:ApertureDialog._layout_distance: Comma not followed by a space
63        self.distance_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH, 20),sty
64le=0)
65                                                                            ^^
66C:101:ApertureDialog._layout_size: Comma not followed by a space
67        self.x_aperture_size_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), s
68tyle=0)
69                                                                         ^^
70C:103:ApertureDialog._layout_size: Comma not followed by a space
71        self.y_aperture_size_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), s
72tyle=0)
73                                                                         ^^
74C:105:ApertureDialog._layout_size: Comma not followed by a space
75        self.z_aperture_size_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), s
76tyle=0)
77                                                                         ^^
78C:107:ApertureDialog._layout_size: Comma not followed by a space
79        self.aperture_size_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20)
80, style=0)
81                                                                            ^^
82W:134:ApertureDialog._do_layout: Unused argument 'data'
83W:186:ApertureDialog.set_values: Redefining name 'aperture' from outer scope (li
84ne 359)
85C:198:ApertureDialog.set_values: Invalid name "x" (should match [a-z_][a-z0-9_]{
862,30}$)
87C:198:ApertureDialog.set_values: Invalid name "y" (should match [a-z_][a-z0-9_]{
882,30}$)
89C:198:ApertureDialog.set_values: Invalid name "z" (should match [a-z_][a-z0-9_]{
902,30}$)
91C:226:ApertureDialog.on_change_name: Operator not followed by a space
92            self._notes += "name from %s to %s \n"%(self._aperture.name, name)
93                                                  ^
94W:234:ApertureDialog.on_change_type: Redefining built-in 'type'
95C:237:ApertureDialog.on_change_type: Operator not followed by a space
96        self._notes += " %s to %s \n"%(self._aperture.type, type)
97                                     ^
98C:252:ApertureDialog.on_change_distance: Operator not followed by a space
99                    self._notes += "%s to %s \n"%(self._aperture.distance, dista
100nce)
101                                                ^
102C:257:ApertureDialog.on_change_distance: Operator not followed by a space
103                self._notes += "%s to %s"%(self._aperture.distance, distance)
104                                         ^
105C:262:ApertureDialog.on_change_distance: Operator not followed by a space
106            self._notes += "%s to %s"%(self._aperture.distance_unit, unit)
107                                     ^
108C:272:ApertureDialog.on_change_size_name: Operator not followed by a space
109        self._notes += " %s to %s \n"%(self._aperture.size_name, size_name)
110                                     ^
111C:286:ApertureDialog.on_change_size: Operator not followed by a space
112                    self._notes += "%s to %s \n"%(self._aperture.size.x, x_apert
113ure_size)
114                                                ^
115C:291:ApertureDialog.on_change_size: Operator not followed by a space
116                self._notes += "%s to %s"%(self._aperture.size.x, x_aperture_siz
117e)
118                                         ^
119C:301:ApertureDialog.on_change_size: Operator not followed by a space
120                    self._notes += "%s to %s \n"%(self._aperture.size.y, y_apert
121ure_size)
122                                                ^
123C:306:ApertureDialog.on_change_size: Operator not followed by a space
124                self._notes += "%s to %s"%(self._aperture.size.y, y_aperture_siz
125e)
126                                         ^
127C:316:ApertureDialog.on_change_size: Operator not followed by a space
128                    self._notes += "%s to %s \n"%(self._aperture.size.z,
129                                                ^
130                                                   z_aperture_size)
131C:322:ApertureDialog.on_change_size: Operator not followed by a space
132                self._notes += "%s to %s"%(self._aperture.size.z, z_aperture_siz
133e)
134                                         ^
135C:327:ApertureDialog.on_change_size: Operator not followed by a space
136            self._notes += "%s to %s"%(self._aperture.size_unit, unit)
137                                     ^
138R:274:ApertureDialog.on_change_size: Too many branches (13/12)
139W:330:ApertureDialog.on_click_apply: Unused argument 'event'
140W:343:ApertureDialog.on_click_cancel: Unused argument 'event'
141R: 20:ApertureDialog: Too many public methods (295/20)
142W:128:ApertureDialog._layout_button: Attribute 'bt_close' defined outside __init
143__
144W: 43:ApertureDialog._define_structure: Attribute 'boxsizer_aperture' defined ou
145tside __init__
146W: 79:ApertureDialog._layout_distance: Attribute 'distance_unit_tcl' defined out
147side __init__
148W: 67:ApertureDialog._layout_type: Attribute 'type_tcl' defined outside __init__
149
150W:105:ApertureDialog._layout_size: Attribute 'z_aperture_size_tcl' defined outsi
151de __init__
152W: 50:ApertureDialog._define_structure: Attribute 'button_sizer' defined outside
153 __init__
154W: 58:ApertureDialog._layout_name: Attribute 'aperture_name_tcl' defined outside
155 __init__
156W: 77:ApertureDialog._layout_distance: Attribute 'distance_tcl' defined outside
157__init__
158W:122:ApertureDialog._layout_button: Attribute 'bt_apply' defined outside __init
159__
160W: 48:ApertureDialog._define_structure: Attribute 'size_name_sizer' defined outs
161ide __init__
162W:125:ApertureDialog._layout_button: Attribute 'bt_cancel' defined outside __ini
163t__
164W:103:ApertureDialog._layout_size: Attribute 'y_aperture_size_tcl' defined outsi
165de __init__
166W: 90:ApertureDialog._layout_size_name: Attribute 'size_name_tcl' defined outsid
167e __init__
168W:107:ApertureDialog._layout_size: Attribute 'aperture_size_unit_tcl' defined ou
169tside __init__
170W: 45:ApertureDialog._define_structure: Attribute 'name_sizer' defined outside _
171_init__
172W: 41:ApertureDialog._define_structure: Attribute 'main_sizer' defined outside _
173_init__
174W: 49:ApertureDialog._define_structure: Attribute 'aperture_size_sizer' defined
175outside __init__
176W:101:ApertureDialog._layout_size: Attribute 'x_aperture_size_tcl' defined outsi
177de __init__
178W: 46:ApertureDialog._define_structure: Attribute 'type_sizer' defined outside _
179_init__
180W: 47:ApertureDialog._define_structure: Attribute 'distance_sizer' defined outsi
181de __init__
182W: 42:ApertureDialog._define_structure: Attribute 'box_aperture' defined outside
183 __init__
184C:352: Operator not followed by a space
185if __name__ =="__main__":
186            ^^
187C:354: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
188C:356: Invalid name "loader" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
189C:359: Invalid name "aperture" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
190C:360: Invalid name "dlg" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
191************* Module sans.perspectives.calculator.calculator
192C:127: Line too long (82/80)
193W: 74: TODO: replace the text with a nice image
194C:  1: Missing docstring
195W: 21:Plugin.__init__: Unused argument 'standalone'
196W: 37:Plugin.populate_menu: Redefining built-in 'id'
197C: 37:Plugin.populate_menu: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30
198}$)
199C: 37:Plugin.populate_menu: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30
200}$)
201W: 37:Plugin.populate_menu: Unused argument 'owner'
202W: 37:Plugin.populate_menu: Unused argument 'id'
203R: 37:Plugin.populate_menu: Method could be a function
204W: 77:Plugin.help: Relative import 'help_panel', should be 'sans.perspectives.ca
205lculator.help_panel'
206W: 70:Plugin.help: Unused argument 'evt'
207R: 70:Plugin.help: Method could be a function
208W: 81:Plugin.get_context_menu: Unused argument 'graph'
209R: 81:Plugin.get_context_menu: Method could be a function
210W:116:Plugin.get_tools: Unused variable 'data_editor_help'
211W:126:Plugin.on_edit_data: Relative import 'data_editor', should be 'sans.perspe
212ctives.calculator.data_editor'
213W:122:Plugin.on_edit_data: Unused argument 'event'
214W:134:Plugin.on_calculate_sld: Relative import 'sld_panel', should be 'sans.pers
215pectives.calculator.sld_panel'
216W:130:Plugin.on_calculate_sld: Unused argument 'event'
217W:142:Plugin.on_calculate_slit_size: Relative import 'slit_length_calculator_pan
218el', should be 'sans.perspectives.calculator.slit_length_calculator_panel'
219W:138:Plugin.on_calculate_slit_size: Unused argument 'event'
220W:146:Plugin.on_perspective: Unused argument 'event'
221W: 12: Unused import wx
222************* Module sans.perspectives.calculator.calculator_widgets
223C: 22: Line too long (83/80)
224W: 23:InputTextCtrl.__init__: Unused variable 'full_selection'
225C: 54:InputTextCtrl._highlight_text: Operator not preceded by a space
226                if start==end:
227                        ^^
228C: 55:InputTextCtrl._highlight_text: Comma not followed by a space
229                    control.SetSelection(-1,-1)
230                                           ^^
231R: 13:InputTextCtrl: Too many public methods (304/20)
232W: 48:InputTextCtrl._highlight_text: Attribute 'full_selection' defined outside
233__init__
234R: 58:InterActiveOutputTextCtrl: Too many public methods (304/20)
235R: 69:OutputTextCtrl: Too many public methods (304/20)
236W: 11: Unused import os
237************* Module sans.perspectives.calculator.collimation_editor
238C: 47: Line too long (86/80)
239C: 48: Line too long (88/80)
240C: 82: Line too long (81/80)
241C: 85: Line too long (86/80)
242C: 88: Line too long (82/80)
243C: 92: Line too long (87/80)
244C: 93: Line too long (83/80)
245C:115: Line too long (82/80)
246C:117: Line too long (85/80)
247C:167: Line too long (81/80)
248C:254: Line too long (82/80)
249C:277: Line too long (82/80)
250C:281: Line too long (83/80)
251C:301: Line too long (81/80)
252W:520: Bad indentation. Found 13 spaces, expected 12
253C:  1: Missing docstring
254W:  7: Relative import 'aperture_editor', should be 'sans.perspectives.calculato
255r.aperture_editor'
256R: 23:CollimationDialog: Too many instance attributes (33/7)
257C: 23:CollimationDialog: Empty docstring
258W: 26:CollimationDialog.__init__: Dangerous default value [] as argument
259C: 30:CollimationDialog.__init__: Operator not followed by a space
260        kwds['size'] =(PANEL_WIDTH, PANEL_HEIGHT)
261                     ^
262C: 47:CollimationDialog._define_structure: Comma not followed by a space
263        self.box_collimation = wx.StaticBox(self, -1,str("Edit Selected Collimat
264ion"))
265                                                    ^^
266C:117:CollimationDialog._layout_length: Comma not followed by a space
267        self.length_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH, 20),style
268=0)
269                                                                          ^^
270W:172:CollimationDialog._do_layout: Unused argument 'data'
271C:196:CollimationDialog.get_current_collimation: Empty docstring
272W:220:CollimationDialog.add_collimation: Unused argument 'event'
273W:238:CollimationDialog.remove_collimation: Unused argument 'event'
274W:265:CollimationDialog.on_select_collimation: Unused argument 'event'
275C:281:CollimationDialog.enable_collimation: Operator not followed by a space
276            collimation_hint_txt = 'collimations available: %s '%str(n_collimati
277on)
278                                                                ^
279W:305:CollimationDialog.add_aperture: Unused argument 'event'
280W:329:CollimationDialog.edit_aperture: Redefining name 'dlg' from outer scope (l
281ine 526)
282W:327:CollimationDialog.edit_aperture: Unused variable 'name'
283W:319:CollimationDialog.edit_aperture: Unused argument 'event'
284W:333:CollimationDialog.remove_aperture: Unused argument 'event'
285C:380:CollimationDialog.enable_aperture: Operator not followed by a space
286            aperture_hint_txt = 'apertures available: %s '%str(n_aperture)
287                                                          ^
288C:468:CollimationDialog.on_change_name: Operator not followed by a space
289            self._notes += "name from %s to %s \n"%(collimation.name, name)
290                                                  ^
291W:459:CollimationDialog.on_change_name: Unused variable 'collimation_name'
292C:490:CollimationDialog.on_change_length: Operator not followed by a space
293                    self._notes += "%s to %s \n"%(collimation.length, length)
294                                                ^
295C:495:CollimationDialog.on_change_length: Operator not followed by a space
296                self._notes += "%s to %s"%(collimation.length, length)
297                                         ^
298C:500:CollimationDialog.on_change_length: Operator not followed by a space
299            self._notes += "%s to %s"%(collimation.length_unit, unit)
300                                     ^
301W:478:CollimationDialog.on_change_length: Unused variable 'position'
302W:478:CollimationDialog.on_change_length: Unused variable 'collimation_name'
303W:503:CollimationDialog.on_click_apply: Unused argument 'event'
304W:513:CollimationDialog.on_click_cancel: Unused argument 'event'
305R: 23:CollimationDialog: Too many public methods (305/20)
306W:133:CollimationDialog._layout_button: Attribute 'bt_close' defined outside __i
307nit__
308W: 81:CollimationDialog._layout_collimation: Attribute 'bt_remove_collimation' d
309efined outside __init__
310W: 62:CollimationDialog._define_structure: Attribute 'aperture_button_sizer' def
311ined outside __init__
312W:152:CollimationDialog._layout_aperture: Attribute 'bt_edit_aperture' defined o
313utside __init__
314W: 77:CollimationDialog._layout_collimation: Attribute 'bt_add_collimation' defi
315ned outside __init__
316W: 58:CollimationDialog._define_structure: Attribute 'button_sizer' defined outs
317ide __init__
318W:165:CollimationDialog._layout_aperture: Attribute 'aperture_txt' defined outsi
319de __init__
320W: 47:CollimationDialog._define_structure: Attribute 'box_collimation' defined o
321utside __init__
322W:127:CollimationDialog._layout_button: Attribute 'bt_apply' defined outside __i
323nit__
324W:117:CollimationDialog._layout_length: Attribute 'length_unit_tcl' defined outs
325ide __init__
326W: 54:CollimationDialog._define_structure: Attribute 'collimation_hint_sizer' de
327fined outside __init__
328W:130:CollimationDialog._layout_button: Attribute 'bt_cancel' defined outside __
329init__
330W: 72:CollimationDialog._layout_collimation: Attribute 'collimation_cbox' define
331d outside __init__
332W: 57:CollimationDialog._define_structure: Attribute 'length_sizer' defined outs
333ide __init__
334W: 48:CollimationDialog._define_structure: Attribute 'boxsizer_collimation' defi
335ned outside __init__
336W:155:CollimationDialog._layout_aperture: Attribute 'bt_remove_aperture' defined
337 outside __init__
338W:105:CollimationDialog._layout_name: Attribute 'name_tcl' defined outside __ini
339t__
340W: 51:CollimationDialog._define_structure: Attribute 'collimation_sizer' defined
341 outside __init__
342W: 56:CollimationDialog._define_structure: Attribute 'name_sizer' defined outsid
343e __init__
344W: 61:CollimationDialog._define_structure: Attribute 'aperture_sizer' defined ou
345tside __init__
346W:115:CollimationDialog._layout_length: Attribute 'length_tcl' defined outside _
347_init__
348W: 46:CollimationDialog._define_structure: Attribute 'main_sizer' defined outsid
349e __init__
350W:145:CollimationDialog._layout_aperture: Attribute 'aperture_cbox' defined outs
351ide __init__
352W: 53:CollimationDialog._define_structure: Attribute 'collimation_button_sizer'
353defined outside __init__
354W:149:CollimationDialog._layout_aperture: Attribute 'bt_add_aperture' defined ou
355tside __init__
356W: 90:CollimationDialog._layout_collimation: Attribute 'collimation_txt' defined
357 outside __init__
358W: 63:CollimationDialog._define_structure: Attribute 'aperture_hint_sizer' defin
359ed outside __init__
360C:523: Operator not followed by a space
361if __name__ =="__main__":
362            ^^
363C:525: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
364C:526: Invalid name "dlg" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
365W:  5: Unused import Loader
366************* Module sans.perspectives.calculator.console
367C:  1: Missing docstring
368W:  5: Reimport 'wx' (imported line 1)
369C: 23:ConsoleDialog: Missing docstring
370W: 24:ConsoleDialog.__init__: Redefining name 'data' from outer scope (line 59)
371W: 24:ConsoleDialog.__init__: Redefining built-in 'id'
372C: 24:ConsoleDialog.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,
37330}$)
374R: 24:ConsoleDialog.__init__: Too many arguments (7/5)
375C: 24:ConsoleDialog.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,
37630}$)
377C: 43:ConsoleDialog.set_manager: Empty docstring
378C: 48:ConsoleDialog.set_message: Empty docstring
379R: 23:ConsoleDialog: Too many public methods (285/20)
380C: 53: Operator not followed by a space
381if __name__ =="__main__":
382            ^^
383C: 55: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
384C: 57: Invalid name "loader" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
385C: 59: Invalid name "data" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
386C: 60: Invalid name "dlg" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
387************* Module sans.perspectives.calculator.data_editor
388C: 45: Line too long (92/80)
389C: 47: Line too long (93/80)
390W: 57: Bad indentation. Found 9 spaces, expected 8
391W: 58: Bad indentation. Found 9 spaces, expected 8
392W: 59: Bad indentation. Found 9 spaces, expected 8
393W: 60: Bad indentation. Found 9 spaces, expected 8
394W: 61: Bad indentation. Found 9 spaces, expected 8
395W: 62: Bad indentation. Found 9 spaces, expected 8
396W: 63: Bad indentation. Found 9 spaces, expected 8
397W: 64: Bad indentation. Found 9 spaces, expected 8
398W: 65: Bad indentation. Found 9 spaces, expected 8
399W: 66: Bad indentation. Found 9 spaces, expected 8
400W: 67: Bad indentation. Found 9 spaces, expected 8
401W: 68: Bad indentation. Found 9 spaces, expected 8
402W: 69: Bad indentation. Found 9 spaces, expected 8
403W: 70: Bad indentation. Found 9 spaces, expected 8
404W: 71: Bad indentation. Found 13 spaces, expected 12
405W: 72: Bad indentation. Found 13 spaces, expected 12
406C:129: Line too long (100/80)
407C:188: Line too long (83/80)
408C:440: Line too long (97/80)
409C:452: Line too long (89/80)
410C:512: Line too long (89/80)
411C:  1: Missing docstring
412W:  9: Relative import 'detector_editor', should be 'sans.perspectives.calculato
413r.detector_editor'
414W: 10: Relative import 'collimation_editor', should be 'sans.perspectives.calcul
415ator.collimation_editor'
416W: 11: Relative import 'console', should be 'sans.perspectives.calculator.consol
417e'
418R: 51:DataEditorPanel: Too many instance attributes (31/7)
419W: 56:DataEditorPanel.__init__: Dangerous default value [] as argument
420C: 58:DataEditorPanel.__init__: Operator not preceded by a space
421         kwds["size"]= (PANEL_WIDTH, PANEL_HEIGTH)
422                     ^
423W: 65:DataEditorPanel.__init__: Unused variable 'self_description'
424W:101:DataEditorPanel._layout_name: Redefining built-in 'id'
425C:101:DataEditorPanel._layout_name: Invalid name "id" (should match [a-z_][a-z0-
4269_]{2,30}$)
427E:180:DataEditorPanel._layout_source: Instance of 'DataEditorPanel' has no 'sour
428ce_sizer' member
429E:192:DataEditorPanel._layout_summary: Instance of 'DataEditorPanel' has no 'sum
430mary_sizer' member
431C:198:DataEditorPanel._layout_button: Comma not followed by a space
432        self.bt_summary = wx.Button(self, -1, "View", size=(_BOX_WIDTH,-1))
433                                                                      ^^
434C:202:DataEditorPanel._layout_button: Comma not followed by a space
435        self.bt_save = wx.Button(self, -1, "Save As", size=(_BOX_WIDTH,-1))
436                                                                      ^^
437C:206:DataEditorPanel._layout_button: Comma not followed by a space
438        self.bt_apply = wx.Button(self, -1, "Apply", size=(_BOX_WIDTH,-1))
439                                                                     ^^
440C:210:DataEditorPanel._layout_button: Comma not followed by a space
441        self.bt_reset = wx.Button(self, -1,'Reset', size=(_BOX_WIDTH,-1))
442                                          ^^
443C:214:DataEditorPanel._layout_button: Comma not followed by a space
444        self.bt_close = wx.Button(self, -1,'Close', size=(_BOX_WIDTH,-1))
445                                          ^^
446C:246:DataEditorPanel._do_layout: Comma not followed by a space
447        self.SetScrollbars(20,20,25,65)
448                             ^^
449W:224:DataEditorPanel._do_layout: Unused argument 'data'
450C:267:DataEditorPanel.reset_panel: Empty docstring
451C:274:DataEditorPanel.on_select_data: Empty docstring
452W:277:DataEditorPanel.on_select_data: Unused variable 'position'
453W:277:DataEditorPanel.on_select_data: Unused variable 'data_name'
454W:274:DataEditorPanel.on_select_data: Unused argument 'event'
455C:288:DataEditorPanel.get_current_data: Empty docstring
456C:298:DataEditorPanel.enable_data_cbox: Empty docstring
457C:314:DataEditorPanel.reset_radiobox: Empty docstring
458W:326:DataEditorPanel.set_sample: Unused variable 'position'
459W:326:DataEditorPanel.set_sample: Unused variable 'data_name'
460W:337:DataEditorPanel.set_source: Unused variable 'position'
461W:337:DataEditorPanel.set_source: Unused variable 'data_name'
462W:348:DataEditorPanel.set_detector: Unused variable 'position'
463W:348:DataEditorPanel.set_detector: Unused variable 'data_name'
464W:359:DataEditorPanel.set_collimation: Unused variable 'position'
465W:359:DataEditorPanel.set_collimation: Unused variable 'data_name'
466W:370:DataEditorPanel.edit_collimation: Unused variable 'position'
467W:370:DataEditorPanel.edit_collimation: Unused variable 'data_name'
468W:381:DataEditorPanel.edit_detector: Unused variable 'position'
469W:381:DataEditorPanel.edit_detector: Unused variable 'data_name'
470W:395:DataEditorPanel.edit_sample: Relative import 'sample_editor', should be 's
471ans.perspectives.calculator.sample_editor'
472W:392:DataEditorPanel.edit_sample: Unused variable 'position'
473W:392:DataEditorPanel.edit_sample: Unused variable 'data_name'
474W:407:DataEditorPanel.edit_source: Relative import 'source_editor', should be 's
475ans.perspectives.calculator.source_editor'
476W:404:DataEditorPanel.edit_source: Unused variable 'position'
477W:404:DataEditorPanel.edit_source: Unused variable 'data_name'
478C:420:DataEditorPanel.choose_data_file: Invalid name "l" (should match [a-z_][a-
479z0-9_]{2,30}$)
480W:427:DataEditorPanel.choose_data_file: Unused variable 'mypath'
481C:440:DataEditorPanel.complete_loading: Comma not followed by a space
482            wx.PostEvent(self.parent.parent, StatusEvent(status=msg, info="warni
483ng",type='stop'))
484
485   ^^
486C:452:DataEditorPanel.complete_loading: Comma not followed by a space
487        wx.PostEvent(self.parent.parent, StatusEvent(status=msg,info="info",type
488='stop'))
489                                                               ^^
490W:432:DataEditorPanel.complete_loading: Unused argument 'filename'
491C:487:DataEditorPanel.on_change_run: Operator not followed by a space
492            self._notes += "run from %s to %s \n"%(data.run, str(run))
493                                                 ^
494W:480:DataEditorPanel.on_change_run: Unused variable 'data_name'
495W:480:DataEditorPanel.on_change_run: Unused variable 'position'
496W:475:DataEditorPanel.on_change_run: Unused argument 'event'
497C:500:DataEditorPanel.on_change_title: Operator not followed by a space
498            self._notes += "title from %s to %s \n"%(data.title, str(title))
499                                                   ^
500W:494:DataEditorPanel.on_change_title: Unused variable 'position'
501W:494:DataEditorPanel.on_change_title: Unused variable 'data_name'
502W:490:DataEditorPanel.on_change_title: Unused argument 'event'
503C:512:DataEditorPanel.on_click_browse: Comma not followed by a space
504            wx.PostEvent(self.parent.parent, StatusEvent(status="Loading...",inf
505o="info",
506                                                                            ^^
507                                type="progress"))
508W:528:DataEditorPanel.on_click_browse: No exception type(s) specified
509W:519:DataEditorPanel.on_click_browse: Relative import 'load_thread', should be
510'sans.perspectives.calculator.load_thread'
511E:521:DataEditorPanel.on_click_browse: Instance of 'DataReader' has no 'isrunnin
512g' member
513E:522:DataEditorPanel.on_click_browse: Instance of 'DataReader' has no 'stop' me
514mber
515E:526:DataEditorPanel.on_click_browse: Instance of 'DataReader' has no 'queue' m
516ember
517C:528:DataEditorPanel.on_click_browse: Operator not followed by a space
518            msg = "Data Editor: %s"%(sys.exc_value)
519                                   ^
520W:503:DataEditorPanel.on_click_browse: Unused argument 'event'
521C:532:DataEditorPanel.on_edit: Empty docstring
522W:532:DataEditorPanel.on_edit: Unused argument 'event'
523W:548:DataEditorPanel.on_click_apply: Unused variable 'position'
524W:548:DataEditorPanel.on_click_apply: Unused variable 'data_name'
525W:544:DataEditorPanel.on_click_apply: Unused argument 'event'
526W:586:DataEditorPanel.on_click_save: No exception type(s) specified
527W:555:DataEditorPanel.on_click_save: Unused argument 'event'
528W:593:DataEditorPanel.on_click_view: Unused variable 'position'
529W:593:DataEditorPanel.on_click_view: Unused variable 'data_name'
530W:589:DataEditorPanel.on_click_view: Unused argument 'event'
531C:601:DataEditorPanel.on_click_reset: Empty docstring
532C:607:DataEditorPanel.on_click_reset: Operator not preceded by a space
533        self._data[position]= deepcopy(self._reset_data[position])
534                            ^
535W:604:DataEditorPanel.on_click_reset: Unused variable 'data_name'
536W:601:DataEditorPanel.on_click_reset: Unused argument 'event'
537W:610:DataEditorPanel.on_close: Unused argument 'event'
538R: 51:DataEditorPanel: Too many public methods (293/20)
539W:214:DataEditorPanel._layout_button: Attribute 'bt_close' defined outside __ini
540t__
541W:156:DataEditorPanel._layout_editor: Attribute 'collimation_rb' defined outside
542 __init__
543W:158:DataEditorPanel._layout_editor: Attribute 'bt_edit' defined outside __init
544__
545W:188:DataEditorPanel._layout_summary: Attribute 'data_summary' defined outside
546__init__
547W:152:DataEditorPanel._layout_editor: Attribute 'detector_rb' defined outside __
548init__
549W:515:DataEditorPanel.on_click_browse: Attribute 'done' defined outside __init__
550
551W:129:DataEditorPanel._layout_run: Attribute 'data_run_tcl' defined outside __in
552it__
553W: 87:DataEditorPanel._define_structure: Attribute 'edit_sizer' defined outside
554__init__
555W:154:DataEditorPanel._layout_editor: Attribute 'sample_rb' defined outside __in
556it__
557W: 89:DataEditorPanel._define_structure: Attribute 'button_sizer' defined outsid
558e __init__
559W:116:DataEditorPanel._layout_title: Attribute 'data_title_tcl' defined outside
560__init__
561W: 83:DataEditorPanel._define_structure: Attribute 'run_sizer' defined outside _
562_init__
563W:210:DataEditorPanel._layout_button: Attribute 'bt_reset' defined outside __ini
564t__
565W:206:DataEditorPanel._layout_button: Attribute 'bt_apply' defined outside __ini
566t__
567W: 97:DataEditorPanel._layout_name: Attribute 'data_cbox' defined outside __init
568__
569W: 84:DataEditorPanel._define_structure: Attribute 'instrument_sizer' defined ou
570tside __init__
571W: 80:DataEditorPanel._define_structure: Attribute 'name_sizer' defined outside
572__init__
573W:102:DataEditorPanel._layout_name: Attribute 'browse_button' defined outside __
574init__
575W:198:DataEditorPanel._layout_button: Attribute 'bt_summary' defined outside __i
576nit__
577W: 78:DataEditorPanel._define_structure: Attribute 'main_sizer' defined outside
578__init__
579W:177:DataEditorPanel._layout_source: Attribute 'bt_edit_source' defined outside
580 __init__
581W:142:DataEditorPanel._layout_instrument: Attribute 'instrument_tcl' defined out
582side __init__
583W: 82:DataEditorPanel._define_structure: Attribute 'title_sizer' defined outside
584 __init__
585W:202:DataEditorPanel._layout_button: Attribute 'bt_save' defined outside __init
586__
587W:155:DataEditorPanel._layout_editor: Attribute 'source_rb' defined outside __in
588it__
589C:616:DataEditorWindow: Missing docstring
590C:618:DataEditorWindow.__init__: Operator not preceded by a space
591        kwds["size"]= (PANEL_WIDTH, PANEL_HEIGTH)
592                    ^
593R:616:DataEditorWindow: Too many public methods (288/20)
594C:630: Operator not followed by a space
595if __name__ =="__main__":
596            ^^
597C:632: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
598C:633: Invalid name "window" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
599W:  8: Unused import Collimation
600W:  8: Unused import Detector
601W:  8: Unused import DataInfo
602W: 13: Unused import check_float
603************* Module sans.perspectives.calculator.detector_editor
604C: 22: Line too long (82/80)
605C: 88: Line too long (81/80)
606C:100: Line too long (91/80)
607C:101: Line too long (86/80)
608C:102: Line too long (81/80)
609C:107: Line too long (82/80)
610C:108: Line too long (81/80)
611C:110: Line too long (88/80)
612C:123: Line too long (82/80)
613C:125: Line too long (82/80)
614C:127: Line too long (83/80)
615C:129: Line too long (84/80)
616C:147: Line too long (87/80)
617C:149: Line too long (87/80)
618C:151: Line too long (88/80)
619C:153: Line too long (90/80)
620C:154: Line too long (83/80)
621C:162: Line too long (84/80)
622C:171: Line too long (87/80)
623C:173: Line too long (87/80)
624C:175: Line too long (88/80)
625C:177: Line too long (89/80)
626C:186: Line too long (85/80)
627C:195: Line too long (85/80)
628C:197: Line too long (85/80)
629C:199: Line too long (86/80)
630C:201: Line too long (89/80)
631C:210: Line too long (82/80)
632C:218: Line too long (83/80)
633C:220: Line too long (91/80)
634C:224: Line too long (82/80)
635C:415: Line too long (88/80)
636C:421: Line too long (88/80)
637C:427: Line too long (85/80)
638C:487: Line too long (88/80)
639C:546: Line too long (81/80)
640C:552: Line too long (83/80)
641C:579: Line too long (88/80)
642C:582: Line too long (82/80)
643C:584: Line too long (81/80)
644C:594: Line too long (88/80)
645C:597: Line too long (81/80)
646C:599: Line too long (81/80)
647C:609: Line too long (88/80)
648C:612: Line too long (82/80)
649C:614: Line too long (81/80)
650C:642: Line too long (88/80)
651C:645: Line too long (82/80)
652C:647: Line too long (81/80)
653C:657: Line too long (88/80)
654C:660: Line too long (82/80)
655C:662: Line too long (81/80)
656C:672: Line too long (88/80)
657C:677: Line too long (81/80)
658C:703: Line too long (86/80)
659C:706: Line too long (81/80)
660C:718: Line too long (86/80)
661C:733: Line too long (86/80)
662C:765: Line too long (85/80)
663C:768: Line too long (91/80)
664W:787: Bad indentation. Found 13 spaces, expected 12
665C:  1: Missing docstring
666R: 20:DetectorDialog: Too many instance attributes (48/7)
667C: 20:DetectorDialog: Missing docstring
668W: 21:DetectorDialog.__init__: Redefining name 'detector' from outer scope (line
669 806)
670W: 21:DetectorDialog.__init__: Redefining built-in 'id'
671C: 21:DetectorDialog.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2
672,30}$)
673R: 21:DetectorDialog.__init__: Too many arguments (7/5)
674C: 21:DetectorDialog.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2
675,30}$)
676W: 35:DetectorDialog.__init__: No exception type(s) specified
677C: 42:DetectorDialog._define_structure: Comma not followed by a space
678        self.box_detector = wx.StaticBox(self, -1,str("Edit Selected Detector"))
679
680                                                 ^^
681C:153:DetectorDialog._layout_orientation: Comma not followed by a space
682        self.orientation_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH, 20),
683style=0)
684                                                                               ^
685^
686C:195:DetectorDialog._layout_pixel_size: Comma not followed by a space
687        self.x_pixel_size_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), styl
688e=0)
689                                                                      ^^
690C:197:DetectorDialog._layout_pixel_size: Comma not followed by a space
691        self.y_pixel_size_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), styl
692e=0)
693                                                                      ^^
694C:199:DetectorDialog._layout_pixel_size: Comma not followed by a space
695        self.z_pixel_size_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), styl
696e=0)
697                                                                      ^^
698C:201:DetectorDialog._layout_pixel_size: Comma not followed by a space
699        self.pixel_size_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), s
700tyle=0)
701                                                                         ^^
702C:218:DetectorDialog._layout_slit_length: Comma not followed by a space
703        self.slit_length_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), style
704=0)
705                                                                     ^^
706C:220:DetectorDialog._layout_slit_length: Comma not followed by a space
707        self.slit_length_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20),
708style=0)
709                                                                          ^^
710W:242:DetectorDialog._do_layout: Unused argument 'data'
711W:298:DetectorDialog.fill_detector_combox: Redefining name 'detector' from outer
712 scope (line 806)
713W:309:DetectorDialog.reset_detector_combobox: Redefining name 'detector' from ou
714ter scope (line 806)
715W:323:DetectorDialog.add_detector: Redefining name 'detector' from outer scope (
716line 806)
717W:316:DetectorDialog.add_detector: Unused argument 'event'
718W:338:DetectorDialog.remove_detector: Redefining name 'detector' from outer scop
719e (line 806)
720W:331:DetectorDialog.remove_detector: Unused argument 'event'
721C:359:DetectorDialog.enable_detector: Operator not followed by a space
722            detector_hint_txt = 'Detectors available: %s '%str(n_detector)
723                                                          ^
724W:370:DetectorDialog.set_detector: Redefining name 'detector' from outer scope (
725line 806)
726W:392:DetectorDialog.get_current_detector: Redefining name 'detector' from outer
727 scope (line 806)
728C:383:DetectorDialog.get_current_detector: Empty docstring
729W:400:DetectorDialog.set_values: Redefining name 'detector' from outer scope (li
730ne 806)
731C:409:DetectorDialog.set_values: Invalid name "x" (should match [a-z_][a-z0-9_]{
7322,30}$)
733C:409:DetectorDialog.set_values: Invalid name "y" (should match [a-z_][a-z0-9_]{
7342,30}$)
735C:409:DetectorDialog.set_values: Invalid name "z" (should match [a-z_][a-z0-9_]{
7362,30}$)
737C:415:DetectorDialog.set_values: Invalid name "x" (should match [a-z_][a-z0-9_]{
7382,30}$)
739C:415:DetectorDialog.set_values: Invalid name "y" (should match [a-z_][a-z0-9_]{
7402,30}$)
741C:415:DetectorDialog.set_values: Invalid name "z" (should match [a-z_][a-z0-9_]{
7422,30}$)
743C:421:DetectorDialog.set_values: Invalid name "x" (should match [a-z_][a-z0-9_]{
7442,30}$)
745C:421:DetectorDialog.set_values: Invalid name "y" (should match [a-z_][a-z0-9_]{
7462,30}$)
747C:421:DetectorDialog.set_values: Invalid name "z" (should match [a-z_][a-z0-9_]{
7482,30}$)
749C:427:DetectorDialog.set_values: Invalid name "x" (should match [a-z_][a-z0-9_]{
7502,30}$)
751C:427:DetectorDialog.set_values: Invalid name "y" (should match [a-z_][a-z0-9_]{
7522,30}$)
753C:427:DetectorDialog.set_values: Invalid name "z" (should match [a-z_][a-z0-9_]{
7542,30}$)
755W:433:DetectorDialog.set_values: Unused variable 'slit_length'
756W:453:DetectorDialog.on_change_instrument: Redefining name 'detector' from outer
757 scope (line 806)
758C:462:DetectorDialog.on_change_instrument: Operator not followed by a space
759            self._notes += "name from %s to %s \n"%(detector_name, name)
760                                                  ^
761W:472:DetectorDialog.on_change_distance: Redefining name 'detector' from outer s
762cope (line 806)
763C:484:DetectorDialog.on_change_distance: Operator not followed by a space
764                    self._notes += " %s to %s \n"%(detector.distance, distance)
765                                                 ^
766C:488:DetectorDialog.on_change_distance: Operator not followed by a space
767                self._notes += "%s to %s"%(detector.distance, distance)
768                                         ^
769C:493:DetectorDialog.on_change_distance: Operator not followed by a space
770            self._notes += "%s to %s"%(detector.distance_unit, unit)
771                                     ^
772W:503:DetectorDialog.on_change_offset: Redefining name 'detector' from outer sco
773pe (line 806)
774C:515:DetectorDialog.on_change_offset: Operator not followed by a space
775                    self._notes += " %s to %s \n"%(detector.offset.x, x_offset)
776                                                 ^
777C:520:DetectorDialog.on_change_offset: Operator not followed by a space
778                self._notes += " from %s to %s"%(detector.offset.x, x_offset)
779                                               ^
780C:530:DetectorDialog.on_change_offset: Operator not followed by a space
781                    self._notes += "%s to %s \n"%(detector.offset.y, y_offset)
782                                                ^
783C:535:DetectorDialog.on_change_offset: Operator not followed by a space
784                self._notes += "offset from %s to %s"%(detector.offset.y\
785                                                     ^
786                                                         ,y_offset)
787C:546:DetectorDialog.on_change_offset: Operator not followed by a space
788                    self._notes += "offset from %s to %s \n"%(detector.offset.z,
789\
790                                                            ^
791                                                              z_offset)
792C:552:DetectorDialog.on_change_offset: Operator not followed by a space
793                self._notes += "offset from %s to %s"%(detector.offset.z, z_offs
794et)
795                                                     ^
796C:557:DetectorDialog.on_change_offset: Operator not followed by a space
797            self._notes += "unit from %s to %s"%(detector.offset_unit, unit)
798                                               ^
799R:499:DetectorDialog.on_change_offset: Too many branches (14/12)
800W:567:DetectorDialog.on_change_orientation: Redefining name 'detector' from oute
801r scope (line 806)
802C:579:DetectorDialog.on_change_orientation: Operator not followed by a space
803                    self._notes += "%s to %s \n"%(detector.orientation.x, x_orie
804ntation)
805                                                ^
806C:584:DetectorDialog.on_change_orientation: Operator not followed by a space
807                self._notes += "%s to %s"%(detector.orientation.x, x_orientation
808)
809                                         ^
810C:594:DetectorDialog.on_change_orientation: Operator not followed by a space
811                    self._notes += "%s to %s \n"%(detector.orientation.y, y_orie
812ntation)
813                                                ^
814C:599:DetectorDialog.on_change_orientation: Operator not followed by a space
815                self._notes += "%s to %s"%(detector.orientation.y, y_orientation
816)
817                                         ^
818C:609:DetectorDialog.on_change_orientation: Operator not followed by a space
819                    self._notes += "%s to %s \n"%(detector.orientation.z, z_orie
820ntation)
821                                                ^
822C:614:DetectorDialog.on_change_orientation: Operator not followed by a space
823                self._notes += "%s to %s"%(detector.orientation.z, z_orientation
824)
825                                         ^
826C:619:DetectorDialog.on_change_orientation: Operator not followed by a space
827            self._notes += "%s to %s"%(detector.orientation_unit, unit)
828                                     ^
829R:563:DetectorDialog.on_change_orientation: Too many branches (14/12)
830W:630:DetectorDialog.on_change_beam_center: Redefining name 'detector' from oute
831r scope (line 806)
832C:642:DetectorDialog.on_change_beam_center: Operator not followed by a space
833                    self._notes += "%s to %s \n"%(detector.beam_center.x, x_beam
834_center)
835                                                ^
836C:647:DetectorDialog.on_change_beam_center: Operator not followed by a space
837                self._notes += "%s to %s"%(detector.beam_center.x, x_beam_center
838)
839                                         ^
840C:657:DetectorDialog.on_change_beam_center: Operator not followed by a space
841                    self._notes += "%s to %s \n"%(detector.beam_center.y, y_beam
842_center)
843                                                ^
844C:662:DetectorDialog.on_change_beam_center: Operator not followed by a space
845                self._notes += "%s to %s"%(detector.beam_center.y, y_beam_center
846)
847                                         ^
848C:672:DetectorDialog.on_change_beam_center: Operator not followed by a space
849                    self._notes += "%s to %s \n"%(detector.beam_center.z, z_beam
850_center)
851                                                ^
852C:677:DetectorDialog.on_change_beam_center: Operator not followed by a space
853                self._notes += "%s to %s"%(detector.beam_center.z, z_beam_center
854)
855                                         ^
856C:682:DetectorDialog.on_change_beam_center: Operator not followed by a space
857            self._notes += "%s to %s"%(detector.beam_center_unit, unit)
858                                     ^
859R:625:DetectorDialog.on_change_beam_center: Too many branches (14/12)
860W:692:DetectorDialog.on_change_pixel_size: Redefining name 'detector' from outer
861 scope (line 806)
862C:703:DetectorDialog.on_change_pixel_size: Operator not followed by a space
863                    self._notes += "%s to %s \n"%(detector.pixel_size.x, x_pixel
864_size)
865                                                ^
866C:708:DetectorDialog.on_change_pixel_size: Operator not followed by a space
867                self._notes += "%s to %s"%(detector.pixel_size.x, x_pixel_size)
868                                         ^
869C:718:DetectorDialog.on_change_pixel_size: Operator not followed by a space
870                    self._notes += "%s to %s \n"%(detector.pixel_size.y, y_pixel
871_size)
872                                                ^
873C:723:DetectorDialog.on_change_pixel_size: Operator not followed by a space
874                self._notes += "%s to %s"%(detector.pixel_size.y, y_pixel_size)
875                                         ^
876C:733:DetectorDialog.on_change_pixel_size: Operator not followed by a space
877                    self._notes += "%s to %s \n"%(detector.pixel_size.z, z_pixel
878_size)
879                                                ^
880C:738:DetectorDialog.on_change_pixel_size: Operator not followed by a space
881                self._notes += "%s to %s"%(detector.pixel_size.z, z_pixel_size)
882                                         ^
883C:743:DetectorDialog.on_change_pixel_size: Operator not followed by a space
884            self._notes += "%s to %s"%(detector.pixel_size_unit, unit)
885                                     ^
886R:688:DetectorDialog.on_change_pixel_size: Too many branches (14/12)
887W:753:DetectorDialog.on_change_slit_length: Redefining name 'detector' from oute
888r scope (line 806)
889C:765:DetectorDialog.on_change_slit_length: Operator not followed by a space
890                    self._notes += " %s to %s \n"%(detector.slit_length, slit_le
891ngth)
892                                                 ^
893C:769:DetectorDialog.on_change_slit_length: Operator not followed by a space
894                self._notes += "%s to %s"%(detector.slit_length, slit_length)
895                                         ^
896C:774:DetectorDialog.on_change_slit_length: Operator not followed by a space
897            self._notes += "%s to %s"%(detector.slit_length_unit_tcl, unit)
898                                     ^
899W:780:DetectorDialog.on_click_cancel: Unused argument 'event'
900W:801:DetectorDialog.on_click_apply: Redefining name 'detector' from outer scope
901 (line 806)
902W:789:DetectorDialog.on_click_apply: Unused argument 'event'
903W:801:DetectorDialog.on_click_apply: Unused variable 'detector'
904R: 20:DetectorDialog: Too many public methods (304/20)
905W: 42:DetectorDialog._define_structure: Attribute 'box_detector' defined outside
906 __init__
907W:220:DetectorDialog._layout_slit_length: Attribute 'slit_length_unit_tcl' defin
908ed outside __init__
909W:236:DetectorDialog._layout_button: Attribute 'bt_close' defined outside __init
910__
911W: 58:DetectorDialog._define_structure: Attribute 'pixel_sizer' defined outside
912__init__
913W: 46:DetectorDialog._define_structure: Attribute 'detector_sizer' defined outsi
914de __init__
915W:151:DetectorDialog._layout_orientation: Attribute 'z_orientation_tcl' defined
916outside __init__
917W:175:DetectorDialog._layout_beam_center: Attribute 'z_beam_center_tcl' defined
918outside __init__
919W:110:DetectorDialog._layout_distance: Attribute 'distance_unit_tcl' defined out
920side __init__
921W:199:DetectorDialog._layout_pixel_size: Attribute 'z_pixel_size_tcl' defined ou
922tside __init__
923W: 59:DetectorDialog._define_structure: Attribute 'slit_sizer' defined outside _
924_init__
925W: 52:DetectorDialog._define_structure: Attribute 'detector_hint_sizer' defined
926outside __init__
927W:127:DetectorDialog._layout_offset: Attribute 'z_offset_tcl' defined outside __
928init__
929W:177:DetectorDialog._layout_beam_center: Attribute 'beam_center_unit_tcl' defin
930ed outside __init__
931W: 60:DetectorDialog._define_structure: Attribute 'button_sizer' defined outside
932 __init__
933W:108:DetectorDialog._layout_distance: Attribute 'distance_tcl' defined outside
934__init__
935W:129:DetectorDialog._layout_offset: Attribute 'offset_unit_tcl' defined outside
936 __init__
937W:201:DetectorDialog._layout_pixel_size: Attribute 'pixel_size_unit_tcl' defined
938 outside __init__
939W:230:DetectorDialog._layout_button: Attribute 'bt_apply' defined outside __init
940__
941W:153:DetectorDialog._layout_orientation: Attribute 'orientation_unit_tcl' defin
942ed outside __init__
943W:197:DetectorDialog._layout_pixel_size: Attribute 'y_pixel_size_tcl' defined ou
944tside __init__
945W:195:DetectorDialog._layout_pixel_size: Attribute 'x_pixel_size_tcl' defined ou
946tside __init__
947W:171:DetectorDialog._layout_beam_center: Attribute 'x_beam_center_tcl' defined
948outside __init__
949W:125:DetectorDialog._layout_offset: Attribute 'y_offset_tcl' defined outside __
950init__
951W:147:DetectorDialog._layout_orientation: Attribute 'x_orientation_tcl' defined
952outside __init__
953W:173:DetectorDialog._layout_beam_center: Attribute 'y_beam_center_tcl' defined
954outside __init__
955W: 55:DetectorDialog._define_structure: Attribute 'offset_sizer' defined outside
956 __init__
957W:218:DetectorDialog._layout_slit_length: Attribute 'slit_length_tcl' defined ou
958tside __init__
959W: 57:DetectorDialog._define_structure: Attribute 'beam_sizer' defined outside _
960_init__
961W:233:DetectorDialog._layout_button: Attribute 'bt_cancel' defined outside __ini
962t__
963W: 53:DetectorDialog._define_structure: Attribute 'instrument_sizer' defined out
964side __init__
965W: 43:DetectorDialog._define_structure: Attribute 'boxsizer_detector' defined ou
966tside __init__
967W: 56:DetectorDialog._define_structure: Attribute 'orientation_sizer' defined ou
968tside __init__
969W:149:DetectorDialog._layout_orientation: Attribute 'y_orientation_tcl' defined
970outside __init__
971W: 51:DetectorDialog._define_structure: Attribute 'detector_button_sizer' define
972d outside __init__
973W: 73:DetectorDialog._layout_detector: Attribute 'bt_add_detector' defined outsi
974de __init__
975W: 41:DetectorDialog._define_structure: Attribute 'main_sizer' defined outside _
976_init__
977W: 69:DetectorDialog._layout_detector: Attribute 'detector_cbox' defined outside
978 __init__
979W: 86:DetectorDialog._layout_detector: Attribute 'detector_txt' defined outside
980__init__
981W:100:DetectorDialog._layout_instrument_sizer: Attribute 'instrument_name_tcl' d
982efined outside __init__
983W:123:DetectorDialog._layout_offset: Attribute 'x_offset_tcl' defined outside __
984init__
985W: 77:DetectorDialog._layout_detector: Attribute 'bt_remove_detector' defined ou
986tside __init__
987W: 54:DetectorDialog._define_structure: Attribute 'distance_sizer' defined outsi
988de __init__
989C:805: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
990C:806: Invalid name "detector" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
991C:807: Invalid name "dlg" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
992************* Module sans.perspectives.calculator.help_panel
993C: 12: Line too long (99/80)
994C: 13: Line too long (88/80)
995C: 14: Line too long (91/80)
996C: 15: Line too long (86/80)
997C: 17: Line too long (86/80)
998C: 18: Line too long (86/80)
999C: 19: Line too long (83/80)
1000C: 20: Line too long (90/80)
1001C: 21: Line too long (99/80)
1002C: 23: Line too long (95/80)
1003C: 24: Line too long (93/80)
1004C: 26: Line too long (101/80)
1005C: 53: Line too long (85/80)
1006W:  7:help: Redefining built-in 'help'
1007C:  1: Missing docstring
1008C: 30:HelpDialog: Missing docstring
1009W: 31:HelpDialog.__init__: Redefining built-in 'id'
1010C: 31:HelpDialog.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30}
1011$)
1012C: 31:HelpDialog.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30}
1013$)
1014C: 41:HelpDialog.__init__: Comma not followed by a space
1015        label_explain = wx.StaticText(self, -1, explanation, size=(350,320))
1016                                                                      ^^
1017C: 49:HelpDialog.__init__: Invalid name "button_OK" (should match [a-z_][a-z0-9_
1018]{2,30}$)
1019R: 30:HelpDialog: Too many public methods (283/20)
1020C: 62:HelpWindow: Missing docstring
1021W: 63:HelpWindow.__init__: Redefining built-in 'id'
1022C: 63:HelpWindow.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30}
1023$)
1024C: 63:HelpWindow.__init__: Invalid name "pageToOpen" (should match [a-z_][a-z0-9
1025_]{2,30}$)
1026R: 63:HelpWindow.__init__: Too many local variables (21/15)
1027C: 63:HelpWindow.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30}
1028$)
1029C: 63:HelpWindow.__init__: Invalid name "pageToOpen" (should match [a-z_][a-z0-9
1030_]{2,30}$)
1031W: 67:HelpWindow.__init__: String statement has no effect
1032C: 71:HelpWindow.__init__: Comma not followed by a space
1033        lpanel = wx.Panel(splitter, -1,style=wx.BORDER_SUNKEN)
1034                                      ^^
1035C: 78:HelpWindow.__init__: Invalid name "st" (should match [a-z_][a-z0-9_]{2,30}
1036$)
1037C: 86:HelpWindow.__init__: Operator not preceded by a space
1038        vboxl= wx.BoxSizer(wx.VERTICAL)
1039             ^
1040C:106:HelpWindow.__init__: Operator not preceded by a space
1041        page1="""<html>
1042             ^
1043
1044
1045
1046            </html>"""
1047C:112:HelpWindow.__init__: Operator not preceded by a space
1048        page="""<html>
1049            ^
1050
1051
1052
1053
1054
1055
1056            </html>"""
1057C:122:HelpWindow.__init__: Comma not followed by a space
1058        self.lhelp.Bind(wx.html.EVT_HTML_LINK_CLICKED,self.OnLinkClicked )
1059                                                     ^^
1060C:124:HelpWindow.__init__: Comma not followed by a space
1061        vbox.Add(self.rhelp,1, wx.EXPAND)
1062                           ^^
1063C:131:HelpWindow.__init__: Comma not followed by a space
1064        vbox1.Add(splitter,1,wx.EXPAND)
1065                          ^^
1066W: 63:HelpWindow.__init__: Unused argument 'pageToOpen'
1067C:140:HelpWindow.OnLinkClicked: Invalid name "OnLinkClicked" (should match [a-z_
1068][a-z0-9_]{2,30}$)
1069C:145:HelpWindow.OnLinkClicked: Operator not preceded by a space
1070        link= event.GetLinkInfo().GetHref()
1071            ^
1072C:146:HelpWindow.OnLinkClicked: Comma not followed by a space
1073        link = os.path.join(self.path,link)
1074                                     ^^
1075R: 62:HelpWindow: Too many public methods (288/20)
1076C:149:ViewApp: Missing docstring
1077C:150:ViewApp.OnInit: Invalid name "OnInit" (should match [a-z_][a-z0-9_]{2,30}$
1078)
1079C:150:ViewApp.OnInit: Missing docstring
1080R:149:ViewApp: Too many public methods (66/20)
1081C:159: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
1082************* Module sans.perspectives.calculator.load_thread
1083C:  1: Missing docstring
1084F:  6: Unable to import 'data_util.calcthread'
1085R: 14:DataReader.__init__: Too many arguments (6/5)
1086E: 46:DataReader.compute: Instance of 'DataReader' has no 'complete' member
1087W: 45:DataReader.compute: Unused variable 'elapsed'
1088W:  3: Unused import sys
1089************* Module sans.perspectives.calculator.sample_editor
1090C: 57: Line too long (87/80)
1091C: 76: Line too long (83/80)
1092C: 82: Line too long (83/80)
1093C: 91: Line too long (87/80)
1094C: 92: Line too long (85/80)
1095C:101: Line too long (87/80)
1096C:105: Line too long (83/80)
1097C:107: Line too long (85/80)
1098C:108: Line too long (82/80)
1099C:117: Line too long (83/80)
1100C:119: Line too long (83/80)
1101C:121: Line too long (84/80)
1102C:123: Line too long (87/80)
1103C:140: Line too long (86/80)
1104C:142: Line too long (86/80)
1105C:144: Line too long (87/80)
1106C:146: Line too long (90/80)
1107C:147: Line too long (83/80)
1108C:155: Line too long (83/80)
1109C:277: Line too long (83/80)
1110C:349: Line too long (83/80)
1111C:380: Line too long (86/80)
1112C:395: Line too long (86/80)
1113C:410: Line too long (86/80)
1114C:440: Line too long (85/80)
1115C:450: Line too long (92/80)
1116C:455: Line too long (85/80)
1117C:465: Line too long (92/80)
1118C:470: Line too long (85/80)
1119W:515: Bad indentation. Found 13 spaces, expected 12
1120C:  1: Missing docstring
1121R: 19:SampleDialog: Too many instance attributes (37/7)
1122C: 19:SampleDialog: Missing docstring
1123W: 20:SampleDialog.__init__: Redefining name 'sample' from outer scope (line 521
1124)
1125R: 20:SampleDialog.__init__: Too many arguments (6/5)
1126C: 38:SampleDialog._define_structure: Comma not followed by a space
1127        self.box_sample = wx.StaticBox(self, -1,str("Sample"))
1128                                               ^^
1129C: 76:SampleDialog._layout_thickness: Comma not followed by a space
1130        self.thickness_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH, 20),style=0
1131)
1132                                                                        ^^
1133C: 91:SampleDialog._layout_transmission: Comma not followed by a space
1134        self.transmission_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH, 20),styl
1135e=0)
1136                                                                           ^^
1137W: 89:SampleDialog._layout_transmission: Unused variable 'transmission'
1138C:117:SampleDialog._layout_position: Comma not followed by a space
1139        self.x_position_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), style=
11400)
1141                                                                    ^^
1142C:119:SampleDialog._layout_position: Comma not followed by a space
1143        self.y_position_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), style=
11440)
1145                                                                    ^^
1146C:121:SampleDialog._layout_position: Comma not followed by a space
1147        self.z_position_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), style=
11480)
1149                                                                    ^^
1150C:123:SampleDialog._layout_position: Comma not followed by a space
1151        self.position_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), sty
1152le=0)
1153                                                                       ^^
1154C:140:SampleDialog._layout_orientation: Comma not followed by a space
1155        self.x_orientation_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), sty
1156le=0)
1157                                                                       ^^
1158C:142:SampleDialog._layout_orientation: Comma not followed by a space
1159        self.y_orientation_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), sty
1160le=0)
1161                                                                       ^^
1162C:144:SampleDialog._layout_orientation: Comma not followed by a space
1163        self.z_orientation_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), sty
1164le=0)
1165                                                                       ^^
1166C:146:SampleDialog._layout_orientation: Comma not followed by a space
1167        self.orientation_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20),
1168style=0)
1169                                                                          ^^
1170C:164:SampleDialog._layout_details: Comma not followed by a space
1171        self.details_tcl = wx.TextCtrl(self, -1,size=(_BOX_WIDTH*5,_BOX_WIDTH),
1172                                               ^^
1173                                       style=wx.TE_MULTILINE | wx.HSCROLL)
1174W:162:SampleDialog._layout_details: Unused variable 'details'
1175W:185:SampleDialog._do_layout: Unused argument 'data'
1176W:257:SampleDialog.set_values: Redefining name 'sample' from outer scope (line 5
117721)
1178C:271:SampleDialog.set_values: Invalid name "x" (should match [a-z_][a-z0-9_]{2,
117930}$)
1180C:271:SampleDialog.set_values: Invalid name "y" (should match [a-z_][a-z0-9_]{2,
118130}$)
1182C:271:SampleDialog.set_values: Invalid name "z" (should match [a-z_][a-z0-9_]{2,
118330}$)
1184C:277:SampleDialog.set_values: Invalid name "x" (should match [a-z_][a-z0-9_]{2,
118530}$)
1186C:277:SampleDialog.set_values: Invalid name "y" (should match [a-z_][a-z0-9_]{2,
118730}$)
1188C:277:SampleDialog.set_values: Invalid name "z" (should match [a-z_][a-z0-9_]{2,
118930}$)
1190W:285:SampleDialog.set_details: Redefining name 'sample' from outer scope (line
1191521)
1192C:318:SampleDialog.on_change_name: Operator not followed by a space
1193            self._notes += "name from %s to %s \n"%(self._sample.name, name)
1194                                                  ^
1195W:326:SampleDialog.on_change_id: Redefining built-in 'id'
1196C:326:SampleDialog.on_change_id: Invalid name "id" (should match [a-z_][a-z0-9_]
1197{2,30}$)
1198C:329:SampleDialog.on_change_id: Operator not followed by a space
1199        self._notes += " %s to %s \n"%(self._sample.ID, id)
1200                                     ^
1201C:339:SampleDialog.on_change_thickness: Operator not followed by a space
1202        self._notes += " %s to %s \n"%(self._sample.thickness, thickness)
1203                                     ^
1204C:349:SampleDialog.on_change_transmission: Operator not followed by a space
1205            self._notes += " %s to %s \n"%(self._sample.transmission, transmissi
1206on)
1207                                         ^
1208C:360:SampleDialog.on_change_temperature: Operator not followed by a space
1209        self._notes += " %s to %s \n"%(self._sample.temperature, temperature)
1210                                     ^
1211C:365:SampleDialog.on_change_temperature: Operator not followed by a space
1212            self._notes += "%s to %s"%(self._sample.temperature_unit, unit)
1213                                     ^
1214C:380:SampleDialog.on_change_position: Operator not followed by a space
1215                    self._notes += "%s to %s \n"%(self._sample.position.x, x_pos
1216ition)
1217                                                ^
1218C:385:SampleDialog.on_change_position: Operator not followed by a space
1219                self._notes += "%s to %s"%(self._sample.position.x, x_position)
1220                                         ^
1221C:395:SampleDialog.on_change_position: Operator not followed by a space
1222                    self._notes += "%s to %s \n"%(self._sample.position.y, y_pos
1223ition)
1224                                                ^
1225C:400:SampleDialog.on_change_position: Operator not followed by a space
1226                self._notes += "%s to %s"%(self._sample.position.y, y_position)
1227                                         ^
1228C:410:SampleDialog.on_change_position: Operator not followed by a space
1229                    self._notes += "%s to %s \n"%(self._sample.position.z, z_pos
1230ition)
1231                                                ^
1232C:415:SampleDialog.on_change_position: Operator not followed by a space
1233                self._notes += "%s to %s"%(self._sample.position.z, z_position)
1234                                         ^
1235C:420:SampleDialog.on_change_position: Operator not followed by a space
1236            self._notes += "%s to %s"%(self._sample.position_unit, unit)
1237                                     ^
1238R:368:SampleDialog.on_change_position: Too many branches (13/12)
1239C:434:SampleDialog.on_change_orientation: Operator not followed by a space
1240                    self._notes += "%s to %s \n"%(self._sample.orientation.x,
1241                                                ^
1242                                                   x_orientation)
1243C:440:SampleDialog.on_change_orientation: Operator not followed by a space
1244                self._notes += "%s to %s"%(self._sample.orientation.x, x_orienta
1245tion)
1246                                         ^
1247C:450:SampleDialog.on_change_orientation: Operator not followed by a space
1248                    self._notes += "%s to %s \n"%(self._sample.orientation.y, y_
1249orientation)
1250                                                ^
1251C:455:SampleDialog.on_change_orientation: Operator not followed by a space
1252                self._notes += "%s to %s"%(self._sample.orientation.y, y_orienta
1253tion)
1254                                         ^
1255C:465:SampleDialog.on_change_orientation: Operator not followed by a space
1256                    self._notes += "%s to %s \n"%(self._sample.orientation.z, z_
1257orientation)
1258                                                ^
1259C:470:SampleDialog.on_change_orientation: Operator not followed by a space
1260                self._notes += "%s to %s"%(self._sample.orientation.z, z_orienta
1261tion)
1262                                         ^
1263C:475:SampleDialog.on_change_orientation: Operator not followed by a space
1264            self._notes += "%s to %s"%(self._sample.orientation_unit, unit)
1265                                     ^
1266R:422:SampleDialog.on_change_orientation: Too many branches (13/12)
1267C:489:SampleDialog.on_change_details: Operator not followed by a space
1268                    self._notes += " %s to %s \n"%(msg, details)
1269                                                 ^
1270W:492:SampleDialog.on_click_apply: Unused argument 'event'
1271W:508:SampleDialog.on_click_cancel: Unused argument 'event'
1272R: 19:SampleDialog: Too many public methods (299/20)
1273W: 38:SampleDialog._define_structure: Attribute 'box_sample' defined outside __i
1274nit__
1275W:179:SampleDialog._layout_button: Attribute 'bt_close' defined outside __init__
1276
1277W: 48:SampleDialog._define_structure: Attribute 'details_sizer' defined outside
1278__init__
1279W:144:SampleDialog._layout_orientation: Attribute 'z_orientation_tcl' defined ou
1280tside __init__
1281W:117:SampleDialog._layout_position: Attribute 'x_position_tcl' defined outside
1282__init__
1283W: 57:SampleDialog._layout_name: Attribute 'sample_name_tcl' defined outside __i
1284nit__
1285W: 49:SampleDialog._define_structure: Attribute 'button_sizer' defined outside _
1286_init__
1287W: 46:SampleDialog._define_structure: Attribute 'position_sizer' defined outside
1288 __init__
1289W:101:SampleDialog._layout_temperature: Attribute 'temperature_tcl' defined outs
1290ide __init__
1291W:103:SampleDialog._layout_temperature: Attribute 'temperature_unit_tcl' defined
1292 outside __init__
1293W: 44:SampleDialog._define_structure: Attribute 'transmission_sizer' defined out
1294side __init__
1295W:146:SampleDialog._layout_orientation: Attribute 'orientation_unit_tcl' defined
1296 outside __init__
1297W:164:SampleDialog._layout_details: Attribute 'details_tcl' defined outside __in
1298it__
1299W: 45:SampleDialog._define_structure: Attribute 'temperature_sizer' defined outs
1300ide __init__
1301W:140:SampleDialog._layout_orientation: Attribute 'x_orientation_tcl' defined ou
1302tside __init__
1303W:176:SampleDialog._layout_button: Attribute 'bt_cancel' defined outside __init_
1304_
1305W: 76:SampleDialog._layout_thickness: Attribute 'thickness_tcl' defined outside
1306__init__
1307W: 91:SampleDialog._layout_transmission: Attribute 'transmission_tcl' defined ou
1308tside __init__
1309W: 41:SampleDialog._define_structure: Attribute 'name_sizer' defined outside __i
1310nit__
1311W:142:SampleDialog._layout_orientation: Attribute 'y_orientation_tcl' defined ou
1312tside __init__
1313W:123:SampleDialog._layout_position: Attribute 'position_unit_tcl' defined outsi
1314de __init__
1315W: 39:SampleDialog._define_structure: Attribute 'boxsizer_sample' defined outsid
1316e __init__
1317W: 37:SampleDialog._define_structure: Attribute 'main_sizer' defined outside __i
1318nit__
1319W: 43:SampleDialog._define_structure: Attribute 'thickness_sizer' defined outsid
1320e __init__
1321W:173:SampleDialog._layout_button: Attribute 'bt_apply' defined outside __init__
1322
1323W:119:SampleDialog._layout_position: Attribute 'y_position_tcl' defined outside
1324__init__
1325W: 66:SampleDialog._layout_id: Attribute 'id_tcl' defined outside __init__
1326W: 78:SampleDialog._layout_thickness: Attribute 'thickness_unit_tcl' defined out
1327side __init__
1328W:121:SampleDialog._layout_position: Attribute 'z_position_tcl' defined outside
1329__init__
1330W: 42:SampleDialog._define_structure: Attribute 'id_sizer' defined outside __ini
1331t__
1332W: 47:SampleDialog._define_structure: Attribute 'orientation_sizer' defined outs
1333ide __init__
1334C:517: Operator not followed by a space
1335if __name__ =="__main__":
1336            ^^
1337C:519: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
1338C:521: Invalid name "sample" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
1339C:522: Invalid name "dlg" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
1340************* Module sans.perspectives.calculator.sld_panel
1341C:337: Line too long (83/80)
1342C:357: Line too long (84/80)
1343C:358: Line too long (91/80)
1344C:361: Line too long (88/80)
1345C:364: Line too long (87/80)
1346W:374: Bad indentation. Found 18 spaces, expected 16
1347W:375: Bad indentation. Found 18 spaces, expected 16
1348C:383: Line too long (83/80)
1349R: 35:SldPanel: Too many instance attributes (17/7)
1350W: 45:SldPanel.__init__: Redefining built-in 'id'
1351C: 45:SldPanel.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30}$)
1352
1353C: 45:SldPanel.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30}$)
1354
1355W:248:SldPanel._do_layout: Redefining built-in 'id'
1356R: 57:SldPanel._do_layout: Too many local variables (39/15)
1357C: 64:SldPanel._do_layout: Operator not followed by a space
1358        unit_cm1 ='[1/cm]'
1359                 ^
1360C: 65:SldPanel._do_layout: Operator not followed by a space
1361        unit_cm ='[cm]'
1362                ^
1363C: 66:SldPanel._do_layout: Comma not followed by a space
1364        sizer_input = wx.GridBagSizer(5,5)
1365                                       ^^
1366C: 67:SldPanel._do_layout: Comma not followed by a space
1367        sizer_output = wx.GridBagSizer(5,5)
1368                                        ^^
1369C: 75:SldPanel._do_layout: Comma not followed by a space
1370        boxsizer1.SetMinSize((_STATICBOX_WIDTH,-1))
1371                                              ^^
1372C: 78:SldPanel._do_layout: Comma not followed by a space
1373        self.compound_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1374                                                                  ^^
1375C: 80:SldPanel._do_layout: Comma not followed by a space
1376        self.density_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1377                                                                 ^^
1378C: 83:SldPanel._do_layout: Comma not followed by a space
1379        self.wavelength_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1380                                                                    ^^
1381C: 86:SldPanel._do_layout: Invalid name "iy" (should match [a-z_][a-z0-9_]{2,30}
1382$)
1383C: 87:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1384$)
1385C: 88:SldPanel._do_layout: Comma not followed by a space
1386        sizer_input.Add(compound_txt,(iy, ix),(1,1),\
1387                                    ^^
1388                             wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
1389C: 90:SldPanel._do_layout: Operator not followed by a space
1390        ix +=1
1391           ^^
1392C: 90:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1393$)
1394C: 91:SldPanel._do_layout: Comma not followed by a space
1395        sizer_input.Add(self.compound_ctl,(iy, ix),(1,1),\
1396                                         ^^
1397                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1398C: 93:SldPanel._do_layout: Invalid name "iy" (should match [a-z_][a-z0-9_]{2,30}
1399$)
1400C: 94:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1401$)
1402C: 95:SldPanel._do_layout: Comma not followed by a space
1403        sizer_input.Add(density_txt,(iy, ix),(1,1),\
1404                                   ^^
1405                             wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
1406C: 97:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1407$)
1408C: 98:SldPanel._do_layout: Comma not followed by a space
1409        sizer_input.Add(self.density_ctl, (iy, ix), (1,1),\
1410                                                      ^^
1411                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1412C:100:SldPanel._do_layout: Operator not followed by a space
1413        ix +=1
1414           ^^
1415C:100:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1416$)
1417C:101:SldPanel._do_layout: Comma not followed by a space
1418        sizer_input.Add(unit_density_txt,(iy, ix),(1,1),\
1419                                        ^^
1420                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1421C:103:SldPanel._do_layout: Invalid name "iy" (should match [a-z_][a-z0-9_]{2,30}
1422$)
1423C:104:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1424$)
1425C:105:SldPanel._do_layout: Comma not followed by a space
1426        sizer_input.Add(wavelength_txt, (iy, ix),(1,1),\
1427                                                ^^
1428                             wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
1429C:107:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1430$)
1431C:108:SldPanel._do_layout: Comma not followed by a space
1432        sizer_input.Add(self.wavelength_ctl,(iy, ix),(1,1),\
1433                                           ^^
1434                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1435C:110:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1436$)
1437C:111:SldPanel._do_layout: Comma not followed by a space
1438        sizer_input.Add(unit_a_txt,(iy, ix),(1,1),\
1439                                  ^^
1440                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1441C:114:SldPanel._do_layout: Comma not followed by a space
1442        sizer1.Add(boxsizer1,0, wx.EXPAND | wx.ALL, 10)
1443                            ^^
1444C:118:SldPanel._do_layout: Comma not followed by a space
1445        boxsizer2.SetMinSize((_STATICBOX_WIDTH,-1))
1446                                              ^^
1447C:122:SldPanel._do_layout: Comma not followed by a space
1448        self.neutron_sld_reel_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1449                                                                          ^^
1450C:125:SldPanel._do_layout: Comma not followed by a space
1451        self.neutron_sld_im_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1452                                                                        ^^
1453C:131:SldPanel._do_layout: Comma not followed by a space
1454        self.cu_ka_sld_reel_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1455                                                                        ^^
1456C:134:SldPanel._do_layout: Comma not followed by a space
1457        self.cu_ka_sld_im_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1458                                                                      ^^
1459C:140:SldPanel._do_layout: Comma not followed by a space
1460        self.mo_ka_sld_reel_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1461                                                                        ^^
1462C:143:SldPanel._do_layout: Comma not followed by a space
1463        self.mo_ka_sld_im_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1464                                                                      ^^
1465C:149:SldPanel._do_layout: Comma not followed by a space
1466        self.neutron_inc_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1467                                                                     ^^
1468C:155:SldPanel._do_layout: Comma not followed by a space
1469        self.neutron_abs_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1470                                                                     ^^
1471C:161:SldPanel._do_layout: Comma not followed by a space
1472        self.neutron_length_ctl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1473                                                                        ^^
1474C:166:SldPanel._do_layout: Invalid name "iy" (should match [a-z_][a-z0-9_]{2,30}
1475$)
1476C:167:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1477$)
1478C:168:SldPanel._do_layout: Comma not followed by a space
1479        sizer_output.Add(neutron_sld_txt,(iy, ix),(1,1),
1480                                        ^^
1481                             wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
1482C:170:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1483$)
1484C:171:SldPanel._do_layout: Comma not followed by a space
1485        sizer_output.Add(self.neutron_sld_reel_ctl,(iy, ix),(1,1),
1486                                                  ^^
1487                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1488C:173:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1489$)
1490C:176:SldPanel._do_layout: Operator not followed by a space
1491        ix +=1
1492           ^^
1493C:176:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1494$)
1495C:179:SldPanel._do_layout: Operator not followed by a space
1496        ix +=1
1497           ^^
1498C:179:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1499$)
1500C:182:SldPanel._do_layout: Invalid name "iy" (should match [a-z_][a-z0-9_]{2,30}
1501$)
1502C:183:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1503$)
1504C:184:SldPanel._do_layout: Comma not followed by a space
1505        sizer_output.Add(cu_ka_sld_txt,(iy, ix),(1,1),
1506                                      ^^
1507                             wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
1508C:186:SldPanel._do_layout: Operator not followed by a space
1509        ix +=1
1510           ^^
1511C:186:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1512$)
1513C:187:SldPanel._do_layout: Comma not followed by a space
1514        sizer_output.Add(self.cu_ka_sld_reel_ctl,(iy, ix),(1,1),
1515                                                ^^
1516                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1517C:189:SldPanel._do_layout: Operator not followed by a space
1518        ix +=1
1519           ^^
1520C:189:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1521$)
1522C:192:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1523$)
1524C:195:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1525$)
1526C:198:SldPanel._do_layout: Invalid name "iy" (should match [a-z_][a-z0-9_]{2,30}
1527$)
1528C:199:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1529$)
1530C:200:SldPanel._do_layout: Comma not followed by a space
1531        sizer_output.Add(mo_ka_sld_txt,(iy, ix),(1,1),
1532                                      ^^
1533                             wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
1534C:202:SldPanel._do_layout: Operator not followed by a space
1535        ix +=1
1536           ^^
1537C:202:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1538$)
1539C:203:SldPanel._do_layout: Comma not followed by a space
1540        sizer_output.Add(self.mo_ka_sld_reel_ctl,(iy, ix),(1,1),
1541                                                ^^
1542                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1543C:205:SldPanel._do_layout: Operator not followed by a space
1544        ix +=1
1545           ^^
1546C:205:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1547$)
1548C:208:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1549$)
1550C:211:SldPanel._do_layout: Operator not followed by a space
1551        ix +=1
1552           ^^
1553C:211:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1554$)
1555C:214:SldPanel._do_layout: Invalid name "iy" (should match [a-z_][a-z0-9_]{2,30}
1556$)
1557C:215:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1558$)
1559C:216:SldPanel._do_layout: Comma not followed by a space
1560        sizer_output.Add(neutron_inc_txt,(iy, ix),(1,1),
1561                                        ^^
1562                             wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
1563C:218:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1564$)
1565C:219:SldPanel._do_layout: Comma not followed by a space
1566        sizer_output.Add(self.neutron_inc_ctl,(iy, ix),(1,1),
1567                                             ^^
1568                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1569C:221:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1570$)
1571C:222:SldPanel._do_layout: Comma not followed by a space
1572        sizer_output.Add(neutron_inc_units_txt,(iy, ix),(1,1),
1573                                              ^^
1574                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1575C:224:SldPanel._do_layout: Invalid name "iy" (should match [a-z_][a-z0-9_]{2,30}
1576$)
1577C:225:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1578$)
1579C:226:SldPanel._do_layout: Comma not followed by a space
1580        sizer_output.Add(neutron_abs_txt, (iy, ix), (1,1),
1581                                                      ^^
1582                             wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
1583C:228:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1584$)
1585C:229:SldPanel._do_layout: Comma not followed by a space
1586        sizer_output.Add(self.neutron_abs_ctl, (iy, ix), (1,1),
1587                                                           ^^
1588                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1589C:231:SldPanel._do_layout: Operator not followed by a space
1590        ix +=2
1591           ^^
1592C:231:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1593$)
1594C:232:SldPanel._do_layout: Comma not followed by a space
1595        sizer_output.Add(neutron_abs_units_txt, (iy, ix), (1,1),
1596                                                            ^^
1597                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1598C:234:SldPanel._do_layout: Invalid name "iy" (should match [a-z_][a-z0-9_]{2,30}
1599$)
1600C:235:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1601$)
1602C:236:SldPanel._do_layout: Comma not followed by a space
1603        sizer_output.Add(neutron_length_txt, (iy, ix), (1,1),
1604                                                         ^^
1605                             wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
1606C:238:SldPanel._do_layout: Operator not followed by a space
1607        ix +=1
1608           ^^
1609C:238:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1610$)
1611C:239:SldPanel._do_layout: Comma not followed by a space
1612        sizer_output.Add(self.neutron_length_ctl, (iy, ix), (1,1),
1613                                                              ^^
1614                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1615C:241:SldPanel._do_layout: Invalid name "ix" (should match [a-z_][a-z0-9_]{2,30}
1616$)
1617C:242:SldPanel._do_layout: Comma not followed by a space
1618        sizer_output.Add(neutron_length_units_txt, (iy, ix), (1,1),
1619                                                               ^^
1620                            wx.EXPAND|wx.ADJUST_MINSIZE, 0)
1621C:245:SldPanel._do_layout: Comma not followed by a space
1622        sizer2.Add(boxsizer2,0, wx.EXPAND|wx.ALL, 10)
1623                            ^^
1624C:248:SldPanel._do_layout: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30}
1625$)
1626C:254:SldPanel._do_layout: Comma not followed by a space
1627        sizer_button.Add(button_calculate, 0, wx.RIGHT|wx.ADJUST_MINSIZE,20)
1628                                                                        ^^
1629R: 57:SldPanel._do_layout: Too many statements (157/50)
1630E:277:SldPanel.calculate_xray_sld: Undefined variable 'user_formula'
1631E:292:SldPanel.check_inputs: Instance of 'float' has no 'lstrip' member (but som
1632e types could not be inferred)
1633R:312:SldPanel.calculate_sld_helper: Method could be a function
1634C:328:SldPanel.calculateSld: Invalid name "calculateSld" (should match [a-z_][a-
1635z0-9_]{2,30}$)
1636W:373:SldPanel.calculateSld: No exception type(s) specified
1637W:339:SldPanel.calculateSld: No exception type(s) specified
1638C:340:SldPanel.calculateSld: Operator not followed by a space
1639                        msg = "SLD Calculator: %s" %(sys.exc_value)
1640                                                   ^
1641C:347:SldPanel.calculateSld: Comma not followed by a space
1642                (sld_real, sld_im, sld_inc), (coh,absorp,incoh), \
1643                                                 ^^
1644                            length = neutron_scattering(self.compound,
1645                                       self.density, self.wavelength)
1646C:374:SldPanel.calculateSld: Operator not followed by a space
1647                  msg = "SLD Calculator: %s"%(sys.exc_value)
1648                                            ^
1649W:347:SldPanel.calculateSld: Unused variable 'sld_inc'
1650W:347:SldPanel.calculateSld: Unused variable 'coh'
1651W:328:SldPanel.calculateSld: Unused argument 'event'
1652R: 35:SldPanel: Too many public methods (249/20)
1653W:143:SldPanel._do_layout: Attribute 'mo_ka_sld_im_ctl' defined outside __init__
1654
1655W:140:SldPanel._do_layout: Attribute 'mo_ka_sld_reel_ctl' defined outside __init
1656__
1657W:131:SldPanel._do_layout: Attribute 'cu_ka_sld_reel_ctl' defined outside __init
1658__
1659W:155:SldPanel._do_layout: Attribute 'neutron_abs_ctl' defined outside __init__
1660W:286:SldPanel.check_inputs: Attribute 'density' defined outside __init__
1661W:122:SldPanel._do_layout: Attribute 'neutron_sld_reel_ctl' defined outside __in
1662it__
1663W:301:SldPanel.check_inputs: Attribute 'compound' defined outside __init__
1664W:134:SldPanel._do_layout: Attribute 'cu_ka_sld_im_ctl' defined outside __init__
1665
1666W: 80:SldPanel._do_layout: Attribute 'density_ctl' defined outside __init__
1667W:337:SldPanel.calculateSld: Attribute 'sld_formula' defined outside __init__
1668W: 78:SldPanel._do_layout: Attribute 'compound_ctl' defined outside __init__
1669W:161:SldPanel._do_layout: Attribute 'neutron_length_ctl' defined outside __init
1670__
1671W: 83:SldPanel._do_layout: Attribute 'wavelength_ctl' defined outside __init__
1672W:125:SldPanel._do_layout: Attribute 'neutron_sld_im_ctl' defined outside __init
1673__
1674W:149:SldPanel._do_layout: Attribute 'neutron_inc_ctl' defined outside __init__
1675C:381:SldWindow: Missing docstring
1676W:382:SldWindow.__init__: Redefining built-in 'id'
1677C:382:SldWindow.__init__: Comma not followed by a space
1678    def __init__(self, parent=None, id=1, title="SLD Calculator",base=None):
1679                                                                ^^
1680C:382:SldWindow.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30}$
1681)
1682C:382:SldWindow.__init__: Invalid name "id" (should match [a-z_][a-z0-9_]{2,30}$
1683)
1684R:381:SldWindow: Too many public methods (287/20)
1685C:389:ViewApp: Missing docstring
1686C:390:ViewApp.OnInit: Invalid name "OnInit" (should match [a-z_][a-z0-9_]{2,30}$
1687)
1688C:390:ViewApp.OnInit: Missing docstring
1689R:389:ViewApp: Too many public methods (66/20)
1690C:399: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
1691W: 14: Unused import periodictable
1692W: 17: Unused import avogadro_number
1693************* Module sans.perspectives.calculator.slit_length_calculator_panel
1694C: 89: Line too long (86/80)
1695C: 93: Line too long (81/80)
1696C: 99: Line too long (81/80)
1697C:147: Line too long (82/80)
1698C:179: Line too long (81/80)
1699C:189: Line too long (82/80)
1700C:200: Line too long (82/80)
1701W:208: Bad indentation. Found 17 spaces, expected 16
1702W:209: Bad indentation. Found 17 spaces, expected 16
1703C:217: Line too long (82/80)
1704C:229: Line too long (83/80)
1705W: 18: Relative import 'calculator_widgets', should be 'sans.perspectives.calcul
1706ator.calculator_widgets'
1707R: 31:SlitLengthCalculatorPanel: Too many instance attributes (16/7)
1708W: 42:SlitLengthCalculatorPanel.__init__: Redefining built-in 'id'
1709C: 42:SlitLengthCalculatorPanel.__init__: Invalid name "id" (should match [a-z_]
1710[a-z0-9_]{2,30}$)
1711C: 42:SlitLengthCalculatorPanel.__init__: Invalid name "id" (should match [a-z_]
1712[a-z0-9_]{2,30}$)
1713C: 59:SlitLengthCalculatorPanel._define_structure: Comma not followed by a space
1714
1715        self.box_source = wx.StaticBox(self, -1,str("Slit Size Calculator"))
1716                                               ^^
1717W: 76:SlitLengthCalculatorPanel._layout_data_name: Redefining built-in 'id'
1718C: 72:SlitLengthCalculatorPanel._layout_data_name: Comma not followed by a space
1719
1720        self.data_name_tcl = OutputTextCtrl(self, -1, size=(_BOX_WIDTH*4,-1))
1721                                                                        ^^
1722C: 76:SlitLengthCalculatorPanel._layout_data_name: Invalid name "id" (should mat
1723ch [a-z_][a-z0-9_]{2,30}$)
1724C: 89:SlitLengthCalculatorPanel._layout_slit_size: Comma not followed by a space
1725
1726        self.slit_size_tcl = InterActiveOutputTextCtrl(self, -1, size=(_BOX_WIDT
1727H,-1))
1728
1729 ^^
1730C: 93:SlitLengthCalculatorPanel._layout_slit_size: Comma not followed by a space
1731
1732        self.slit_size_unit_tcl = OutputTextCtrl(self, -1, size=(_BOX_WIDTH,-1))
1733
1734                                                                           ^^
1735C:139:SlitLengthCalculatorPanel.choose_data_file: Missing docstring
1736C:147:SlitLengthCalculatorPanel.choose_data_file: Comma not followed by a space
1737        dlg = wx.FileDialog(self, "Choose a file", location,"", wildcard, wx.OPE
1738N)
1739                                                           ^^
1740W:141:SlitLengthCalculatorPanel.choose_data_file: Unused variable 'filename'
1741W:155:SlitLengthCalculatorPanel.on_close: Unused argument 'event'
1742W:186:SlitLengthCalculatorPanel.on_load_data: No exception type(s) specified
1743W:174:SlitLengthCalculatorPanel.on_load_data: Relative import 'load_thread', sho
1744uld be 'sans.perspectives.calculator.load_thread'
1745E:176:SlitLengthCalculatorPanel.on_load_data: Instance of 'DataReader' has no 'i
1746srunning' member
1747E:177:SlitLengthCalculatorPanel.on_load_data: Instance of 'DataReader' has no 's
1748top' member
1749E:184:SlitLengthCalculatorPanel.on_load_data: Instance of 'DataReader' has no 'q
1750ueue' member
1751C:188:SlitLengthCalculatorPanel.on_load_data: Operator not followed by a space
1752            msg = "Slit Length Calculator: %s"%(sys.exc_value)
1753                                              ^
1754W:161:SlitLengthCalculatorPanel.on_load_data: Unused argument 'event'
1755W:214:SlitLengthCalculatorPanel.complete_loading: No exception type(s) specified
1756
1757C:205:SlitLengthCalculatorPanel.complete_loading: Invalid name "x" (should match
1758 [a-z_][a-z0-9_]{2,30}$)
1759C:206:SlitLengthCalculatorPanel.complete_loading: Invalid name "y" (should match
1760 [a-z_][a-z0-9_]{2,30}$)
1761C:216:SlitLengthCalculatorPanel.complete_loading: Operator not followed by a spa
1762ce
1763            msg = "Slit Size Calculator: %s"%(sys.exc_value)
1764                                            ^
1765W:192:SlitLengthCalculatorPanel.complete_loading: Unused argument 'filename'
1766R: 31:SlitLengthCalculatorPanel: Too many public methods (249/20)
1767W: 72:SlitLengthCalculatorPanel._layout_data_name: Attribute 'data_name_tcl' def
1768ined outside __init__
1769W: 89:SlitLengthCalculatorPanel._layout_slit_size: Attribute 'slit_size_tcl' def
1770ined outside __init__
1771W: 62:SlitLengthCalculatorPanel._define_structure: Attribute 'data_name_sizer' d
1772efined outside __init__
1773W:106:SlitLengthCalculatorPanel._layout_hint: Attribute 'hint_txt' defined outsi
1774de __init__
1775W: 63:SlitLengthCalculatorPanel._define_structure: Attribute 'slit_size_sizer' d
1776efined outside __init__
1777W: 93:SlitLengthCalculatorPanel._layout_slit_size: Attribute 'slit_size_unit_tcl
1778' defined outside __init__
1779W: 64:SlitLengthCalculatorPanel._define_structure: Attribute 'hint_sizer' define
1780d outside __init__
1781W: 77:SlitLengthCalculatorPanel._layout_data_name: Attribute 'browse_button' def
1782ined outside __init__
1783W:113:SlitLengthCalculatorPanel._layout_button: Attribute 'bt_close' defined out
1784side __init__
1785W: 58:SlitLengthCalculatorPanel._define_structure: Attribute 'main_sizer' define
1786d outside __init__
1787W: 60:SlitLengthCalculatorPanel._define_structure: Attribute 'boxsizer_source' d
1788efined outside __init__
1789W: 65:SlitLengthCalculatorPanel._define_structure: Attribute 'button_sizer' defi
1790ned outside __init__
1791W: 59:SlitLengthCalculatorPanel._define_structure: Attribute 'box_source' define
1792d outside __init__
1793C:227:SlitLengthCalculatorWindow: Missing docstring
1794W:228:SlitLengthCalculatorWindow.__init__: Redefining built-in 'id'
1795C:228:SlitLengthCalculatorWindow.__init__: Invalid name "id" (should match [a-z_
1796][a-z0-9_]{2,30}$)
1797C:228:SlitLengthCalculatorWindow.__init__: Invalid name "id" (should match [a-z_
1798][a-z0-9_]{2,30}$)
1799C:229:SlitLengthCalculatorWindow.__init__: Comma not followed by a space
1800        wx.Frame.__init__(self, parent, id, title, size=(PANEL_WIDTH,PANEL_HEIGH
1801T))
1802                                                                    ^^
1803R:227:SlitLengthCalculatorWindow: Too many public methods (287/20)
1804C:236: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
1805C:237: Invalid name "frame" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
1806W: 15: Unused import Reader
1807************* Module sans.perspectives.calculator.source_editor
1808C: 59: Line too long (87/80)
1809C: 68: Line too long (82/80)
1810C: 78: Line too long (85/80)
1811C: 79: Line too long (81/80)
1812C: 88: Line too long (86/80)
1813C: 90: Line too long (89/80)
1814C: 91: Line too long (81/80)
1815C: 93: Line too long (84/80)
1816C:102: Line too long (90/80)
1817C:104: Line too long (93/80)
1818C:105: Line too long (89/80)
1819C:107: Line too long (88/80)
1820C:108: Line too long (85/80)
1821C:116: Line too long (90/80)
1822C:118: Line too long (93/80)
1823C:119: Line too long (89/80)
1824C:121: Line too long (87/80)
1825C:122: Line too long (84/80)
1826C:132: Line too long (93/80)
1827C:134: Line too long (96/80)
1828C:135: Line too long (86/80)
1829C:136: Line too long (81/80)
1830C:137: Line too long (91/80)
1831C:138: Line too long (87/80)
1832C:145: Line too long (90/80)
1833C:146: Line too long (89/80)
1834C:159: Line too long (84/80)
1835C:161: Line too long (84/80)
1836C:163: Line too long (85/80)
1837C:165: Line too long (88/80)
1838C:174: Line too long (81/80)
1839C:257: Line too long (81/80)
1840C:260: Line too long (81/80)
1841C:263: Line too long (87/80)
1842C:288: Line too long (84/80)
1843C:365: Line too long (83/80)
1844C:380: Line too long (83/80)
1845C:392: Line too long (83/80)
1846C:394: Line too long (89/80)
1847C:400: Line too long (81/80)
1848C:413: Line too long (86/80)
1849C:428: Line too long (88/80)
1850C:433: Line too long (81/80)
1851C:443: Line too long (88/80)
1852C:448: Line too long (81/80)
1853C:458: Line too long (88/80)
1854C:463: Line too long (81/80)
1855W:494: Bad indentation. Found 13 spaces, expected 12
1856C:  1: Missing docstring
1857R: 19:SourceDialog: Too many instance attributes (38/7)
1858C: 19:SourceDialog: Missing docstring
1859W: 20:SourceDialog.__init__: Redefining name 'source' from outer scope (line 499
1860)
1861C: 39:SourceDialog._define_structure: Comma not followed by a space
1862        self.box_source = wx.StaticBox(self, -1,str("source"))
1863                                               ^^
1864C: 90:SourceDialog._layout_wavelength: Comma not followed by a space
1865        self.wavelength_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH, 20),s
1866tyle=0)
1867                                                                              ^^
1868
1869C:104:SourceDialog._layout_wavelength_min: Comma not followed by a space
1870        self.wavelength_min_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH, 2
18710),style=0)
1872
1873  ^^
1874C:118:SourceDialog._layout_wavelength_max: Comma not followed by a space
1875        self.wavelength_max_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH, 2
18760),style=0)
1877
1878  ^^
1879C:134:SourceDialog._layout_wavelength_spread: Comma not followed by a space
1880        self.wavelength_spread_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH
1881, 20),style=0)
1882
1883     ^^
1884W:129:SourceDialog._layout_wavelength_spread: Unused variable 'wavelength_spread
1885'
1886W:130:SourceDialog._layout_wavelength_spread: Unused variable 'wavelength_spread
1887_unit'
1888C:159:SourceDialog._layout_beam_size: Comma not followed by a space
1889        self.x_beam_size_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), style
1890=0)
1891                                                                     ^^
1892C:161:SourceDialog._layout_beam_size: Comma not followed by a space
1893        self.y_beam_size_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), style
1894=0)
1895                                                                     ^^
1896C:163:SourceDialog._layout_beam_size: Comma not followed by a space
1897        self.z_beam_size_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), style
1898=0)
1899                                                                     ^^
1900C:165:SourceDialog._layout_beam_size: Comma not followed by a space
1901        self.beam_size_unit_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH,20), st
1902yle=0)
1903                                                                        ^^
1904W:155:SourceDialog._layout_beam_size: Unused variable 'beam_size_unit'
1905W:154:SourceDialog._layout_beam_size: Unused variable 'beam_size'
1906W:192:SourceDialog._do_layout: Unused argument 'data'
1907W:270:SourceDialog.set_values: Redefining name 'source' from outer scope (line 4
190899)
1909C:291:SourceDialog.set_values: Invalid name "x" (should match [a-z_][a-z0-9_]{2,
191030}$)
1911C:291:SourceDialog.set_values: Invalid name "y" (should match [a-z_][a-z0-9_]{2,
191230}$)
1913C:291:SourceDialog.set_values: Invalid name "z" (should match [a-z_][a-z0-9_]{2,
191430}$)
1915C:319:SourceDialog.on_change_name: Operator not followed by a space
1916            self._notes += "name from %s to %s \n"%(self._source.name, name)
1917                                                  ^
1918C:330:SourceDialog.on_change_radiation: Operator not followed by a space
1919        self._notes += " %s to %s \n"%(self._source.radiation, radiation)
1920                                     ^
1921C:340:SourceDialog.on_change_beam_shape: Operator not followed by a space
1922        self._notes += " %s to %s \n"%(self._source.beam_shape, beam_shape)
1923                                     ^
1924C:350:SourceDialog.on_change_wavelength: Operator not followed by a space
1925        self._notes += " %s to %s \n"%(self._source.wavelength, wavelength)
1926                                     ^
1927C:355:SourceDialog.on_change_wavelength: Operator not followed by a space
1928            self._notes += "%s to %s"%(self._source.wavelength_unit, unit)
1929                                     ^
1930C:365:SourceDialog.on_change_wavelength_min: Operator not followed by a space
1931        self._notes += " %s to %s \n"%(self._source.wavelength_min, wavelength_m
1932in)
1933                                     ^
1934C:370:SourceDialog.on_change_wavelength_min: Operator not followed by a space
1935            self._notes += "%s to %s"%(self._source.wavelength_min_unit, unit)
1936                                     ^
1937C:380:SourceDialog.on_change_wavelength_max: Operator not followed by a space
1938        self._notes += " %s to %s \n"%(self._source.wavelength_max, wavelength_m
1939ax)
1940                                     ^
1941C:385:SourceDialog.on_change_wavelength_max: Operator not followed by a space
1942            self._notes += "%s to %s"%(self._source.wavelength_max_unit, unit)
1943                                     ^
1944C:394:SourceDialog.on_change_wavelength_spread: Operator not followed by a space
1945
1946        self._notes += " %s to %s \n"%(self._source.wavelength_spread, wavelengt
1947h_spread)
1948                                     ^
1949C:400:SourceDialog.on_change_wavelength_spread: Operator not followed by a space
1950
1951            self._notes += "%s to %s"%(self._source.wavelength_spread_unit, unit
1952)
1953                                     ^
1954C:413:SourceDialog.on_change_beam_size_name: Operator not followed by a space
1955            self._notes += "name from %s to %s \n"%(self._source.beam_size_name,
1956 name)
1957                                                  ^
1958C:428:SourceDialog.on_change_beam_size: Operator not followed by a space
1959                    self._notes += "%s to %s \n"%(self._source.beam_size.x, x_be
1960am_size)
1961                                                ^
1962C:433:SourceDialog.on_change_beam_size: Operator not followed by a space
1963                self._notes += "%s to %s"%(self._source.beam_size.x, x_beam_size
1964)
1965                                         ^
1966C:443:SourceDialog.on_change_beam_size: Operator not followed by a space
1967                    self._notes += "%s to %s \n"%(self._source.beam_size.y, y_be
1968am_size)
1969                                                ^
1970C:448:SourceDialog.on_change_beam_size: Operator not followed by a space
1971                self._notes += "%s to %s"%(self._source.beam_size.y, y_beam_size
1972)
1973                                         ^
1974C:458:SourceDialog.on_change_beam_size: Operator not followed by a space
1975                    self._notes += "%s to %s \n"%(self._source.beam_size.z, z_be
1976am_size)
1977                                                ^
1978C:463:SourceDialog.on_change_beam_size: Operator not followed by a space
1979                self._notes += "%s to %s"%(self._source.beam_size.z, z_beam_size
1980)
1981                                         ^
1982C:468:SourceDialog.on_change_beam_size: Operator not followed by a space
1983            self._notes += "%s to %s"%(self._source.beam_size_unit, unit)
1984                                     ^
1985R:416:SourceDialog.on_change_beam_size: Too many branches (13/12)
1986W:471:SourceDialog.on_click_apply: Unused argument 'event'
1987W:487:SourceDialog.on_click_cancel: Unused argument 'event'
1988R: 19:SourceDialog: Too many public methods (299/20)
1989W:186:SourceDialog._layout_button: Attribute 'bt_close' defined outside __init__
1990
1991W: 90:SourceDialog._layout_wavelength: Attribute 'wavelength_unit_tcl' defined o
1992utside __init__
1993W: 68:SourceDialog._layout_radiation: Attribute 'radiation_tcl' defined outside
1994__init__
1995W: 44:SourceDialog._define_structure: Attribute 'beam_shape_sizer' defined outsi
1996de __init__
1997W: 50:SourceDialog._define_structure: Attribute 'beam_size_sizer' defined outsid
1998e __init__
1999W: 49:SourceDialog._define_structure: Attribute 'beam_size_name_sizer' defined o
2000utside __init__
2001W: 59:SourceDialog._layout_name: Attribute 'sample_name_tcl' defined outside __i
2002nit__
2003W: 45:SourceDialog._define_structure: Attribute 'wavelength_sizer' defined outsi
2004de __init__
2005W: 46:SourceDialog._define_structure: Attribute 'wavelength_min_sizer' defined o
2006utside __init__
2007W: 40:SourceDialog._define_structure: Attribute 'boxsizer_source' defined outsid
2008e __init__
2009W: 51:SourceDialog._define_structure: Attribute 'button_sizer' defined outside _
2010_init__
2011W: 78:SourceDialog._layout_beam_shape: Attribute 'beam_shape_tcl' defined outsid
2012e __init__
2013W:163:SourceDialog._layout_beam_size: Attribute 'z_beam_size_tcl' defined outsid
2014e __init__
2015W:102:SourceDialog._layout_wavelength_min: Attribute 'wavelength_min_tcl' define
2016d outside __init__
2017W:145:SourceDialog._layout_beam_size_name: Attribute 'beam_size_name_tcl' define
2018d outside __init__
2019W:183:SourceDialog._layout_button: Attribute 'bt_cancel' defined outside __init_
2020_
2021W:116:SourceDialog._layout_wavelength_max: Attribute 'wavelength_max_tcl' define
2022d outside __init__
2023W: 38:SourceDialog._define_structure: Attribute 'main_sizer' defined outside __i
2024nit__
2025W:118:SourceDialog._layout_wavelength_max: Attribute 'wavelength_max_unit_tcl' d
2026efined outside __init__
2027W:134:SourceDialog._layout_wavelength_spread: Attribute 'wavelength_spread_unit_
2028tcl' defined outside __init__
2029W: 42:SourceDialog._define_structure: Attribute 'name_sizer' defined outside __i
2030nit__
2031W: 43:SourceDialog._define_structure: Attribute 'radiation_sizer' defined outsid
2032e __init__
2033W: 39:SourceDialog._define_structure: Attribute 'box_source' defined outside __i
2034nit__
2035W: 47:SourceDialog._define_structure: Attribute 'wavelength_max_sizer' defined o
2036utside __init__
2037W:180:SourceDialog._layout_button: Attribute 'bt_apply' defined outside __init__
2038
2039W: 48:SourceDialog._define_structure: Attribute 'wavelength_spread_sizer' define
2040d outside __init__
2041W:104:SourceDialog._layout_wavelength_min: Attribute 'wavelength_min_unit_tcl' d
2042efined outside __init__
2043W: 88:SourceDialog._layout_wavelength: Attribute 'wavelength_tcl' defined outsid
2044e __init__
2045W:165:SourceDialog._layout_beam_size: Attribute 'beam_size_unit_tcl' defined out
2046side __init__
2047W:161:SourceDialog._layout_beam_size: Attribute 'y_beam_size_tcl' defined outsid
2048e __init__
2049W:159:SourceDialog._layout_beam_size: Attribute 'x_beam_size_tcl' defined outsid
2050e __init__
2051W:132:SourceDialog._layout_wavelength_spread: Attribute 'wavelength_spread_tcl'
2052defined outside __init__
2053C:496: Operator not followed by a space
2054if __name__ =="__main__":
2055            ^^
2056C:497: Invalid name "app" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
2057C:499: Invalid name "source" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
2058C:500: Invalid name "dlg" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
2059R:  1: Similar lines in 3 files
2060==sans.perspectives.calculator.aperture_editor:124
2061==sans.perspectives.calculator.sample_editor:175
2062==sans.perspectives.calculator.source_editor:182
2063        self.bt_cancel = wx.Button(self, -1,'Cancel')
2064        self.bt_cancel.SetToolTipString("Cancel current changes.")
2065        self.bt_cancel.Bind(wx.EVT_BUTTON, self.on_click_cancel)
2066        self.bt_close = wx.Button(self, wx.ID_CANCEL,'Close')
2067        self.bt_close.SetToolTipString("Close window.")
2068        self.button_sizer.AddMany([(self.bt_apply, 0, wx.LEFT, 200),
2069                                   (self.bt_cancel, 0, wx.LEFT, 10),
2070                                   (self.bt_close, 0, wx.LEFT, 10)])
2071
2072    def _do_layout(self, data=None):
2073        """
2074        Draw the current panel
2075        """
2076        self._define_structure()
2077        self._layout_name()
2078R:  1: Similar lines in 2 files
2079==sans.perspectives.calculator.sample_editor:301
2080==sans.perspectives.calculator.source_editor:302
2081    def get_notes(self):
2082        """
2083            return notes
2084        """
2085        return self._notes
2086
2087    def on_change_name(self):
2088        """
2089            Change name
2090        """
2091        #Change the name of the sample
2092        name = self.sample_name_tcl.GetValue().lstrip().rstrip()
2093        if name == "" or name == str(None):
2094            name = None
2095R:  1: Similar lines in 4 files
2096==sans.perspectives.calculator.aperture_editor:124
2097==sans.perspectives.calculator.detector_editor:232
2098==sans.perspectives.calculator.sample_editor:175
2099==sans.perspectives.calculator.source_editor:182
2100        self.bt_cancel = wx.Button(self, -1,'Cancel')
2101        self.bt_cancel.SetToolTipString("Cancel current changes.")
2102        self.bt_cancel.Bind(wx.EVT_BUTTON, self.on_click_cancel)
2103        self.bt_close = wx.Button(self, wx.ID_CANCEL,'Close')
2104        self.bt_close.SetToolTipString("Close window.")
2105        self.button_sizer.AddMany([(self.bt_apply, 0, wx.LEFT, 200),
2106                                   (self.bt_cancel, 0, wx.LEFT, 10),
2107                                   (self.bt_close, 0, wx.LEFT, 10)])
2108
2109    def _do_layout(self, data=None):
2110        """
2111        Draw the current panel
2112        """
2113        self._define_structure()
2114R:  1: Similar lines in 2 files
2115==sans.perspectives.calculator.sample_editor:48
2116==sans.perspectives.calculator.source_editor:50
2117        self.button_sizer = wx.BoxSizer(wx.HORIZONTAL)
2118
2119    def _layout_name(self):
2120        """
2121            Do the layout for sample name related widgets
2122        """
2123        # Sample name [string]
2124        sample_name_txt = wx.StaticText(self, -1, 'Sample Name : ')
2125        self.sample_name_tcl = wx.TextCtrl(self, -1, size=(_BOX_WIDTH*5, 20), st
2126yle=0)
2127        self.name_sizer.AddMany([(sample_name_txt, 0, wx.LEFT|wx.RIGHT, 10),
2128                                       (self.sample_name_tcl, 0, wx.EXPAND)])
2129R:  1: Similar lines in 2 files
2130==sans.perspectives.calculator.sample_editor:7
2131==sans.perspectives.calculator.source_editor:7
2132if sys.platform.count("win32")>0:
2133    _STATICBOX_WIDTH = 450
2134    PANEL_WIDTH = 500
2135    PANEL_HEIGHT = 430
2136    FONT_VARIANT = 0
2137else:
2138    _STATICBOX_WIDTH = 480
2139    PANEL_WIDTH = 550
2140    PANEL_HEIGHT = 430
2141    FONT_VARIANT = 1
2142
2143R:  1: Similar lines in 2 files
2144==sans.perspectives.calculator.help_panel:151
2145==sans.perspectives.calculator.sld_panel:391
2146        frame.Show(True)
2147        self.SetTopWindow(frame)
2148
2149        return True
2150
2151
2152if __name__ == "__main__":
2153    app = ViewApp(0)
2154    app.MainLoop()
2155R:  1: Similar lines in 2 files
2156==sans.perspectives.calculator.detector_editor:155
2157==sans.perspectives.calculator.sample_editor:148
2158                                     (self.x_orientation_tcl, 0, wx.RIGHT, 10),
2159                                     (y_orientation_txt, 0, wx.EXPAND),
2160                                     (self.y_orientation_tcl, 0, wx.RIGHT, 10),
2161                                     (z_orientation_txt, 0, wx.EXPAND),
2162                                     (self.z_orientation_tcl, 0, wx.RIGHT, 10),
2163                                     (orientation_unit_txt, 0, wx.EXPAND),
2164                                     (self.orientation_unit_tcl, 0, wx.RIGHT, 10
2165)])
2166
2167R:  1: Similar lines in 5 files
2168==sans.perspectives.calculator.aperture_editor:124
2169==sans.perspectives.calculator.collimation_editor:129
2170==sans.perspectives.calculator.detector_editor:232
2171==sans.perspectives.calculator.sample_editor:175
2172==sans.perspectives.calculator.source_editor:182
2173        self.bt_cancel = wx.Button(self, -1,'Cancel')
2174        self.bt_cancel.SetToolTipString("Cancel current changes.")
2175        self.bt_cancel.Bind(wx.EVT_BUTTON, self.on_click_cancel)
2176        self.bt_close = wx.Button(self, wx.ID_CANCEL,'Close')
2177        self.bt_close.SetToolTipString("Close window.")
2178        self.button_sizer.AddMany([(self.bt_apply, 0, wx.LEFT, 200),
2179                                   (self.bt_cancel, 0, wx.LEFT, 10),
2180                                   (self.bt_close, 0, wx.LEFT, 10)])
2181R:  1: Similar lines in 2 files
2182==sans.perspectives.calculator.data_editor:515
2183==sans.perspectives.calculator.slit_length_calculator_panel:170
2184        self._default_save_location = path
2185        try:
2186            #Load data
2187            from load_thread import DataReader
2188            ## If a thread is already started, stop it
2189            if self.reader is not None and self.reader.isrunning():
2190                self.reader.stop()
2191R:  1: Similar lines in 2 files
2192==sans.perspectives.calculator.aperture_editor:5
2193==sans.perspectives.calculator.sample_editor:4
2194from sans.guiframe.utils import check_float
2195
2196_BOX_WIDTH = 60
2197if sys.platform.count("win32")>0:
2198    _STATICBOX_WIDTH = 450
2199    PANEL_WIDTH = 500
2200R:  1: Similar lines in 2 files
2201==sans.perspectives.calculator.data_editor:522
2202==sans.perspectives.calculator.slit_length_calculator_panel:180
2203            self.reader = DataReader(path=path,
2204                                    completefn=self.complete_loading,
2205                                    updatefn=None)
2206            self.reader.queue()
2207        except:
2208
2209
2210Report
2211======
22122789 statements analysed.
2213
2214Statistics by type
2215------------------
2216
2217+---------+-------+-----------+-----------+------------+---------+
2218|type     |number |old number |difference |%documented |%badname |
2219+=========+=======+===========+===========+============+=========+
2220|module   |14     |14         |=          |21.43       |0.00     |
2221+---------+-------+-----------+-----------+------------+---------+
2222|class    |21     |21         |=          |38.10       |0.00     |
2223+---------+-------+-----------+-----------+------------+---------+
2224|method   |230    |230        |=          |93.91       |1.74     |
2225+---------+-------+-----------+-----------+------------+---------+
2226|function |4      |4          |=          |75.00       |0.00     |
2227+---------+-------+-----------+-----------+------------+---------+
2228
2229
2230
2231External dependencies
2232---------------------
2233::
2234
2235    DataLoader
2236      \-data_info
2237      | \-Aperture (sans.perspectives.calculator.aperture_editor,sans.perspectiv
2238es.calculator.collimation_editor)
2239      | \-Collimation (sans.perspectives.calculator.collimation_editor,sans.pers
2240pectives.calculator.data_editor)
2241      | \-Data2D (sans.perspectives.calculator.data_editor)
2242      | \-DataInfo (sans.perspectives.calculator.data_editor)
2243      | \-Detector (sans.perspectives.calculator.detector_editor,sans.perspectiv
2244es.calculator.data_editor)
2245      | \-Sample (sans.perspectives.calculator.sample_editor)
2246      | \-Source (sans.perspectives.calculator.source_editor)
2247      \-loader
2248      | \-Loader (sans.perspectives.calculator.aperture_editor,sans.perspectives
2249.calculator.load_thread,sans.perspectives.calculator.collimation_editor,sans.per
2250spectives.calculator.console,sans.perspectives.calculator.data_editor)
2251      \-readers
2252        \-ascii_reader
2253          \-Reader (sans.perspectives.calculator.slit_length_calculator_panel)
2254    periodictable (sans.perspectives.calculator.sld_panel)
2255      \-constants
2256      | \-avogadro_number (sans.perspectives.calculator.sld_panel)
2257      \-formula (sans.perspectives.calculator.sld_panel)
2258      \-nsf
2259      | \-neutron_scattering (sans.perspectives.calculator.sld_panel)
2260      \-xsf
2261        \-xray_energy (sans.perspectives.calculator.sld_panel)
2262        \-xray_sld_from_atoms (sans.perspectives.calculator.sld_panel)
2263    sans
2264      \-calculator
2265      | \-slit_length_calculator
2266      |   \-SlitlengthCalculator (sans.perspectives.calculator.slit_length_calcu
2267lator_panel)
2268      \-guicomm
2269      | \-events
2270      |   \-StatusEvent (sans.perspectives.calculator.sld_panel,sans.perspective
2271s.calculator.data_editor,sans.perspectives.calculator.slit_length_calculator_pan
2272el)
2273      \-guiframe
2274      | \-utils
2275      |   \-check_float (sans.perspectives.calculator.data_editor,sans.perspecti
2276ves.calculator.sld_panel,sans.perspectives.calculator.detector_editor,sans.persp
2277ectives.calculator.sample_editor,sans.perspectives.calculator.collimation_editor
2278,sans.perspectives.calculator.aperture_editor,sans.perspectives.calculator.sourc
2279e_editor)
2280      |   \-format_number (sans.perspectives.calculator.sld_panel)
2281      \-perspectives
2282        \-calculator (sans.perspectives.calculator.help_panel)
2283          \-aperture_editor
2284          | \-ApertureDialog (sans.perspectives.calculator.collimation_editor)
2285          \-calculator_widgets
2286          | \-InterActiveOutputTextCtrl (sans.perspectives.calculator.slit_lengt
2287h_calculator_panel)
2288          | \-OutputTextCtrl (sans.perspectives.calculator.slit_length_calculato
2289r_panel)
2290          \-collimation_editor
2291          | \-CollimationDialog (sans.perspectives.calculator.data_editor)
2292          \-console
2293          | \-ConsoleDialog (sans.perspectives.calculator.data_editor)
2294          \-data_editor
2295          | \-DataEditorWindow (sans.perspectives.calculator.calculator)
2296          \-detector_editor
2297          | \-DetectorDialog (sans.perspectives.calculator.data_editor)
2298          \-help_panel
2299          | \-HelpWindow (sans.perspectives.calculator.calculator)
2300          \-load_thread
2301          | \-DataReader (sans.perspectives.calculator.slit_length_calculator_pa
2302nel,sans.perspectives.calculator.data_editor)
2303          \-sample_editor
2304          | \-SampleDialog (sans.perspectives.calculator.data_editor)
2305          \-sld_panel
2306          | \-SldWindow (sans.perspectives.calculator.calculator)
2307          \-slit_length_calculator_panel
2308          | \-SlitLengthCalculatorWindow (sans.perspectives.calculator.calculato
2309r)
2310          \-source_editor
2311            \-SourceDialog (sans.perspectives.calculator.data_editor)
2312    wx (sans.perspectives.calculator.console,sans.perspectives.calculator.data_e
2313ditor,sans.perspectives.calculator.sld_panel,sans.perspectives.calculator.detect
2314or_editor,sans.perspectives.calculator.source_editor,sans.perspectives.calculato
2315r.help_panel,sans.perspectives.calculator.sample_editor,sans.perspectives.calcul
2316ator.collimation_editor,sans.perspectives.calculator.calculator_widgets,sans.per
2317spectives.calculator.aperture_editor,sans.perspectives.calculator.calculator,san
2318s.perspectives.calculator.slit_length_calculator_panel)
2319      \-html (sans.perspectives.calculator.help_panel)
2320      \-lib
2321        \-splitter
2322          \-MultiSplitterWindow (sans.perspectives.calculator.help_panel)
2323
2324
2325
2326Raw metrics
2327-----------
2328
2329+----------+-------+------+---------+-----------+
2330|type      |number |%     |previous |difference |
2331+==========+=======+======+=========+===========+
2332|code      |3189   |73.72 |3189     |=          |
2333+----------+-------+------+---------+-----------+
2334|docstring |752    |17.38 |752      |=          |
2335+----------+-------+------+---------+-----------+
2336|comment   |88     |2.03  |88       |=          |
2337+----------+-------+------+---------+-----------+
2338|empty     |297    |6.87  |297      |=          |
2339+----------+-------+------+---------+-----------+
2340
2341
2342
2343Duplication
2344-----------
2345
2346+-------------------------+------+---------+-----------+
2347|                         |now   |previous |difference |
2348+=========================+======+=========+===========+
2349|nb duplicated lines      |175   |175      |=          |
2350+-------------------------+------+---------+-----------+
2351|percent duplicated lines |3.822 |3.822    |=          |
2352+-------------------------+------+---------+-----------+
2353
2354
2355
2356Messages by category
2357--------------------
2358
2359+-----------+-------+---------+-----------+
2360|type       |number |previous |difference |
2361+===========+=======+=========+===========+
2362|convention |609    |609      |=          |
2363+-----------+-------+---------+-----------+
2364|refactor   |57     |57       |=          |
2365+-----------+-------+---------+-----------+
2366|warning    |413    |413      |=          |
2367+-----------+-------+---------+-----------+
2368|error      |11     |11       |=          |
2369+-----------+-------+---------+-----------+
2370
2371
2372
2373% errors / warnings by module
2374-----------------------------
2375
2376+----------------------------------------------------------+------+--------+----
2377-----+-----------+
2378|module                                                    |error |warning |refa
2379ctor |convention |
2380+==========================================================+======+========+====
2381=====+===========+
2382|sans.perspectives.calculator.data_editor                  |45.45 |23.24   |5.26
2383     |5.91       |
2384+----------------------------------------------------------+------+--------+----
2385-----+-----------+
2386|sans.perspectives.calculator.slit_length_calculator_panel |27.27 |6.54    |5.26
2387     |4.60       |
2388+----------------------------------------------------------+------+--------+----
2389-----+-----------+
2390|sans.perspectives.calculator.sld_panel                    |18.18 |6.54    |12.2
23918    |19.21      |
2392+----------------------------------------------------------+------+--------+----
2393-----+-----------+
2394|sans.perspectives.calculator.load_thread                  |9.09  |0.48    |1.75
2395     |0.16       |
2396+----------------------------------------------------------+------+--------+----
2397-----+-----------+
2398|sans.perspectives.calculator.detector_editor              |0.00  |16.46   |12.2
23998    |20.36      |
2400+----------------------------------------------------------+------+--------+----
2401-----+-----------+
2402|sans.perspectives.calculator.collimation_editor           |0.00  |10.90   |3.51
2403     |4.76       |
2404+----------------------------------------------------------+------+--------+----
2405-----+-----------+
2406|sans.perspectives.calculator.source_editor                |0.00  |10.17   |24.5
24076    |13.79      |
2408+----------------------------------------------------------+------+--------+----
2409-----+-----------+
2410|sans.perspectives.calculator.sample_editor                |0.00  |9.93    |8.77
2411     |12.32      |
2412+----------------------------------------------------------+------+--------+----
2413-----+-----------+
2414|sans.perspectives.calculator.aperture_editor              |0.00  |7.02    |5.26
2415     |8.87       |
2416+----------------------------------------------------------+------+--------+----
2417-----+-----------+
2418|sans.perspectives.calculator.calculator                   |0.00  |4.12    |5.26
2419     |0.66       |
2420+----------------------------------------------------------+------+--------+----
2421-----+-----------+
2422|sans.perspectives.calculator                              |0.00  |1.94    |0.00
2423     |0.66       |
2424+----------------------------------------------------------+------+--------+----
2425-----+-----------+
2426|sans.perspectives.calculator.help_panel                   |0.00  |1.21    |7.02
2427     |6.40       |
2428+----------------------------------------------------------+------+--------+----
2429-----+-----------+
2430|sans.perspectives.calculator.calculator_widgets           |0.00  |0.73    |5.26
2431     |0.49       |
2432+----------------------------------------------------------+------+--------+----
2433-----+-----------+
2434|sans.perspectives.calculator.console                      |0.00  |0.73    |3.51
2435     |1.81       |
2436+----------------------------------------------------------+------+--------+----
2437-----+-----------+
2438
2439
2440
2441Messages
2442--------
2443
2444+-----------+------------+
2445|message id |occurrences |
2446+===========+============+
2447|C0301      |210         |
2448+-----------+------------+
2449|W0201      |207         |
2450+-----------+------------+
2451|C0323      |124         |
2452+-----------+------------+
2453|C0103      |124         |
2454+-----------+------------+
2455|C0324      |104         |
2456+-----------+------------+
2457|W0613      |49          |
2458+-----------+------------+
2459|W0612      |49          |
2460+-----------+------------+
2461|W0311      |29          |
2462+-----------+------------+
2463|W0621      |26          |
2464+-----------+------------+
2465|C0111      |26          |
2466+-----------+------------+
2467|R0904      |19          |
2468+-----------+------------+
2469|W0622      |15          |
2470+-----------+------------+
2471|W0403      |14          |
2472+-----------+------------+
2473|C0112      |13          |
2474+-----------+------------+
2475|W0611      |11          |
2476+-----------+------------+
2477|R0801      |11          |
2478+-----------+------------+
2479|E1101      |9           |
2480+-----------+------------+
2481|R0912      |8           |
2482+-----------+------------+
2483|R0902      |8           |
2484+-----------+------------+
2485|C0322      |8           |
2486+-----------+------------+
2487|W0702      |7           |
2488+-----------+------------+
2489|R0913      |4           |
2490+-----------+------------+
2491|R0201      |4           |
2492+-----------+------------+
2493|W0102      |2           |
2494+-----------+------------+
2495|R0914      |2           |
2496+-----------+------------+
2497|W0511      |1           |
2498+-----------+------------+
2499|W0404      |1           |
2500+-----------+------------+
2501|W0401      |1           |
2502+-----------+------------+
2503|W0105      |1           |
2504+-----------+------------+
2505|R0915      |1           |
2506+-----------+------------+
2507|F0401      |1           |
2508+-----------+------------+
2509|E1103      |1           |
2510+-----------+------------+
2511|E0602      |1           |
2512+-----------+------------+
2513
2514
2515
2516Global evaluation
2517-----------------
2518Your code has been rated at 5.93/10 (previous run: 5.93/10)
2519
2520
2521C:\Documents and Settings\galina\workspace>
Note: See TracBrowser for help on using the repository browser.