parameters: (self, mainWS)
return_statement: return mainWS
docstring: Mask workspace according to diagnostics.
docstring_summary: Mask workspace according to diagnostics.
docstring_tokens: Mask workspace according to diagnostics .
function: def _applyDiagnostics(self, mainWS):
          """Mask workspace according to diagnostics."""
          if self.getProperty(common.PROP_DIAGNOSTICS_WS).isDefault:
              return mainWS
          diagnosticsWS = self.getProperty(common.PROP_DIAGNOSTICS_WS).value
          MaskDetectors(Workspace=mainWS,
                        MaskedWorkspace=diagnosticsWS,
                        EnableLogging=self._subalgLogging)
          return mainWS
function_tokens: def _applyDiagnostics ( self , mainWS ) : if self . getProperty ( common . PROP_DIAGNOSTICS_WS ) . isDefault : return mainWS diagnosticsWS = self . getProperty ( common . PROP_DIAGNOSTICS_WS ) . value MaskDetectors ( Workspace = mainWS , MaskedWorkspace = diagnosticsWS , EnableLogging = self . _subalgLogging ) return mainWS