Changeset 914ba0a in sasview for src/sas/sasview/local_config.py


Ignore:
Timestamp:
May 2, 2017 3:58:01 PM (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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
d66dbcc
Parents:
74d9780 (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 with master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasview/local_config.py

    refe730d r914ba0a  
    22Application settings 
    33""" 
     4from __future__ import print_function 
     5 
    46import time 
    57import os 
     
    810from sas.sasgui.guiframe.gui_style import GUIFRAME 
    911import sas.sasview 
     12 
     13logger = logging.getLogger(__name__) 
    1014 
    1115# Version of the application 
     
    3236_acknowledgement_preamble =\ 
    3337'''To ensure the long term support and development of this software please''' +\ 
    34 ''' remember to do the following.''' 
     38''' remember to:''' 
    3539_acknowledgement_preamble_bullet1 =\ 
    36 '''Acknowledge its use in your publications as suggested below''' 
     40'''Acknowledge its use in your publications as :''' 
    3741_acknowledgement_preamble_bullet2 =\ 
    38 '''Reference the following website: http://www.sasview.org''' 
     42'''Reference SasView as:''' 
    3943_acknowledgement_preamble_bullet3 =\ 
    4044'''Reference the model you used if appropriate (see documentation for refs)''' 
     
    4246'''Send us your reference for our records: developers@sasview.org''' 
    4347_acknowledgement_publications = \ 
    44 '''This work benefited from the use of the SasView application, originally 
    45 developed under NSF award DMR-0520547. 
     48'''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.''' 
     49_acknowledgement_citation = \ 
     50'''M. Doucet et al. SasView Version 4.1, Zenodo, 10.5281/zenodo.438138''' 
     51 
     52_acknowledgement =  \ 
     53'''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: http://www.sasview.org/contact.html 
    4654''' 
    47 _acknowledgement =  \ 
    48 '''This work originally developed as part of the DANSE project funded by the NSF 
    49 under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS 
    50 and ILL. 
    5155 
    52 ''' 
    5356_homepage = "http://www.sasview.org" 
    5457_download = __download_page__ 
     
    5962 
    6063icon_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "images")) 
    61 logging.info("icon path: %s" % icon_path) 
     64logger.info("icon path: %s" % icon_path) 
    6265media_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "media")) 
    6366test_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "test")) 
     
    6669_umd_logo = os.path.join(icon_path, "umd_logo.png") 
    6770_sns_logo = os.path.join(icon_path, "sns_logo.png") 
     71_ornl_logo = os.path.join(icon_path, "ornl_logo.png") 
    6872_isis_logo = os.path.join(icon_path, "isis_logo.png") 
    6973_ess_logo = os.path.join(icon_path, "ess_logo.png") 
    7074_ill_logo = os.path.join(icon_path, "ill_logo.png") 
     75_ansto_logo = os.path.join(icon_path, "ansto_logo.png") 
     76_tudelft_logo = os.path.join(icon_path, "tudelft_logo.png") 
     77_dls_logo = os.path.join(icon_path, "dls_logo.png") 
    7178_nsf_logo = os.path.join(icon_path, "nsf_logo.png") 
    7279_danse_logo = os.path.join(icon_path, "danse_logo.png") 
     
    7582_umd_url = "http://www.umd.edu/" 
    7683_sns_url = "http://neutrons.ornl.gov/" 
     84_ornl_url = "http://neutrons.ornl.gov/" 
    7785_nsf_url = "http://www.nsf.gov" 
    7886_isis_url = "http://www.isis.stfc.ac.uk/" 
    7987_ess_url = "http://ess-scandinavia.eu/" 
    8088_ill_url = "http://www.ill.eu/" 
     89_ansto_url = "http://www.ansto.gov.au/" 
     90_tudelft_url = "http://www.tnw.tudelft.nl/en/cooperation/facilities/reactor-instituut-delft/" 
     91_dls_url = "http://www.diamond.ac.uk/" 
    8192_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" 
    8293_inst_url = "http://www.utk.edu" 
    8394_corner_image = os.path.join(icon_path, "angles_flat.png") 
    8495_welcome_image = os.path.join(icon_path, "SVwelcome.png") 
    85 _copyright = "(c) 2009 - 2013, UTK, UMD, NIST, ORNL, ISIS, ESS and ILL" 
    86  
     96_copyright = "(c) 2009 - 2017, UTK, UMD, NIST, ORNL, ISIS, ESS, ILL, ANSTO, TU Delft and DLS" 
     97marketplace_url = "http://marketplace.sasview.org/" 
    8798 
    8899#edit the list of file state your plugin can read 
     
    91102GUIFRAME_WIDTH = 1150 
    92103GUIFRAME_HEIGHT = 840 
    93 PLUGIN_STATE_EXTENSIONS = ['.fitv', '.inv', '.prv'] 
     104PLUGIN_STATE_EXTENSIONS = ['.fitv', '.inv', '.prv', '.crf'] 
    94105PLUGINS_WLIST = ['Fitting files (*.fitv)|*.fitv', 
    95106                 'Invariant files (*.inv)|*.inv', 
    96                  'P(r) files (*.prv)|*.prv'] 
     107                 'P(r) files (*.prv)|*.prv', 
     108                 'Corfunc files (*.crf)|*.crf'] 
    97109PLOPANEL_WIDTH = 415 
    98110PLOPANEL_HEIGTH = 370 
     
    133145UPDATE_TIMEOUT = 2 
    134146 
     147#OpenCL option 
     148SAS_OPENCL = None 
     149 
    135150def printEVT(message): 
    136151    if __EVT_DEBUG__: 
     
    138153        :TODO - Need method doc string 
    139154        """ 
    140         print "%g:  %s" % (time.clock(), message) 
     155        print("%g:  %s" % (time.clock(), message)) 
    141156 
    142157        if __EVT_DEBUG_2_FILE__: 
Note: See TracChangeset for help on using the changeset viewer.