Changes in src/sas/qtgui/MainWindow/DataExplorer.py [9ce69ec:6ae7466] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r9ce69ec r6ae7466 385 385 # Which perspective has been selected? 386 386 if len(selected_items) > 1 and not self._perspective().allowBatch(): 387 msg = self._perspective().title() + " does not allow multiple data." 387 if hasattr(self._perspective(), 'title'): 388 title = self._perspective().title() 389 else: 390 title = self._perspective().windowTitle() 391 msg = title + " does not allow multiple data." 388 392 msgbox = QtWidgets.QMessageBox() 389 393 msgbox.setIcon(QtWidgets.QMessageBox.Critical) … … 394 398 395 399 # Notify the GuiManager about the send request 396 self._perspective().setData(data_item=selected_items, is_batch=self.chkBatch.isChecked()) 400 try: 401 self._perspective().setData(data_item=selected_items, is_batch=self.chkBatch.isChecked()) 402 except Exception as ex: 403 msg = "%s perspective returned the following message: \n%s\n" %(self._perspective().name, str(ex)) 404 logging.error(msg) 405 msg = str(ex) 406 msgbox = QtWidgets.QMessageBox() 407 msgbox.setIcon(QtWidgets.QMessageBox.Critical) 408 msgbox.setText(msg) 409 msgbox.setStandardButtons(QtWidgets.QMessageBox.Ok) 410 retval = msgbox.exec_() 411 397 412 398 413 def freezeCheckedData(self): … … 579 594 # Don't plot intermediate results, e.g. P(Q), S(Q) 580 595 match = GuiUtils.theory_plot_ID_pattern.match(plot.id) 581 # 2nd match group contains the identifier for the intermediate result, if present (e.g. "[P(Q)]") 596 # 2nd match group contains the identifier for the intermediate 597 # result, if present (e.g. "[P(Q)]") 582 598 if match and match.groups()[1] != None: 583 599 continue 584 # Don't include plots from different fitpages, but always include the original data 585 if fitpage_name in plot.name or filename in plot.name or filename == plot.filename: 600 # Don't include plots from different fitpages, 601 # but always include the original data 602 if (fitpage_name in plot.name 603 or filename in plot.name 604 or filename == plot.filename): 586 605 # Residuals get their own plot 587 606 if plot.plot_role == Data1D.ROLE_RESIDUAL:
Note: See TracChangeset
for help on using the changeset viewer.