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 dac6869 was
9e8dc22,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
Initial import.
|
-
Property mode set to
100644
|
File size:
436 bytes
|
Line | |
---|
1 | from sans.pr.core.pr_inversion import Cinvertor |
---|
2 | import numpy |
---|
3 | |
---|
4 | c = Cinvertor() |
---|
5 | print c.__class__.__name__ |
---|
6 | |
---|
7 | |
---|
8 | x = numpy.ones(3) |
---|
9 | print x.__class__.__name__ |
---|
10 | print c.set_x(x) |
---|
11 | print c.set_y(x) |
---|
12 | print c.set_err(x) |
---|
13 | print c.is_valid() |
---|
14 | print c.set_dmax(60.0) |
---|
15 | p = numpy.ones(1) |
---|
16 | print c.residuals(p) |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | v = numpy.zeros(0) |
---|
21 | v = numpy.append(v, 1.0) |
---|
22 | v = numpy.append(v, 2.0) |
---|
23 | print v[0], v[1] |
---|
24 | print len(v) |
---|
25 | |
---|
26 | |
---|
27 | print numpy.ndarray. |
---|
Note: See
TracBrowser
for help on using the repository browser.