Changeset cf3b781 in sasview for park_integration/test/constrainttestpark.py
- Timestamp:
- Jul 7, 2008 6:37:27 PM (16 years ago)
- 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 1b0b3ca
- Parents:
- 672c44da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/test/constrainttestpark.py
r9e85792 rcf3b781 40 40 engine.set_data(data1,1) 41 41 #print "m1 param b", M1.B 42 engine.set_param( model2,"M2", {'A': 1,'B':'2*M1.B'})42 engine.set_param( model2,"M2", {'A':'M1.A','B':'M1.B'}) 43 43 engine.set_model(model2,2) 44 44 engine.set_data(data2,2) … … 46 46 47 47 print engine.fit({'A':2,'B':1},None,None) 48 48 if True: 49 import pylab 50 x1 = engine.problem[0].data.x 51 x2 = engine.problem[1].data.x 52 y1 = engine.problem[0].data.y 53 y2 = engine.problem[1].data.y 54 fx1 = engine.problem[0].data.fx 55 fx2 = engine.problem[1].data.fx 56 pylab.plot(x1,y1,'xb',x1,fx1,'-b',x2,y2,'xr',x2,fx2,'-r') 57 pylab.show()
Note: See TracChangeset
for help on using the changeset viewer.