Changes in / [cf2e6b4:aa4b4f05] in sasview
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/ascii_reader.py
r7d94915 rd2471870 172 172 input_f.close() 173 173 if not is_data: 174 return None 174 msg = "ascii_reader: x has no data" 175 raise RuntimeError, msg 175 176 # Sanity check 176 177 if has_error_dy == True and not len(ty) == len(tdy): -
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py
r245ae18 r29e872e 65 65 # context menu 66 66 self._slicerpop = None 67 68 67 self._available_data = [] 69 68 self._symbol_labels = self.get_symbol_label() … … 732 731 self.subplot.set_ylim(y_range) 733 732 self.subplot.figure.canvas.draw_idle() 733 self.is_zoomed = True 734 734 d.Destroy() 735 735 -
src/sas/sasgui/perspectives/calculator/model_editor.py
rcf1910f ra08b89b 632 632 self.reader = None 633 633 self.name = 'untitled' 634 self.overwrite_name = True634 self.overwrite_name = False 635 635 self.is_2d = False 636 636 self.fname = None … … 684 684 name_txt = wx.StaticText(self, -1, 'Function Name : ') 685 685 overwrite_cb = wx.CheckBox(self, -1, "Overwrite existing plugin model of this name?", (10, 10)) 686 overwrite_cb.SetValue( True)686 overwrite_cb.SetValue(False) 687 687 overwrite_cb.SetToolTipString("Overwrite it if already exists?") 688 688 wx.EVT_CHECKBOX(self, overwrite_cb.GetId(), self.on_over_cb) 689 #overwrite_cb.Show(False)690 689 self.name_tcl = wx.TextCtrl(self, -1, size=(PANEL_WIDTH * 3 / 5, -1)) 691 690 self.name_tcl.Bind(wx.EVT_TEXT_ENTER, self.on_change_name) 692 self.name_tcl.SetValue(' MyFunction')691 self.name_tcl.SetValue('') 693 692 self.name_tcl.SetFont(self.font) 694 693 hint_name = "Unique Model Function Name." … … 947 946 # First check for valid python name then if the name already exists 948 947 if not name or not bool(re.match('^[A-Za-z0-9_]*$', name)): 949 msg = "is not a valid python name. Name must not be empty and \n" 948 msg = '"%s" '%name 949 msg += "is not a valid model name. Name must not be empty and \n" 950 950 msg += "may include only alpha numeric or underline characters \n" 951 951 msg += "and no spaces" … … 1152 1152 1153 1153 _TreeLocation = "user/sasgui/perspectives/fitting/fitting_help.html" 1154 _PageAnchor = "# New_Plugin_Model"1154 _PageAnchor = "#new-plugin-model" 1155 1155 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, _PageAnchor, 1156 1156 "Plugin Model Editor Help") -
src/sas/sasgui/perspectives/invariant/media/invariant_help.rst
rb64b87c r484141c 116 116 Academic Press, New York, 1982 117 117 118 http:// physchem.kfunigraz.ac.at/sm/118 http://web.archive.org/web/20110824105537/http://physchem.kfunigraz.ac.at/sm/Service/Glatter_Kratky_SAXS_1982.zip 119 119 120 120 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ -
src/sas/sasgui/plottools/PlotPanel.py
r1a8e2e8e r198fa76 452 452 """ 453 453 self.cusor_line(event) 454 if self.gotLegend == 1 :454 if self.gotLegend == 1 and self.leftdown: 455 455 self._on_legend_motion(event) 456 456 return -
src/sas/sasgui/plottools/plottables.py
r8abd96d r80f4684 212 212 self.color += plottable.colors() 213 213 self.plottables[plottable] = self.color 214 plottable.custom_color = self.color 214 215 215 216 def changed(self): -
test/sasdataloader/test/utest_ascii.py
r7d94915 r3d29f26b 92 92 """ 93 93 # Test .ABS file loaded as ascii 94 f = self.loader.load("ascii_test_6.txt") 94 f = None 95 try: 96 f = self.loader.load("ascii_test_6.txt") 95 97 # The length of the data is 5 96 self.assertEqual(f, None) 98 except: 99 self.assertEqual(f, None) 97 100 98 101 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.