Example #1
0
    def apply_settings(self, config):
        
        ShareAnalysis1Dot1.apply_settings(self, config)

        if self.rewsDefined:

            self.productionByHeightActive = True
            Status.add("Production by height activated.")
Example #2
0
    def get_methods(self):

        methods = ShareAnalysis1Dot1.get_methods(self)

        if self.productionByHeightActive:
            self.methods.append('Production by Height')

        return methods
Example #3
0
    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))