Changeset 8d5e11c in sasview for src/sas/sascalc/dataloader/data_info.py
- Timestamp:
- Sep 11, 2018 11:47:02 AM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
- Children:
- 4fdcc65
- Parents:
- 9dc1500
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/data_info.py
r9e6aeaf r8d5e11c 954 954 _str += "Data:\n" 955 955 _str += " Type: %s\n" % self.__class__.__name__ 956 _str += " X- & Y-axis: %s\t[%s]\n" % (self._yaxis, self._yunit) 956 _str += " X-axis: %s\t[%s]\n" % (self._xaxis, self._xunit) 957 _str += " Y-axis: %s\t[%s]\n" % (self._yaxis, self._yunit) 957 958 _str += " Z-axis: %s\t[%s]\n" % (self._zaxis, self._zunit) 958 959 _str += " Length: %g \n" % (len(self.data)) … … 983 984 qx_data=qx_data, qy_data=qy_data, 984 985 q_data=q_data, mask=mask) 986 987 clone._xaxis = self._xaxis 988 clone._yaxis = self._yaxis 989 clone._zaxis = self._zaxis 990 clone._xunit = self._xunit 991 clone._yunit = self._yunit 992 clone._zunit = self._zunit 985 993 986 994 clone.title = self.title … … 1153 1161 def combine_data_info_with_plottable(data, datainfo): 1154 1162 """ 1155 A function that combines the DataInfo data in self.current_datainto with a plottable_1D or 2D data object. 1163 A function that combines the DataInfo data in self.current_datainto with a 1164 plottable_1D or 2D data object. 1156 1165 1157 1166 :param data: A plottable_1D or plottable_2D data object … … 1171 1180 final_dataset.yaxis(data._yaxis, data._yunit) 1172 1181 elif isinstance(data, plottable_2D): 1173 final_dataset = Data2D(data.data, data.err_data, data.qx_data, data.qy_data, data.q_data, 1174 data.mask, data.dqx_data, data.dqy_data) 1182 final_dataset = Data2D(data.data, data.err_data, data.qx_data, 1183 data.qy_data, data.q_data, data.mask, 1184 data.dqx_data, data.dqy_data) 1175 1185 final_dataset.xaxis(data._xaxis, data._xunit) 1176 1186 final_dataset.yaxis(data._yaxis, data._yunit) … … 1181 1191 final_dataset.x_bins = data.qx_data[:int(n_cols)] 1182 1192 else: 1183 return_string = "Should Never Happen: _combine_data_info_with_plottable input is not a plottable1d or " + \ 1184 "plottable2d data object" 1193 return_string = ("Should Never Happen: _combine_data_info_with_plottabl" 1194 "e input is not a plottable1d or plottable2d data " 1195 "object") 1185 1196 return return_string 1186 1197
Note: See TracChangeset
for help on using the changeset viewer.