source: sasview/pr_inversion/test/test_module.py @ 50cbace

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 50cbace was 9e8dc22, checked in by Mathieu Doucet <doucetm@…>, 17 years ago

Initial import.

  • Property mode set to 100644
File size: 436 bytes
Line 
1from sans.pr.core.pr_inversion import Cinvertor
2import numpy
3
4c = Cinvertor()
5print c.__class__.__name__
6
7
8x = numpy.ones(3)
9print x.__class__.__name__
10print c.set_x(x)
11print c.set_y(x)
12print c.set_err(x)
13print c.is_valid()
14print c.set_dmax(60.0)
15p = numpy.ones(1)
16print c.residuals(p)
17
18
19
20v = numpy.zeros(0)
21v = numpy.append(v, 1.0)
22v = numpy.append(v, 2.0)
23print v[0], v[1]
24print len(v)
25
26
27print numpy.ndarray.
Note: See TracBrowser for help on using the repository browser.