Changeset f193585 in sasview for guitools/transform.py


Ignore:
Timestamp:
Apr 28, 2008 5:48:59 PM (16 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:
6ed101a
Parents:
9e8dc22
Message:

some changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guitools/transform.py

    r46693050 rf193585  
    4343    else: 
    4444        raise ValueError,"cannot divide by zero" 
    45 def toOneOverSqrtX(x=None,y=None): 
     45def toOneOverSqrtX(y , x=None): 
    4646    if y!=None: 
    4747        if y > 0: 
     
    4949        else: 
    5050            raise ValueError,"cannot be computed" 
    51     if x!= None: 
    52         if x > 0: 
    53             return 1/math.sqrt(x) 
    54         else: 
    55             raise ValueError,"cannot be computed" 
    56      
    57 def toLogYX2(x,y): 
     51     
     52     
     53def toLogYX2(y,x): 
    5854    if y*(x**2) >0: 
    5955        return math.log(y*(x**2)) 
     
    6258      
    6359 
    64 def toLogYX4(x, y): 
     60def toLogYX4(y, x): 
    6561    if math.pow(x,4)*y > 0: 
    6662        return math.log(math.pow(x,4)*y) 
    6763 
    68 def toLogXY(x,y): 
     64def toLogXY(y,x): 
    6965    """ 
    7066        This function is used to load value on Plottable.View 
     
    8581        @param dx: float value 
    8682    """ 
     83    if dx==None: 
     84        dx=0 
    8785    return dx 
    8886 
Note: See TracChangeset for help on using the changeset viewer.