Changeset 82ce1d0 in sasview for src/sas


Ignore:
Timestamp:
Apr 10, 2017 5:02:12 AM (8 years ago)
Author:
krzywon
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
3f75203
Parents:
88188b4
git-author:
Jeff Krzywon <krzywon@…> (04/10/17 05:02:12)
git-committer:
krzywon <krzywon@…> (04/10/17 05:02:12)
Message:

Sending to fitting and batch fitting is now working as expected. see #467

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/plotting/parameters_panel_slicer.py

    r88188b4 r82ce1d0  
    447447                                                     check_value=True) 
    448448            # TODO: Batch fitting 
    449             # # Switch to batch mode if selected 
    450             # if fit == FIT_OPTIONS[2]: 
    451             #     datapanel.rb_single_mode.SetValue(False) 
    452             #     datapanel.rb_batch_mode.SetValue(True) 
    453             #     evt = wx.PyCommandEvent(wx.EVT_RADIOBUTTON.typeId, 
    454             #                             datapanel.rb_batch_mode.GetId()) 
    455             #     wx.PostEvent(datapanel, evt) 
    456             # else: 
    457             #     datapanel.rb_single_mode.SetValue(True) 
    458             #     datapanel.rb_batch_mode.SetValue(False) 
    459             #     evt = wx.PyCommandEvent(wx.EVT_RADIOBUTTON.typeId, 
    460             #                             datapanel.rb_single_mode.GetId()) 
    461             #     wx.PostEvent(datapanel, evt) 
     449            # Switch to batch mode if selected 
     450            if fit == FIT_OPTIONS[2]: 
     451                datapanel.rb_single_mode.SetValue(False) 
     452                datapanel.rb_batch_mode.SetValue(True) 
     453                datapanel.on_batch_mode(None) 
     454            else: 
     455                datapanel.rb_single_mode.SetValue(True) 
     456                datapanel.rb_batch_mode.SetValue(False) 
     457                datapanel.on_single_mode(None) 
    462458 
    463459            # Post button click event to send data to fitting 
Note: See TracChangeset for help on using the changeset viewer.