Changeset 2f8cbb9 in sasmodels


Ignore:
Timestamp:
Aug 7, 2018 11:08:15 PM (2 months ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
F1F2models_grethe, beta_approx
Children:
71b751d
Parents:
1a7ddc9
Message:

raise error when trying to run beta with 2d data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kerneldll.py

    r7e923c2 r2f8cbb9  
    402402    def beta(self, call_details, values, cutoff, magnetic): 
    403403        # type: (CallDetails, np.ndarray, np.ndarray, float, bool) -> np.ndarray 
     404        if self.dim == '2d': 
     405            raise NotImplementedError("beta not yet supported for 2D") 
    404406        self._call_kernel(call_details, values, cutoff, magnetic) 
    405407        w_norm = self.result[2*self.q_input.nq + 1] 
Note: See TracChangeset for help on using the changeset viewer.