source: sasview/src/sas/sasgui/guiframe/config.py @ a2573fc

Last change on this file since a2573fc was 1779e72, checked in by smk78, 8 years ago

Incorporated DLS logo and URL, and added DLS to list of institutional
contributors. Closes #913

  • Property mode set to 100644
File size: 5.7 KB
RevLine 
[f53cd30]1"""
[f9d1f60]2    Application settings
[f53cd30]3"""
4import time
[f9d1f60]5import os
[d85c194]6from sas.sasgui.guiframe.gui_style import GUIFRAME
[f9d1f60]7import sas.sasview
8import logging
9
[f53cd30]10# Version of the application
[f9d1f60]11__appname__ = "SasView"
12__version__ = sas.sasview.__version__
13__build__ = sas.sasview.__build__
[c8d22ec]14__download_page__ = 'https://github.com/SasView/sasview/releases'
[9989a6a]15__update_URL__ = 'http://www.sasview.org/latestversion.json'
[f53cd30]16
17# Debug message flag
[f9d1f60]18__EVT_DEBUG__ = False
[f53cd30]19
20# Flag for automated testing
21__TEST__ = False
22
23# Debug message should be written to a file?
[c8d22ec]24__EVT_DEBUG_2_FILE__ = False
[f53cd30]25__EVT_DEBUG_FILENAME__ = "debug.log"
26
27# About box info
28_do_aboutbox = True
29_do_acknowledge = True
30_do_tutorial = True
31_acknowledgement_preamble =\
[0ea31ca]32'''To ensure the long term support and development of this software please''' +\
[f9d1f60]33''' remember to:'''
[0ea31ca]34_acknowledgement_preamble_bullet1 =\
[f9d1f60]35'''Acknowledge its use in your publications as :'''
[0ea31ca]36_acknowledgement_preamble_bullet2 =\
[f9d1f60]37'''Reference SasView as:'''
[0ea31ca]38_acknowledgement_preamble_bullet3 =\
[c8d22ec]39'''Reference the model you used if appropriate (see documentation for refs)'''
40_acknowledgement_preamble_bullet4 =\
41'''Send us your reference for our records: developers@sasview.org'''
[f53cd30]42_acknowledgement_publications = \
[f9d1f60]43'''This work benefited from the use of the SasView application, originally developed under NSF Award DMR-0520547. SasView also contains code developed with funding from the EU Horizon 2020 programme under the SINE2020 project Grant No 654000.'''
44_acknowledgement_citation = \
45'''M. Doucet et al. SasView Version 4.1, Zenodo, 10.5281/zenodo.438138'''
[f53cd30]46
[f9d1f60]47_acknowledgement =  \
[1779e72]48'''This work was originally developed as part of the DANSE project funded by the US NSF under Award DMR-0520547,\n but is currently maintained by a collaboration between UTK, UMD, NIST, ORNL, ISIS, ESS, ILL, ANSTO, TU Delft, DLS, and the scattering community.\n\n SasView also contains code developed with funding from the EU Horizon 2020 programme under the SINE2020 project (Grant No 654000).\nA list of individual contributors can be found at: https://github.com/orgs/SasView/people
[f53cd30]49'''
[f9d1f60]50
[f53cd30]51_homepage = "http://www.sasview.org"
[f9d1f60]52_download = __download_page__
[f53cd30]53_authors = []
54_paper = "http://sourceforge.net/p/sasview/tickets/"
55_license = "mailto:help@sasview.org"
[f9d1f60]56
57
58icon_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "images"))
59logging.info("icon path: %s" % icon_path)
60media_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "media"))
61test_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "test"))
62
63_nist_logo = os.path.join(icon_path, "nist_logo.png")
64_umd_logo = os.path.join(icon_path, "umd_logo.png")
65_sns_logo = os.path.join(icon_path, "sns_logo.png")
66_ornl_logo = os.path.join(icon_path, "ornl_logo.png")
67_isis_logo = os.path.join(icon_path, "isis_logo.png")
68_ess_logo = os.path.join(icon_path, "ess_logo.png")
69_ill_logo = os.path.join(icon_path, "ill_logo.png")
70_ansto_logo = os.path.join(icon_path, "ansto_logo.png")
71_tudelft_logo = os.path.join(icon_path, "tudelft_logo.png")
72_nsf_logo = os.path.join(icon_path, "nsf_logo.png")
73_danse_logo = os.path.join(icon_path, "danse_logo.png")
74_inst_logo = os.path.join(icon_path, "utlogo.gif")
[f53cd30]75_nist_url = "http://www.nist.gov/"
76_umd_url = "http://www.umd.edu/"
77_sns_url = "http://neutrons.ornl.gov/"
[f9d1f60]78_ornl_url = "http://neutrons.ornl.gov/"
[f53cd30]79_nsf_url = "http://www.nsf.gov"
80_isis_url = "http://www.isis.stfc.ac.uk/"
81_ess_url = "http://ess-scandinavia.eu/"
82_ill_url = "http://www.ill.eu/"
[f9d1f60]83_ansto_url = "http://www.ansto.gov.au/"
84_tudelft_url = "http://www.tnw.tudelft.nl/en/cooperation/facilities/reactor-instituut-delft/"
[1779e72]85_dls_url = "http://www.diamond.ac.uk/"
[f9d1f60]86_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html"
87_inst_url = "http://www.utk.edu"
88_corner_image = os.path.join(icon_path, "angles_flat.png")
89_welcome_image = os.path.join(icon_path, "SVwelcome.png")
[1779e72]90_copyright = "(c) 2009 - 2017, UTK, UMD, NIST, ORNL, ISIS, ESS, ILL, ANSTO, TU Delft, and DLS"
[f9d1f60]91marketplace_url = "http://marketplace.sasview.org/"
92
93#edit the list of file state your plugin can read
94APPLICATION_WLIST = 'SasView files (*.svs)|*.svs'
95APPLICATION_STATE_EXTENSION = '.svs'
96GUIFRAME_WIDTH = 1150
97GUIFRAME_HEIGHT = 840
98PLUGIN_STATE_EXTENSIONS = ['.fitv', '.inv', '.prv', '.crf']
99PLUGINS_WLIST = ['Fitting files (*.fitv)|*.fitv',
100                 'Invariant files (*.inv)|*.inv',
101                 'P(r) files (*.prv)|*.prv',
102                 'Corfunc files (*.crf)|*.crf']
103PLOPANEL_WIDTH = 415
104PLOPANEL_HEIGTH = 370
[f53cd30]105DATAPANEL_WIDTH = 235
106DATAPANEL_HEIGHT = 700
[f9d1f60]107SPLASH_SCREEN_PATH = os.path.join(icon_path, "SVwelcome_mini.png")
108TUTORIAL_PATH = os.path.join(media_path, "Tutorial.pdf")
109DEFAULT_STYLE = GUIFRAME.MULTIPLE_APPLICATIONS|GUIFRAME.MANAGER_ON\
110                    |GUIFRAME.CALCULATOR_ON|GUIFRAME.TOOLBAR_ON
111SPLASH_SCREEN_WIDTH = 512
112SPLASH_SCREEN_HEIGHT = 366
113SS_MAX_DISPLAY_TIME = 2000
114WELCOME_PANEL_ON = True
115WELCOME_PANEL_SHOW = False
116CLEANUP_PLOT = False
117# OPEN and SAVE project menu
118OPEN_SAVE_PROJECT_MENU = True
119#VIEW MENU
120VIEW_MENU = True
121#EDIT MENU
122EDIT_MENU = True
123
124SetupIconFile_win = os.path.join(icon_path, "ball.ico")
125SetupIconFile_mac = os.path.join(icon_path, "ball.icns")
126DefaultGroupName = "."
127OutputBaseFilename = "setupSasView"
128
[f53cd30]129FIXED_PANEL = True
130DATALOADER_SHOW = True
131CLEANUP_PLOT = False
132WELCOME_PANEL_SHOW = False
133#Show or hide toolbar at the start up
134TOOLBAR_SHOW = True
135# set a default perspective
136DEFAULT_PERSPECTIVE = 'None'
[f9d1f60]137
138# Time out for updating sasview
139UPDATE_TIMEOUT = 2
140
141#OpenCL option
142SAS_OPENCL = None
[f53cd30]143
144def printEVT(message):
145    if __EVT_DEBUG__:
[f9d1f60]146        """
147        :TODO - Need method doc string
148        """
[f53cd30]149        print "%g%s" % (time.clock(), message)
[f9d1f60]150
[f53cd30]151        if __EVT_DEBUG_2_FILE__:
152            out = open(__EVT_DEBUG_FILENAME__, 'a')
153            out.write("%10g%s\n" % (time.clock(), message))
154            out.close()
Note: See TracBrowser for help on using the repository browser.