magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249unittest-saveload
Last change
on this file since b011ecb was
959eb01,
checked in by ajj, 8 years ago
|
normalising line endings
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[959eb01] | 1 | """ |
---|
| 2 | This module is a wrapper to a map function. It allows to loop through |
---|
| 3 | different invariant objects to call the same function |
---|
| 4 | """ |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | def get_qstar(inv, extrapolation=None): |
---|
| 8 | """ |
---|
| 9 | Get invariant value (Q*) |
---|
| 10 | """ |
---|
| 11 | return inv.get_qstar(extrapolation) |
---|
| 12 | |
---|
| 13 | def get_qstar_with_error(inv, extrapolation=None): |
---|
| 14 | """ |
---|
| 15 | Get invariant value with uncertainty |
---|
| 16 | """ |
---|
| 17 | return inv.get_qstar_with_error(extrapolation) |
---|
| 18 | |
---|
| 19 | def get_volume_fraction(inv, contrast, extrapolation=None): |
---|
| 20 | """ |
---|
| 21 | Get volume fraction |
---|
| 22 | """ |
---|
| 23 | return inv.get_volume_fraction(contrast, extrapolation) |
---|
| 24 | |
---|
| 25 | def get_volume_fraction_with_error(inv, contrast, extrapolation=None): |
---|
| 26 | """ |
---|
| 27 | Get volume fraction with uncertainty |
---|
| 28 | """ |
---|
| 29 | return inv.get_volume_fraction_with_error(contrast, |
---|
| 30 | extrapolation) |
---|
| 31 | |
---|
| 32 | def get_surface(inv, contrast, porod_const, extrapolation=None): |
---|
| 33 | """ |
---|
| 34 | Get surface with uncertainty |
---|
| 35 | """ |
---|
| 36 | return inv.get_surface(contrast=contrast, |
---|
| 37 | porod_const=porod_const, |
---|
| 38 | extrapolation=extrapolation) |
---|
| 39 | |
---|
| 40 | def get_surface_with_error(inv, contrast, |
---|
| 41 | porod_const, extrapolation=None): |
---|
| 42 | """ |
---|
| 43 | Get surface with uncertainty |
---|
| 44 | """ |
---|
| 45 | return inv.get_surface_with_error(contrast=contrast, |
---|
| 46 | porod_const=porod_const, |
---|
| 47 | extrapolation=extrapolation) |
---|
| 48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.