Changeset d84a90c in sasview for pr_inversion/distance_explorer.py
- Timestamp:
- Jun 3, 2010 4:47:46 PM (14 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:
- 7116b6e0
- Parents:
- aa36f96
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pr_inversion/distance_explorer.py
re83c75a rd84a90c 1 2 ################################################################################ 3 #This software was developed by the University of Tennessee as part of the 4 #Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 5 #project funded by the US National Science Foundation. 6 # 7 #See the license text in license.txt 8 # 9 #copyright 2009, University of Tennessee 10 ################################################################################ 11 1 12 """ 2 Module to explore the P(r) inversion results for a range 3 of D_max value. User picks a number of points and a range of 4 distances, then get a series of outputs as a function of D_max 5 over that range. 6 7 This software was developed by the University of Tennessee as part of the 8 Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 9 project funded by the US National Science Foundation. 13 Module to explore the P(r) inversion results for a range 14 of D_max value. User picks a number of points and a range of 15 distances, then get a series of outputs as a function of D_max 16 over that range. 17 """ 10 18 11 See the license text in license.txt12 13 copyright 2009, University of Tennessee14 """15 19 import numpy 16 20 import math … … 19 23 class Results: 20 24 """ 21 22 25 Class to hold the inversion output parameters 26 as a function of D_max 23 27 """ 24 28 def __init__(self): 25 29 """ 26 27 30 Initialization. Create empty arrays 31 and dictionary of labels. 28 32 """ 29 33 # Array of output for each inversion … … 41 45 class DistExplorer(object): 42 46 """ 43 47 The explorer class 44 48 """ 45 49 46 50 def __init__(self, pr_state): 47 51 """ 48 Initialization. 49 50 @param pr_state: sans.pr.invertor.Invertor object 52 Initialization. 53 54 :param pr_state: sans.pr.invertor.Invertor object 55 51 56 """ 52 57 self.pr_state = pr_state … … 57 62 def __call__(self, dmin=None, dmax=None, npts=10): 58 63 """ 59 Compute the outputs as a function of D_max. 60 61 @param dmin: minimum value for D_max 62 @param dmax: maximum value for D_max 63 @param npts: number of points for D_max 64 Compute the outputs as a function of D_max. 65 66 :param dmin: minimum value for D_max 67 :param dmax: maximum value for D_max 68 :param npts: number of points for D_max 69 64 70 """ 65 71 # Take care of the defaults if needed
Note: See TracChangeset
for help on using the changeset viewer.