def apply_settings(self, config): ShareAnalysis1Dot1.apply_settings(self, config) if self.rewsDefined: self.productionByHeightActive = True Status.add("Production by height activated.")
def get_methods(self): methods = ShareAnalysis1Dot1.get_methods(self) if self.productionByHeightActive: self.methods.append('Production by Height') return methods
def new_share_analysis(self, dataset): if self.share_name == "Share01": return ShareAnalysis1(dataset) elif self.share_name == "Share01.1": return ShareAnalysis1Dot1(dataset) elif self.share_name == "Share02": return ShareAnalysis2(dataset) elif self.share_name == "Share03": return ShareAnalysis3(dataset) else: raise Exception("Unexpected share: {0}".format(self.share_name))