Changeset 7d9c83c in sasview
- Timestamp:
- Oct 20, 2017 5:44:12 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 16afe01
- Parents:
- f331852
- Location:
- src/sas/qtgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/DataOperationUtilityPanel.py
r1420066 r7d9c83c 272 272 if input_to_check is None or input_to_check is '': 273 273 msg = 'DataOperation: Number requires a float number' 274 logging. info(msg)274 logging.warning(msg) 275 275 self.txtNumber.setStyleSheet(QtCore.QString(BG_RED)) 276 276 … … 278 278 # should be check that 0 is not chosen 279 279 msg = 'DataOperation: Number requires a non zero number' 280 logging. info(msg)280 logging.warning(msg) 281 281 self.txtNumber.setStyleSheet(QtCore.QString(BG_RED)) 282 282 … … 301 301 self.cbData2.setStyleSheet(QtCore.QString(BG_RED)) 302 302 print self.data1.__class__.__name__ != self.data2.__class__.__name__ 303 logging. info('Cannot compute data of different dimensions')303 logging.warning('Cannot compute data of different dimensions') 304 304 return False 305 305 … … 307 307 and (len(self.data2.x) != len(self.data1.x) or 308 308 not all(i == j for i, j in zip(self.data1.x, self.data2.x))): 309 logging. info('Cannot compute 1D data of different lengths')309 logging.warning('Cannot compute 1D data of different lengths') 310 310 self.cbData1.setStyleSheet(QtCore.QString(BG_RED)) 311 311 self.cbData2.setStyleSheet(QtCore.QString(BG_RED)) … … 322 322 self.cbData1.setStyleSheet(QtCore.QString(BG_RED)) 323 323 self.cbData2.setStyleSheet(QtCore.QString(BG_RED)) 324 logging. info('Cannot compute 2D data of different lengths')324 logging.warning('Cannot compute 2D data of different lengths') 325 325 return False 326 326 … … 337 337 if name_to_check is None or name_to_check == '': 338 338 self.txtOutputData.setStyleSheet(QtCore.QString(BG_RED)) 339 logging. info('No output name')339 logging.warning('No output name') 340 340 return False 341 341 342 342 elif name_to_check in self.list_data_items: 343 343 self.txtOutputData.setStyleSheet(QtCore.QString(BG_RED)) 344 logging. info('The Output data name already exists')344 logging.warning('The Output data name already exists') 345 345 return False 346 346 … … 375 375 376 376 else: 377 logging. info('Error with data format')377 logging.warning('Error with data format') 378 378 return 379 379 -
src/sas/qtgui/MainWindow/DataManager.py
- Property mode changed from 100755 to 100644
r1420066 r7d9c83c 298 298 """ update stored data after deleting files in Data Explorer """ 299 299 for selected_name in name_list: 300 for idx in self.stored_data.keys(): 300 # Take the copy of current, possibly shorter stored_data dict 301 stored_data = copy.deepcopy(self.stored_data) 302 for idx in stored_data.keys(): 301 303 if str(selected_name) in str(idx): 302 print selected_name, idx303 304 del self.stored_data[idx] 304 305
Note: See TracChangeset
for help on using the changeset viewer.