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.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 9c0f3c17 was
b699768,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago
|
Initial commit of the refactored SasCalc? module.
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Rev | Line | |
---|
[5797edc] | 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 | |
---|
[992199e] | 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.