Ignore:
Timestamp:
Oct 7, 2016 10:48:25 AM (8 years ago)
Author:
mathieu
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:
1b1a1c1
Parents:
61780e3
Message:

Make sure we can compute models w/o data. Fixes #714

File:
1 edited

Legend:

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

    rca4d985 r286c757  
    17401740                                      data_id=str(page_id) + " " + data.name + " unsmeared") 
    17411741 
    1742                 self.create_theory_1D(x, unsmeared_data, page_id, model, data, state, 
    1743                                       data_description="Data unsmeared", 
    1744                                       data_id="Data  " + data.name + " unsmeared", 
    1745                                       dy=unsmeared_error) 
     1742                if unsmeared_data is not None and unsmeared_error is not None: 
     1743                    self.create_theory_1D(x, unsmeared_data, page_id, model, data, state, 
     1744                                          data_description="Data unsmeared", 
     1745                                          data_id="Data  " + data.name + " unsmeared", 
     1746                                          dy=unsmeared_error) 
    17461747                 
    17471748            if sq_model is not None and pq_model is not None: 
Note: See TracChangeset for help on using the changeset viewer.