Changes in src/sas/sascalc/invariant/invariant.py [b1f20d1:7432acb] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/invariant/invariant.py
rb1f20d1 r7432acb 610 610 # Data boundaries for fitting 611 611 qmin = self._data.x[0] 612 qmax = self._data.x[ int(self._low_extrapolation_npts - 1)]612 qmax = self._data.x[self._low_extrapolation_npts - 1] 613 613 614 614 # Extrapolate the low-Q data … … 649 649 # Data boundaries for fitting 650 650 x_len = len(self._data.x) - 1 651 qmin = self._data.x[ int(x_len - (self._high_extrapolation_npts - 1))]652 qmax = self._data.x[ int(x_len)]651 qmin = self._data.x[x_len - (self._high_extrapolation_npts - 1)] 652 qmax = self._data.x[x_len] 653 653 654 654 # fit the data with a model to get the appropriate parameters … … 688 688 if npts_in is None: 689 689 npts_in = self._low_extrapolation_npts 690 q_end = self._data.x[max(0, int(npts_in - 1))]690 q_end = self._data.x[max(0, npts_in - 1)] 691 691 692 692 if q_start >= q_end: … … 714 714 # Get extrapolation range 715 715 if npts_in is None: 716 npts_in = int(self._high_extrapolation_npts)716 npts_in = self._high_extrapolation_npts 717 717 _npts = len(self._data.x) 718 q_start = self._data.x[min(_npts, int(_npts - npts_in))]718 q_start = self._data.x[min(_npts, _npts - npts_in)] 719 719 720 720 if q_start >= q_end:
Note: See TracChangeset
for help on using the changeset viewer.