Changeset 65ceb7d in sasmodels for sasmodels/direct_model.py
- Timestamp:
- Sep 18, 2017 12:53:23 PM (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/direct_model.py
r2cdc35b r65ceb7d 296 296 self.Iq = y 297 297 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') 298 302 self._data.dy[self.index] = dy 299 303 self._data.y[self.index] = y 300 304 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') 301 309 self._data.data[self.index] = y 310 self._data.err_data[self.index] = dy 302 311 elif self.data_type == 'sesans': 312 if self._data.y is None: 313 self._data.y = np.empty(len(self._data.x), 'd') 303 314 self._data.y[self.index] = y 304 315 else:
Note: See TracChangeset
for help on using the changeset viewer.