Changeset 914c49d5 in sasview for src/sas/sasgui/perspectives


Ignore:
Timestamp:
May 2, 2017 6:05:48 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
8e15dce
Parents:
6e6dd4c (diff), 658dd57 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into batch_slicer

Location:
src/sas/sasgui/perspectives
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/calculator/detector_editor.py

    r959eb01 ra1b8fee  
     1from __future__ import print_function 
    12 
    23import wx 
     
    3435            self.set_values() 
    3536        except: 
    36             print "error", sys.exc_value 
     37            print("error", sys.exc_value) 
    3738 
    3839    def _define_structure(self): 
  • src/sas/sasgui/perspectives/calculator/gen_scatter_panel.py

    r7432acb ra1b8fee  
    33This module relies on guiframe manager. 
    44""" 
     5from __future__ import print_function 
    56 
    67import wx 
     
    19981999            self.panel.set_volume_ctl_val(str(val)) 
    19992000        except: 
    2000             print "self.panel is not initialized yet" 
     2001            print("self.panel is not initialized yet") 
    20012002 
    20022003    def set_omfpanel_default_shap(self, shape): 
  • src/sas/sasgui/perspectives/calculator/image_viewer.py

    r7432acb ra1b8fee  
     1from __future__ import print_function 
     2 
    13import os 
    24import sys 
     
    7880                wx.PostEvent(parent, StatusEvent(status=err_msg, info="error")) 
    7981            else: 
    80                 print err_msg 
     82                print(err_msg) 
    8183 
    8284    def choose_data_file(self, location=None): 
     
    301303                                                    info="error")) 
    302304            else: 
    303                 print err_msg 
     305                print(err_msg) 
    304306        return flag 
    305307 
     
    332334                                                    info="error")) 
    333335            else: 
    334                 print err_msg 
     336                print(err_msg) 
    335337        return flag 
    336338 
     
    361363                                                    info="error")) 
    362364            else: 
    363                 print err_msg 
     365                print(err_msg) 
    364366 
    365367        self.OnClose(event) 
  • src/sas/sasgui/perspectives/calculator/model_editor.py

    r7432acb ra1b8fee  
    2323#copyright 2009, University of Tennessee 
    2424################################################################################ 
     25from __future__ import print_function 
     26 
    2527import wx 
    2628import sys 
     
    871873        # Put the cursor at appropriate position 
    872874        length = len(label) 
    873         print length 
     875        print(length) 
    874876        if label[length-1] == ')': 
    875877            length -= 1 
  • src/sas/sasgui/perspectives/fitting/basepage.py

    rac0578c r914c49d5  
    22Base Page for fitting 
    33""" 
     4from __future__ import print_function 
     5 
    46import sys 
    57import os 
     
    657659        # It seems MAC needs wxCallAfter 
    658660        if event.GetId() == GUIFRAME_ID.COPYEX_ID: 
    659             print "copy excel" 
     661            print("copy excel") 
    660662            wx.CallAfter(self.get_copy_excel) 
    661663        elif event.GetId() == GUIFRAME_ID.COPYLAT_ID: 
    662             print "copy latex" 
     664            print("copy latex") 
    663665            wx.CallAfter(self.get_copy_latex) 
    664666        else: 
     
    33683370        except Exception: 
    33693371            logger.error(traceback.format_exc()) 
    3370             print "Error in BasePage._paste_poly_help: %s" % \ 
    3371                   sys.exc_info()[1] 
     3372            print("Error in BasePage._paste_poly_help: %s" % \ 
     3373                  sys.exc_info()[1]) 
    33723374 
    33733375    def _set_disp_cb(self, isarray, item): 
     
    33983400            Moveit; This method doesn't belong here 
    33993401        """ 
    3400         print "BasicPage.update_pinhole_smear was called: skipping" 
     3402        print("BasicPage.update_pinhole_smear was called: skipping") 
    34013403        return 
    34023404 
     
    35743576        # check model type to show sizer 
    35753577        if self.model is not None: 
    3576             print "_set_model_sizer_selection: disabled." 
     3578            print("_set_model_sizer_selection: disabled.") 
    35773579            # self._set_model_sizer_selection(self.model) 
    35783580 
  • src/sas/sasgui/perspectives/fitting/fitting.py

    r7432acb ra1b8fee  
    1111#copyright 2009, University of Tennessee 
    1212################################################################################ 
     13from __future__ import print_function 
     14 
    1315import re 
    1416import sys 
     
    12531255        """ 
    12541256        """ 
    1255         print "update_fit result", result 
     1257        print("update_fit result", result) 
    12561258 
    12571259    def _batch_fit_complete(self, result, pars, page_id, 
     
    20462048            res = (fn - gn) / en 
    20472049        except ValueError: 
    2048             print "Unmatch lengths %s, %s, %s" % (len(fn), len(gn), len(en)) 
     2050            print("Unmatch lengths %s, %s, %s" % (len(fn), len(gn), len(en))) 
    20492051            return 
    20502052 
  • src/sas/sasgui/perspectives/fitting/media/plugin.rst

    r984f3fc r72100ee  
    538538    sin, cos, tan, asin, acos, atan: 
    539539        Trigonometry functions and inverses, operating on radians. 
    540     sinh, cos, tanh, asinh, acosh, atanh: 
     540    sinh, cosh, tanh, asinh, acosh, atanh: 
    541541        Hyperbolic trigonometry functions. 
    542542    atan2(y,x): 
  • src/sas/sasgui/perspectives/fitting/models.py

    r463e7ffc ra1b8fee  
    22    Utilities to manage models 
    33""" 
     4from __future__ import print_function 
     5 
    46import traceback 
    57import os 
     
    141143        type, value, tb = sys.exc_info() 
    142144        if type is not None and issubclass(type, py_compile.PyCompileError): 
    143             print "Problem with", repr(value) 
     145            print("Problem with", repr(value)) 
    144146            raise type, value, tb 
    145147        return 1 
  • src/sas/sasgui/perspectives/pr/pr.py

    r7432acb ra1b8fee  
    1515# Make sure the option of saving each curve is available 
    1616# Use the I(q) curve as input and compare the output to P(r) 
     17from __future__ import print_function 
    1718 
    1819import sys 
     
    230231        out, cov = pr.pr_fit() 
    231232        for i in range(len(out)): 
    232             print "%g +- %g" % (out[i], math.sqrt(cov[i][i])) 
     233            print("%g +- %g" % (out[i], math.sqrt(cov[i][i]))) 
    233234 
    234235        # Show input P(r) 
     
    318319            except: 
    319320                err[i] = 1.0 
    320                 print "Error getting error", value, x[i] 
     321                print("Error getting error", value, x[i]) 
    321322 
    322323        new_plot = Data1D(x, y) 
  • src/sas/sasgui/perspectives/simulation/ShapeParameters.py

    rd85c194 ra1b8fee  
    88copyright 2009, University of Tennessee 
    99""" 
     10from __future__ import print_function 
     11 
    1012import wx 
    1113import sys 
     
    312314            self.parent.GetSizer().Layout() 
    313315        except: 
    314             print "TODO: move the Layout call of editShape up to the caller" 
     316            print("TODO: move the Layout call of editShape up to the caller") 
    315317 
    316318    def _readCtrlFloat(self, ctrl): 
     
    392394                    self.current_shape.params[item[0]] = tmp  
    393395        except: 
    394             print "Could not create" 
    395             print sys.exc_value 
     396            print("Could not create") 
     397            print(sys.exc_value) 
    396398                 
    397399    def _onCreate(self, evt): 
     
    485487        indices = self.shape_listbox.GetSelections() 
    486488        if len(indices)>0: 
    487             print "NOT YET IMPLMENTED" 
    488             print "renaming", self.shape_listbox.GetString(indices[0]) 
    489                  
     489            print("NOT YET IMPLMENTED") 
     490            print("renaming", self.shape_listbox.GetString(indices[0])) 
     491                 
Note: See TracChangeset for help on using the changeset viewer.