Changeset c329f4d in sasview
- Timestamp:
- Aug 20, 2012 6:54:46 PM (12 years ago)
- 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.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- a338547
- Parents:
- 5401f2a
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
r96277b9 rc329f4d 60 60 return os.path.abspath(os.getcwd()) 61 61 62 # Finally, try the directory of the sa nsview module63 #TODO: gui_manager will have to know about sa nsview until we62 # Finally, try the directory of the sasview module 63 #TODO: gui_manager will have to know about sasview until we 64 64 # clean all these module variables and put them into a config class 65 # that can be passed by sa nsview.py.65 # that can be passed by sasview.py. 66 66 logging.info(sys.executable) 67 67 logging.info(str(sys.argv)) 68 from sans import sansview 69 app_path = os.path.dirname(sa nsview.__file__)68 from sans import sansview as sasview 69 app_path = os.path.dirname(sasview.__file__) 70 70 logging.info("Using application path: %s", app_path) 71 71 return app_path … … 75 75 Returns the user's home directory 76 76 """ 77 userdir = os.path.join(os.path.expanduser("~"),".sa nsview")77 userdir = os.path.join(os.path.expanduser("~"),".sasview") 78 78 if not os.path.isdir(userdir): 79 79 os.makedirs(userdir) … … 2104 2104 def _on_save_project(self, event): 2105 2105 """ 2106 save the state of the Sa nsView as *.svs2106 save the state of the SasView as *.svs 2107 2107 """ 2108 2108 if self._current_perspective is None: … … 2112 2112 extension = '*' + APPLICATION_STATE_EXTENSION 2113 2113 dlg = wx.FileDialog(self, "Save Project file", 2114 self._default_save_location, "sa nsview_proj",2114 self._default_save_location, "sasview_proj", 2115 2115 extension, 2116 2116 wx.SAVE) … … 2843 2843 self._data_panel.set_active_perspective(name) 2844 2844 self._check_applications_menu() 2845 #Set the Sa nsView title2845 #Set the SasView title 2846 2846 self._set_title_name(name) 2847 2847 … … 2849 2849 def _set_title_name(self, name): 2850 2850 """ 2851 Set the Sa nsView title w/ the current application name2851 Set the SasView title w/ the current application name 2852 2852 2853 2853 : param name: application name [string] -
sansview/MANIFEST.IN
r5c7cb6f rc329f4d 3 3 include README.txt 4 4 include license.txt 5 include release_notes.txt -
sansview/README.txt
re4d8cdf rc329f4d 2 2 ============= 3 3 4 Sa nsView 2.1.1 (bug fixed)4 SasView 2.1.1 (bug fixed) 5 5 6 6 - Added DataInfo for data in the DataExplorer and plots … … 47 47 - More functionalities on plot panels 48 48 - Combined Modeling and Fitting 49 - Save/open a Sa nsView project or SansView analysis (subproject)50 - Start the Sa nsView application from a data file by double-clicking or from command line49 - Save/open a SasView project or SasView analysis (subproject) 50 - Start the SasView application from a data file by double-clicking or from command line 51 51 - Easy manipulation of data and plot 52 52 - Provides Normalized residual plot … … 94 94 2- Downloading and Installing 95 95 96 *** Note: If you have EXE or ZIP Sa nsView installer, you don't need any of the following.96 *** Note: If you have EXE or ZIP SasView installer, you don't need any of the following. 97 97 98 98 2.1- System Requirements: … … 101 101 102 102 2.2- Installing from source: 103 - Get the code from https://sa nsviewproject.svn.sourceforge.net/svnroot/sansviewproject/releases/sansview-x.x.x104 - run 'python setup.py install' under the 'sa nsview-x.x.x' folder105 - run 'python sa nsview.py' under the 'sansview' folder.103 - Get the code from https://sasviewproject.svn.sourceforge.net/svnroot/sansviewproject/releases/sasview-x.x.x 104 - run 'python setup.py install' under the 'sasview-x.x.x' folder 105 - run 'python sasview.py' under the 'sasview' folder. 106 106 - The following modules are required (version numbers are what are used in the release build): 107 107 - wxPython 2.8.12.1 (NOTE: do NOT use version 2.9) … … 160 160 6- Installer download website 161 161 162 - See: http://danse.chem.utk.edu/sa nsview.html162 - See: http://danse.chem.utk.edu/sasview.html -
sansview/installer.iss
r7f8cb75 rc329f4d 7 7 8 8 ChangesAssociations=yes 9 AppName=Sa nsView10 AppVerName=Sa nsView-2.1.19 AppName=SasView 10 AppVerName=SasView-2.1.1 11 11 AppPublisher=(c) 2009 - 2012, University of Tennessee 12 12 AppPublisherURL=http://danse.chem.utk.edu … … 14 14 AppUpdatesURL=http://danse.chem.utk.edu 15 15 ChangesEnvironment=true 16 DefaultDirName={pf}\Sa nsView17 DefaultGroupName= DANSE\SansView-2.1.116 DefaultDirName={pf}\SasView 17 DefaultGroupName=.\SasView-2.1.1 18 18 DisableProgramGroupPage=yes 19 19 LicenseFile=license.txt 20 OutputBaseFilename=setupSa nsView20 OutputBaseFilename=setupSasView 21 21 SetupIconFile=images\ball.ico 22 22 Compression=lzma … … 27 27 28 28 [Registry] 29 Root: HKCR; Subkey: ".xml\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 30 Root: HKCR; Subkey: ".txt\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 31 Root: HKCR; Subkey: ".asc\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 32 Root: HKCR; Subkey: ".dat\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 33 Root: HKCR; Subkey: ".tif\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 34 Root: HKCR; Subkey: ".abs\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 35 Root: HKCR; Subkey: ".d1d\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 36 Root: HKCR; Subkey: ".sans\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 37 Root: HKCR; Subkey: "applications\SansView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SansView.exe"" ""%1"""; Flags: uninsdeletevalue noerror 38 Root: HKCU; Subkey: "Software\Classes\.xml\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 39 Root: HKCU; Subkey: "Software\Classes\.txt\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 40 Root: HKCU; Subkey: "Software\Classes\.asc\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 41 Root: HKCU; Subkey: "Software\Classes\.dat\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 42 Root: HKCU; Subkey: "Software\Classes\.tif\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 43 Root: HKCU; Subkey: "Software\Classes\.abs\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 44 Root: HKCU; Subkey: "Software\Classes\.d1d\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 45 Root: HKCU; Subkey: "Software\Classes\.sans\OpenWithList\SansView.exe"; Flags: uninsdeletekey noerror 46 Root: HKCU; Subkey: "Software\Classes\applications\SansView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SansView.exe"" ""%1"""; Flags: uninsdeletevalue noerror 47 Root: HKCR; Subkey: ".svs"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue noerror 48 Root: HKCR; Subkey: ".fitv"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue noerror 49 Root: HKCR; Subkey: ".inv"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue noerror 50 Root: HKCR; Subkey: ".prv"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe"; Flags: uninsdeletevalue noerror 51 Root: HKCR; Subkey: "{app}\SansView.exe"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView File"; Flags: uninsdeletekey noerror 52 Root: HKCR; Subkey: "{app}\SansView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SansView.exe"" ""%1"""; Flags: uninsdeletevalue noerror 53 Root: HKCR; Subkey: "{app}\images\ball.ico"; ValueType: string; ValueName: ""; ValueData: "{app}\SansView.exe,0"; Flags: uninsdeletevalue noerror 54 Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "SANSVIEWPATH"; ValueData: "{app}"; Flags: uninsdeletevalue noerror 29 Root: HKCR; Subkey: ".xml\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 30 Root: HKCR; Subkey: ".txt\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 31 Root: HKCR; Subkey: ".asc\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 32 Root: HKCR; Subkey: ".dat\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 33 Root: HKCR; Subkey: ".tif\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 34 Root: HKCR; Subkey: ".abs\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 35 Root: HKCR; Subkey: ".d1d\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 36 Root: HKCR; Subkey: ".sans\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 37 Root: HKCR; Subkey: ".nxs\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 38 Root: HKCR; Subkey: "applications\SasView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SasView.exe"" ""%1"""; Flags: uninsdeletevalue noerror 39 Root: HKCU; Subkey: "Software\Classes\.xml\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 40 Root: HKCU; Subkey: "Software\Classes\.txt\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 41 Root: HKCU; Subkey: "Software\Classes\.asc\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 42 Root: HKCU; Subkey: "Software\Classes\.dat\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 43 Root: HKCU; Subkey: "Software\Classes\.tif\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 44 Root: HKCU; Subkey: "Software\Classes\.abs\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 45 Root: HKCU; Subkey: "Software\Classes\.d1d\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 46 Root: HKCU; Subkey: "Software\Classes\.sans\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 47 Root: HKCU; Subkey: "Software\Classes\.nxs\OpenWithList\SasView.exe"; Flags: uninsdeletekey noerror 48 Root: HKCU; Subkey: "Software\Classes\applications\SasView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SasView.exe"" ""%1"""; Flags: uninsdeletevalue noerror 49 Root: HKCR; Subkey: ".svs"; ValueType: string; ValueName: ""; ValueData: "{app}\SasView.exe"; Flags: uninsdeletevalue noerror 50 Root: HKCR; Subkey: ".fitv"; ValueType: string; ValueName: ""; ValueData: "{app}\SasView.exe"; Flags: uninsdeletevalue noerror 51 Root: HKCR; Subkey: ".inv"; ValueType: string; ValueName: ""; ValueData: "{app}\SasView.exe"; Flags: uninsdeletevalue noerror 52 Root: HKCR; Subkey: ".prv"; ValueType: string; ValueName: ""; ValueData: "{app}\SasView.exe"; Flags: uninsdeletevalue noerror 53 Root: HKCR; Subkey: "{app}\SasView.exe"; ValueType: string; ValueName: ""; ValueData: "{app}\SasView File"; Flags: uninsdeletekey noerror 54 Root: HKCR; Subkey: "{app}\SasView.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\SasView.exe"" ""%1"""; Flags: uninsdeletevalue noerror 55 Root: HKCR; Subkey: "{app}\images\ball.ico"; ValueType: string; ValueName: ""; ValueData: "{app}\SasView.exe,0"; Flags: uninsdeletevalue noerror 56 Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "SASVIEWPATH"; ValueData: "{app}"; Flags: uninsdeletevalue noerror 55 57 ; Write to PATH (below) is disabled; need more tests 56 ;Root: HKCU; Subkey: "Environment"; ValueType: expandsz; ValueName: "PATH"; ValueData: "%SA NSVIEWPATH%;{olddata}"; Check: NeedsAddPath()58 ;Root: HKCU; Subkey: "Environment"; ValueType: expandsz; ValueName: "PATH"; ValueData: "%SASVIEWPATH%;{olddata}"; Check: NeedsAddPath() 57 59 58 60 … … 67 69 68 70 [Files] 69 Source: "dist\Sa nsView.exe"; DestDir: "{app}"; Flags: ignoreversion71 Source: "dist\SasView.exe"; DestDir: "{app}"; Flags: ignoreversion 70 72 Source: "dist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs 71 Source: "dist\plugin_models\*"; DestDir: "{userappdata}\..\.sa nsview\plugin_models"; Flags: recursesubdirs createallsubdirs72 Source: "dist\config\custom_config.py"; DestDir: "{userappdata}\..\.sa nsview\config"; Flags: recursesubdirs createallsubdirs73 Source: "dist\plugin_models\*"; DestDir: "{userappdata}\..\.sasview\plugin_models"; Flags: recursesubdirs createallsubdirs 74 Source: "dist\config\custom_config.py"; DestDir: "{userappdata}\..\.sasview\config"; Flags: recursesubdirs createallsubdirs 73 75 ; NOTE: Don't use "Flags: ignoreversion" on any shared system files 74 76 75 77 [Icons] 76 Name: "{group}\Sa nsView"; Filename: "{app}\SansView.exe"; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico"77 Name: "{group}\{cm:UninstallProgram, Sa nsView}"; Filename: "{uninstallexe}"78 Name: "{commondesktop}\Sa nsView-2.1.1"; Filename: "{app}\SansView.exe"; Tasks: desktopicon; WorkingDir: "{app}" ; IconFilename: "{app}\images\ball.ico"79 Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Sa nsView-2.1.1"; Filename: "{app}\SansView.exe"; Tasks: quicklaunchicon; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico"78 Name: "{group}\SasView"; Filename: "{app}\SasView.exe"; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico" 79 Name: "{group}\{cm:UninstallProgram, SasView}"; Filename: "{uninstallexe}" 80 Name: "{commondesktop}\SasView-2.1.1"; Filename: "{app}\SasView.exe"; Tasks: desktopicon; WorkingDir: "{app}" ; IconFilename: "{app}\images\ball.ico" 81 Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\SasView-2.1.1"; Filename: "{app}\SasView.exe"; Tasks: quicklaunchicon; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico" 80 82 81 83 82 84 [Run] 83 Filename: "{app}\Sa nsView.exe"; Description: "{cm:LaunchProgram, SansView}"; Flags: nowait postinstall skipifsilent85 Filename: "{app}\SasView.exe"; Description: "{cm:LaunchProgram, SasView}"; Flags: nowait postinstall skipifsilent 84 86 ; Install the Microsoft C++ DLL redistributable package if it is provided and the DLLs are not present on the target system. 85 87 ; Note that the redistributable package is included if the app was built using Python 2.6 or 2.7, but not with 2.5. … … 111 113 RegQueryStringValue(HKEY_CURRENT_USER,'Environment','PATH', oldpath) 112 114 oldpath := oldpath + ';'; 113 newpath := '%SA NSVIEWPATH%';115 newpath := '%SASVIEWPATH%'; 114 116 i := 0; 115 117 while (Pos(';', oldpath) > 0) do begin -
sansview/installer_generator.py
re3ef8dd4 rc329f4d 124 124 msg += """ValueType: %s; """ % str('string') 125 125 msg += """ValueName: "%s";\t""" % str('') 126 msg += """ValueData: "{app}\%s";\t""" % str("Sa nsView File")126 msg += """ValueData: "{app}\%s";\t""" % str("SasView File") 127 127 msg += """ Flags: %s \t""" % str("uninsdeletekey noerror") 128 128 msg += "\n" … … 145 145 146 146 147 #SA NSVIEWPATH147 #SASVIEWPATH 148 148 msg += """Root: HKLM; Subkey: "%s";\t""" % str('SYSTEM\CurrentControlSet\Control\Session Manager\Environment') 149 149 msg += """ValueType: %s; """ % str('expandsz') 150 msg += """ValueName: "%s";\t""" % str('SA NSVIEWPATH')150 msg += """ValueName: "%s";\t""" % str('SASVIEWPATH') 151 151 msg += """ValueData: "{app}";\t""" 152 152 msg += """ Flags: %s""" % str('uninsdeletevalue noerror') … … 158 158 msg += """ValueType: %s; """ % str('expandsz') 159 159 msg += """ValueName: "%s";\t""" % str('PATH') 160 msg += """ValueData: "%s;{olddata}";\t""" % str('%SA NSVIEWPATH%')160 msg += """ValueData: "%s;{olddata}";\t""" % str('%SASVIEWPATH%') 161 161 msg += """ Check: %s""" % str('NeedsAddPath()') 162 162 msg += "\n" … … 197 197 msg += """Source: "dist\*";\tDestDir: "{app}";\t""" 198 198 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 199 msg += """Source: "dist\plugin_models\*";\tDestDir: "{userappdata}\..\.sa nsview\plugin_models";\t"""199 msg += """Source: "dist\plugin_models\*";\tDestDir: "{userappdata}\..\.sasview\plugin_models";\t""" 200 200 msg += """Flags: recursesubdirs createallsubdirs\n""" 201 msg += """Source: "dist\config\custom_config.py";\tDestDir: "{userappdata}\..\.sa nsview\config";\t"""201 msg += """Source: "dist\config\custom_config.py";\tDestDir: "{userappdata}\..\.sasview\config";\t""" 202 202 msg += """Flags: recursesubdirs createallsubdirs\n""" 203 203 msg += """;\tNOTE: Don't use "Flags: ignoreversion" on any shared system files""" … … 278 278 msg += """'PATH', oldpath)\n""" 279 279 msg += """ oldpath := oldpath + ';';\n""" 280 msg += """ newpath := '%SA NSVIEWPATH%';\n"""280 msg += """ newpath := '%SASVIEWPATH%';\n""" 281 281 msg += """ i := 0;\n""" 282 282 msg += """ while (Pos(';', oldpath) > 0) do begin\n""" -
sansview/license.txt
rc5d2760 rc329f4d 11 11 we ask that you acknowledge the use of the software with the following sentence: 12 12 13 "This work benefited from the use of the Sa nsView application, originally developed under NSF award DMR-0520547."13 "This work benefited from the use of the SasView application, originally developed under NSF award DMR-0520547." 14 14 15 15 See the DANSE project web site for license information: -
sansview/local_config.py
r204548c rc329f4d 9 9 10 10 # Version of the application 11 __appname__ = "Sa nsView"11 __appname__ = "SasView" 12 12 __version__ = sans.sansview.__version__ 13 13 __build__ = sans.sansview.__build__ … … 59 59 60 60 #edit the list of file state your plugin can read 61 APPLICATION_WLIST = 'Sa nsView files (*.svs)|*.svs'61 APPLICATION_WLIST = 'SasView files (*.svs)|*.svs' 62 62 APPLICATION_STATE_EXTENSION = '.svs' 63 63 GUIFRAME_WIDTH = 1150 … … 90 90 SetupIconFile_win = os.path.join(icon_path, "ball.ico") 91 91 SetupIconFile_mac = os.path.join(icon_path, "ball.icns") 92 DefaultGroupName = " DANSE"93 OutputBaseFilename = "setupSa nsView"92 DefaultGroupName = "." 93 OutputBaseFilename = "setupSasView" 94 94 95 95 FIXED_PANEL = True -
sansview/sansview.py
r19e614a rc329f4d 13 13 logging.basicConfig(level=logging.INFO, 14 14 format='%(asctime)s %(levelname)s %(message)s', 15 filename=os.path.join(os.path.expanduser("~"),'sa nsview.log'))15 filename=os.path.join(os.path.expanduser("~"),'sasview.log')) 16 16 17 17 import wx 18 18 import sys 19 # The below will make sure that sa nsview application uses the matplotlib font20 # bundled with sa nsview.19 # The below will make sure that sasview application uses the matplotlib font 20 # bundled with sasview. 21 21 if hasattr(sys, 'frozen'): 22 22 mplconfigdir = os.path.join(os.path.expanduser("~"), '.matplotlib') … … 33 33 import local_config 34 34 PLUGIN_MODEL_DIR = 'plugin_models' 35 35 APP_NAME = 'SasView' 36 36 def run(): 37 37 sys.path.append(os.path.join("..","..","..")) 38 38 from multiprocessing import freeze_support 39 39 freeze_support() 40 sa nsview = SansView()40 sasview = SasView() 41 41 42 class Sa nsViewApp(gui_manager.ViewApp):42 class SasViewApp(gui_manager.ViewApp): 43 43 """ 44 44 """ 45 45 46 46 47 class Sa nsView():47 class SasView(): 48 48 """ 49 49 """ … … 52 52 """ 53 53 #from gui_manager import ViewApp 54 self.gui = Sa nsViewApp(0)54 self.gui = SasViewApp(0) 55 55 # Set the application manager for the GUI 56 56 self.gui.set_manager(self) … … 68 68 self.gui.add_perspective(fitting_plug) 69 69 except: 70 logging.error(" SansView: could not find Fitting plug-in module")70 logging.error("%s: could not find Fitting plug-in module")% APP_NAME 71 71 logging.error(sys.exc_value) 72 72 … … 77 77 self.gui.add_perspective(pr_plug) 78 78 except: 79 logging.error(" SansView: could not find P(r) plug-in module")79 logging.error("%s: could not find P(r) plug-in module")% APP_NAME 80 80 logging.error(sys.exc_value) 81 81 … … 87 87 except: 88 88 raise 89 logging.error("SansView: could not find Invariant plug-in module") 89 logging.error("%s: could not find Invariant plug-in module")% \ 90 APP_NAME 90 91 logging.error(sys.exc_value) 91 92 … … 96 97 self.gui.add_perspective(calculator_plug) 97 98 except: 98 logging.error("SansView: could not find Calculator plug-in module") 99 logging.error("%s: could not find Calculator plug-in module")% \ 100 APP_NAME 99 101 logging.error(sys.exc_value) 100 102 … … 115 117 from multiprocessing import freeze_support 116 118 freeze_support() 117 #Process(target=Sa nsView).start()118 sa nsview = SansView()119 #Process(target=SasView).start() 120 sasview = SasView() 119 121 120 122 -
sansview/setup_exe.py
r213b445 rc329f4d 19 19 if len(sys.argv) == 1: 20 20 sys.argv.append('py2exe') 21 # When using the Sa nsView build script, we need to be able to pass21 # When using the SasView build script, we need to be able to pass 22 22 # an extra path to be added to the python path. The extra arguments 23 23 # should be removed from the list so that the setup processing doesn't … … 31 31 sys.argv.remove('--extrapath') 32 32 except: 33 print "Error processing extra python path needed to build Sa nsView\n %s" % sys.exc_value33 print "Error processing extra python path needed to build SasView\n %s" % sys.exc_value 34 34 35 35 from distutils.core import setup … … 96 96 type="win32" 97 97 /> 98 <description>Sa nsView</description>98 <description>SasView</description> 99 99 <dependency> 100 100 <dependentAssembly> … … 118 118 version="5.0.0.0" 119 119 processorArchitecture="x86" 120 name="Sa nsView"120 name="SasView" 121 121 type="win32"> 122 122 </assemblyIdentity> 123 <description>Sa nsView</description>123 <description>SasView</description> 124 124 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> 125 125 <security> … … 167 167 type="win32" 168 168 /> 169 <description>Sa nsView</description>169 <description>SasView</description> 170 170 <dependency> 171 171 <dependentAssembly> … … 207 207 self.company_name = "U Tennessee" 208 208 self.copyright = "copyright 2009 - 2012" 209 self.name = "Sa nsView"209 self.name = "SasView" 210 210 211 211 # … … 317 317 318 318 target_wx_client = Target( 319 description = 'Sa nsView',319 description = 'SasView', 320 320 script = 'sansview.py', 321 321 icon_resources = [(1, os.path.join(images_dir, "ball.ico"))], 322 322 other_resources = [(24,1,manifest)], 323 dest_base = "Sa nsView"323 dest_base = "SasView" 324 324 ) 325 325 -
sansview/setup_mac.py
r270cc72e rc329f4d 96 96 plist = dict(CFBundleDocumentTypes=[dict(CFBundleTypeExtensions=EXTENSIONS_LIST, 97 97 CFBundleTypeIconFile=ICON, 98 CFBundleTypeName="sa nsview file",98 CFBundleTypeName="sasview file", 99 99 CFBundleTypeRole="Shell" )],) 100 100 -
sansview/welcome_panel.py
r4851fe9e rc329f4d 36 36 wx.aui.AuiNotebook.__init__(self, parent, *args, **kwds) 37 37 PanelBase.__init__(self) 38 #For sa nsview the parent is guiframe38 #For sasview the parent is guiframe 39 39 self.parent = parent 40 40 -
setup.py
r5a313a3 rc329f4d 1 1 """ 2 Setup for Sa nsView2 Setup for SasView 3 3 #TODO: Add checks to see that all the dependencies are on the system 4 4 """ … … 19 19 "core","include") 20 20 except: 21 msg = "\nNumpy is needed to build Sa nsView. "21 msg = "\nNumpy is needed to build SasView. " 22 22 print msg, "Try easy_install numpy.\n %s" % str(sys.exc_value) 23 23 sys.exit(0) … … 43 43 'sum_Ap1_1_Ap2.pyc', 'sum_p1_p2.pyc', 44 44 'testmodel_2.pyc', 'testmodel.pyc', 'plugins.log'] 45 sans_dir = os.path.join(os.path.expanduser("~"),'.sa nsview')45 sans_dir = os.path.join(os.path.expanduser("~"),'.sasview') 46 46 if os.path.isdir(sans_dir): 47 f_path = os.path.join(sans_dir, "sa nsview.log")47 f_path = os.path.join(sans_dir, "sasview.log") 48 48 if os.path.isfile(f_path): 49 49 os.remove(f_path) … … 323 323 ] ) 324 324 325 # Sa nsView325 # SasView 326 326 package_dir["sans.sansview"] = "sansview" 327 327 package_data['sans.sansview'] = ['images/*', 'media/*', 'test/*'] … … 341 341 342 342 343 # Set up Sa nsView343 # Set up SasView 344 344 setup( 345 name="sa nsview",345 name="sasview", 346 346 version = VERSION, 347 description = "Sa nsView application",347 description = "SasView application", 348 348 author = "University of Tennessee", 349 349 author_email = "sansdanse@gmail.com", 350 350 url = "http://danse.chem.utk.edu", 351 351 license = "PSF", 352 keywords = "small-angle neutron scattering analysis",352 keywords = "small-angle x-ray and neutron scattering analysis", 353 353 download_url = "https://sourceforge.net/projects/sansviewproject/files/", 354 354 package_dir = package_dir,
Note: See TracChangeset
for help on using the changeset viewer.