Changeset 82d88d5 in sasview for src/sas/sasview


Ignore:
Timestamp:
Mar 6, 2019 4:18:09 PM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
Children:
f923967
Parents:
cb64d86 (diff), f205d3a (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 py37-sasgui

Location:
src/sas/sasview
Files:
4 added
2 deleted
5 edited

Legend:

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

    rb229a3b r5e16b30  
    1 __version__ = "4.2.0" 
     1from distutils.version import StrictVersion 
     2__version__ = "4.2.1" 
     3StrictVersion(__version__) 
     4__DOI__ = "Zenodo, 10.5281/zenodo.2561236" 
     5__release_date__ = "2019" 
    26__build__ = "GIT_COMMIT" 
  • src/sas/sasview/local_config.py

    r1b4cb41 r839f70f7  
    1616__appname__ = "SasView" 
    1717__version__ = sas.sasview.__version__ 
     18__DOI__ = sas.sasview.__DOI__ 
     19__release_date__ = sas.sasview.__release_date__ 
    1820__build__ = sas.sasview.__build__ 
    1921__download_page__ = 'https://github.com/SasView/sasview/releases' 
     
    3638_do_tutorial = True 
    3739_acknowledgement_preamble =\ 
    38 '''To ensure the long term support and development of this software please''' +\ 
    39 ''' remember to:''' 
     40'''To ensure the long term support and development of this software please 
     41remember to:''' 
    4042_acknowledgement_preamble_bullet1 =\ 
    4143'''Acknowledge its use in your publications as :''' 
     
    4749'''Send us your reference for our records: developers@sasview.org''' 
    4850_acknowledgement_publications = \ 
    49 '''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.''' 
     51("This work benefited from the use of the SasView application, originally" 
     52"developed under NSF Award DMR-0520547. SasView also contains code developed" 
     53"with funding from the EU Horizon 2020 programme under the SINE2020 project" 
     54"Grant No 654000.") 
    5055_acknowledgement_citation = \ 
    51 '''M. Doucet et al. SasView Version 4.2, Zenodo, 10.5281/zenodo.1412041''' 
     56'''M. Doucet et al. SasView Version %s, %s''' % (__version__, __DOI__) 
    5257_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, BAM 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 
    54 ''' 
     58("This work was originally developed as part of the DANSE project funded by" 
     59"the US NSF under Award DMR-0520547,\n but is currently maintained by a" 
     60"collaboration between UTK, UMD, NIST, ORNL, ISIS, ESS, ILL, ANSTO, TU Delft," 
     61"DLS, BAM and the scattering community.\n\n SasView also contains code" 
     62"developed with funding from the EU Horizon 2020 programme under the SINE2020" 
     63"project (Grant No 654000).\nA list of individual contributors can be found" 
     64"at: http://www.sasview.org/contact.html") 
    5565 
    5666_homepage = "http://www.sasview.org" 
     
    95105_corner_image = os.path.join(icon_path, "angles_flat.png") 
    96106_welcome_image = os.path.join(icon_path, "SVwelcome.png") 
    97 _copyright = "(c) 2009 - 2018, UTK, UMD, NIST, ORNL, ISIS, ESS, ILL, ANSTO, TU Delft, DLS and BAM" 
     107_copyright = ("(c) 2009 - %s, UTK, UMD, NIST, ORNL, ISIS, ESS, ILL, ANSTO," 
     108              "TU Delft, DLS and BAM") % __release_date__ 
    98109marketplace_url = "http://marketplace.sasview.org/" 
    99110 
  • src/sas/sasview/sasview.py

    r1270e3c r5251ec6  
    4242 
    4343        from sas.sasgui.guiframe.gui_manager import SasViewApp 
     44        from sas.sasgui.guiframe.gui_style import GUIFRAME_ICON 
    4445        self.gui = SasViewApp(0) 
     46        GUIFRAME_ICON.load_icons() 
    4547        if sys.platform == "darwin": 
    4648            self.check_sasmodels_compiler() 
     
    228230        logger.error("Wx version: error reading version") 
    229231 
    230     from . import wxcruft 
    231     wxcruft.call_later_fix() 
     232    # TODO: Do we need the call later fix for wx 3? Or is it wx < 3 only? 
     233    if "phoenix" in wx.PlatformInfo: 
     234        #wx.NewId = wx.Window.NewControlId 
     235        pass 
     236    else: 
     237        from . import wxcruft 
     238        wxcruft.call_later_fix() 
    232239    #wxcruft.trace_new_id() 
    233240    #Always use private .matplotlib setup to avoid conflicts with other 
  • src/sas/sasview/welcome_panel.py

    rb963b20 r5251ec6  
    22    Welcome page 
    33""" 
    4 import wx 
    5 import wx.aui 
    6 import wx.lib.hyperlink 
    74import os.path 
    85import os, sys 
    96 
     7import wx 
     8import wx.aui 
     9try: 
     10    # CRUFT: wx 4 moved hyperlink to wx.lib.agw 
     11    from wx.lib import hyperlink 
     12except ImportError: 
     13    from wx.lib.agw import hyperlink 
    1014from wx.lib.scrolledpanel import ScrolledPanel 
    1115 
     
    115119        send_ticket += "help@sasview.org" 
    116120        self.hyperlink_paper = \ 
    117             wx.lib.hyperlink.HyperLinkCtrl(self, -1, 
     121            hyperlink.HyperLinkCtrl(self, -1, 
    118122                                           send_ticket, URL=config._license) 
    119123 
  • src/sas/sasview/wxcruft.py

    r914ba0a r5251ec6  
    44import wx 
    55from wx import Timer 
    6 import wx._misc 
    76 
    87def call_later_fix(): 
     
    1615 
    1716def NewId(): 
     17    import wx._misc 
    1818    id = wx._misc.NewId() 
    1919    path, line, function = _get_caller() 
Note: See TracChangeset for help on using the changeset viewer.