Changeset 6ff103a in sasview
- Timestamp:
- Jul 12, 2018 8:38:48 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 18f11a6
- Parents:
- d0528c4
- Location:
- src/sas/qtgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
rd9150d8 r6ff103a 496 496 # Now query the model item for available plots 497 497 plots = GuiUtils.plotsFromFilename(filename, model) 498 item = GuiUtils.itemFromFilename(filename, model)499 498 500 499 new_plots = [] 501 for plot in plots:500 for item, plot in plots.items(): 502 501 plot_id = plot.id 503 502 if plot_id in list(self.active_plots.keys()): -
src/sas/qtgui/Utilities/GuiUtils.py
re20870bc r6ff103a 415 415 assert isinstance(filename, str) 416 416 417 plot_data = []417 plot_data = {} 418 418 # Iterate over model looking for named items 419 419 for index in range(model_item.rowCount()): … … 421 421 if str(item.text()) == filename: 422 422 # TODO: assure item type is correct (either data1/2D or Plotter) 423 plot_data .append(item.child(0).data())423 plot_data[item] = item.child(0).data() 424 424 # Going 1 level deeper only 425 425 for index_2 in range(item.rowCount()): … … 427 427 if item_2 and item_2.isCheckable(): 428 428 # TODO: assure item type is correct (either data1/2D or Plotter) 429 plot_data .append(item_2.child(0).data())429 plot_data[item_2] = item_2.child(0).data() 430 430 431 431 return plot_data
Note: See TracChangeset
for help on using the changeset viewer.