Changeset b3e8629 in sasview for src/sas/qtgui/Plotting/Plotter.py


Ignore:
Timestamp:
Nov 9, 2017 8:41:54 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
cee5c78
Parents:
749b715
git-author:
Piotr Rozyczko <rozyczko@…> (10/26/17 03:13:05)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:54)
Message:

Initial changes to make SasView? run with python3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Plotter.py

    • Property mode changed from 100644 to 100755
    r749b715 rb3e8629  
    9090                marker = PlotUtilities.SHAPES[marker] 
    9191            except KeyError: 
    92                 marker = PlotUtilities.SHAPES.values()[marker] 
     92                marker = list(PlotUtilities.SHAPES.values())[marker] 
    9393 
    9494        assert marker is not None 
     
    206206        Adds operations on all plotted sets of data to the context menu 
    207207        """ 
    208         for id in self.plot_dict.keys(): 
     208        for id in list(self.plot_dict.keys()): 
    209209            plot = self.plot_dict[id] 
    210210 
     
    391391        Deletes the selected plot from the chart 
    392392        """ 
    393         if id not in self.plot_dict.keys(): 
     393        if id not in list(self.plot_dict.keys()): 
    394394            return 
    395395 
     
    482482        """ 
    483483        # Transform all the plots on the chart 
    484         for id in self.plot_dict.keys(): 
     484        for id in list(self.plot_dict.keys()): 
    485485            current_plot = self.plot_dict[id] 
    486486            if current_plot.id == "fit": 
Note: See TracChangeset for help on using the changeset viewer.