~christopher-hunt08/maus/maus_mc_control

« back to all changes in this revision

Viewing changes to src/reduce/ReducePyCkovPlot/ReducePyCkovPlot.py

  • Committer: Durga Rajaram
  • Date: 2013-07-24 00:19:08 UTC
  • mfrom: (659.1.72 release-candidate)
  • Revision ID: durga@fnal.gov-20130724001908-hw36h7kefglgaw3l
Tags: MAUS-v0.6.0
MAUS-v0.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
            keys = []
55
55
            keys.append("tof_cut_e")
56
56
            keys.append("tof_cut_mu")
57
 
            keys.append("refresh_rate")
 
57
            keys.append("reduce_plot_refresh_rate")
58
58
 
59
59
            for i in range(len(keys)):
60
60
                if keys[i] in config_doc:
77
77
                self.run_ended = True
78
78
                return self.get_histogram_images()
79
79
            else:
80
 
                return [{}]
 
80
                return []
81
81
        
82
82
        if not self.get_space_points(spill):
83
83
            raise ValueError("space points not in spill")
91
91
            self.update_histos()
92
92
            return self.get_histogram_images()
93
93
        else:
94
 
            return [spill]
 
94
            return []
95
95
 
96
96
    def get_space_points(self, spill):#pylint: disable=R0911,R0912,R0914
97
97
        """Get space points from JSON"""