Changeset eafc9fa in sasmodels for sasmodels/data.py


Ignore:
Timestamp:
Jan 30, 2016 9:39:59 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
5925e90
Parents:
823e620
Message:

refactor kernel wrappers to simplify q input handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/data.py

    r299edd2 reafc9fa  
    121121        # TODO: why is 1D mask False and 2D mask True? 
    122122        self.mask = (np.isnan(y) if y is not None 
    123                      else np.zeros_like(x,'b') if x is not None 
     123                     else np.zeros_like(x, 'b') if x is not None 
    124124                     else None) 
    125125        self._xaxis, self._xunit = "x", "" 
     
    350350    """ 
    351351    def wrapper(*args, **kw): 
     352        """ 
     353        Trap and print errors from function %s 
     354        """%fn.__name__ 
    352355        try: 
    353356            return fn(*args, **kw) 
Note: See TracChangeset for help on using the changeset viewer.