Changeset d32de68 in sasmodels for sasmodels/sasview_model.py


Ignore:
Timestamp:
Aug 21, 2018 2:43:34 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c11d09f
Parents:
d3ffeb7
Message:

put intermediate results into helper functions; tidy up; retain sasview 4.3 support in returning P(Q), S(Q)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    rd3ffeb7 rd32de68  
    616616        # so that it returns a results object containing all the bits: 
    617617        #     the A, B, C, ... of the composition model (and any subcomponents?) 
    618         #     the P and S of the product model, 
     618        #     the P and S of the product model 
    619619        #     the combined model before resolution smearing, 
    620620        #     the sasmodel before sesans conversion, 
     
    638638            with calculation_lock: 
    639639                self._calculate_Iq(qx) 
    640                 return self._intermediate_results 
     640                # for compatibility with sasview 4.3 
     641                results = self._intermediate_results() 
     642                return results["P(Q)"], results["S(Q)"] 
    641643        else: 
    642644            return None 
Note: See TracChangeset for help on using the changeset viewer.