Changeset 012e397 in sasview for src/sas


Ignore:
Timestamp:
Nov 7, 2016 5:58:15 AM (8 years ago)
Author:
wojciech
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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
bf44249e
Parents:
e0d9ed2
Message:

Keeping time delay for Windows as it seems to be necessary with the current design of SasView?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/basepage.py

    rdef512c r012e397  
    14561456                self.state_change = True 
    14571457                self._draw_model() 
    1458                 #Time delay introduced to prevent double compilation on Windows 
    1459                 #It seems to be threading related issue that triggers 
    1460                 #compilation twice at the same time 
    1461                 if ON_MAC == False: 
     1458                # Time delay has been introduced to prevent _handle error 
     1459                # on Windows 
     1460                # This part of code is executed when model is selected and 
     1461                # it's parameters are changed (with respect to previously 
     1462                # selected model). There are two evaluations of Iq occuring one 
     1463                # after another and therefore there may be compilation error 
     1464                # if model is calculted for the first time. 
     1465                # The proper solution (other than time delay) requires more 
     1466                # fundemental code refatoring 
     1467                # Wojtek P. Nov 7, 2016 
     1468                if not ON_MAC: 
    14621469                    time.sleep(0.1) 
    14631470                self.Refresh() 
Note: See TracChangeset for help on using the changeset viewer.