def ignoreStride(self, value): """ Setter sets or clears the 'ignoreStride' analysis flag, depending on the boolean. """ # preserve the state of any other flags flags = self.analysisFlags & ~AnalysisFlagsEnum.IGNORE_STRIDE if value: self.analysisFlags = AnalysisFlagsEnumOps.set( flags, AnalysisFlagsEnum.IGNORE_STRIDE) else: self.analysisFlags = AnalysisFlagsEnumOps.clear( flags, AnalysisFlagsEnum.IGNORE_STRIDE)