Changeset 65ceb7d in sasmodels for sasmodels/direct_model.py


Ignore:
Timestamp:
Sep 18, 2017 12:53:23 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
costrafo411
Children:
3a45c2c
Parents:
2f9f1ec (diff), 058460c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into costrafo411

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/direct_model.py

    r2cdc35b r65ceb7d  
    296296        self.Iq = y 
    297297        if self.data_type in ('Iq', 'Iq-oriented'): 
     298            if self._data.y is None: 
     299                self._data.y = np.empty(len(self._data.x), 'd') 
     300            if self._data.dy is None: 
     301                self._data.dy = np.empty(len(self._data.x), 'd') 
    298302            self._data.dy[self.index] = dy 
    299303            self._data.y[self.index] = y 
    300304        elif self.data_type == 'Iqxy': 
     305            if self._data.data is None: 
     306                self._data.data = np.empty_like(self._data.qx_data, 'd') 
     307            if self._data.err_data is None: 
     308                self._data.err_data = np.empty_like(self._data.qx_data, 'd') 
    301309            self._data.data[self.index] = y 
     310            self._data.err_data[self.index] = dy 
    302311        elif self.data_type == 'sesans': 
     312            if self._data.y is None: 
     313                self._data.y = np.empty(len(self._data.x), 'd') 
    303314            self._data.y[self.index] = y 
    304315        else: 
Note: See TracChangeset for help on using the changeset viewer.