Changeset d84a90c in sasview for pr_inversion/distance_explorer.py


Ignore:
Timestamp:
Jun 3, 2010 4:47:46 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

working on documentation

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 
    112""" 
    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.  
     13Module to explore the P(r) inversion results for a range 
     14of D_max value. User picks a number of points and a range of 
     15distances, then get a series of outputs as a function of D_max 
     16over that range. 
     17""" 
    1018 
    11     See the license text in license.txt 
    12  
    13     copyright 2009, University of Tennessee 
    14 """ 
    1519import numpy 
    1620import math 
     
    1923class Results: 
    2024    """ 
    21         Class to hold the inversion output parameters 
    22         as a function of D_max 
     25    Class to hold the inversion output parameters 
     26    as a function of D_max 
    2327    """ 
    2428    def __init__(self): 
    2529        """ 
    26             Initialization. Create empty arrays 
    27             and dictionary of labels. 
     30        Initialization. Create empty arrays 
     31        and dictionary of labels. 
    2832        """ 
    2933        # Array of output for each inversion 
     
    4145class DistExplorer(object): 
    4246    """ 
    43         The explorer class 
     47    The explorer class 
    4448    """ 
    4549     
    4650    def __init__(self, pr_state): 
    4751        """ 
    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         
    5156        """ 
    5257        self.pr_state  = pr_state 
     
    5762    def __call__(self, dmin=None, dmax=None, npts=10): 
    5863        """ 
    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         
    6470        """ 
    6571        # Take care of the defaults if needed 
Note: See TracChangeset for help on using the changeset viewer.