parameters: (self, mainWS)
return_statement: return vanaNormalizedWS
docstring: Normalize to vanadium workspace.
docstring_summary: Normalize to vanadium workspace.
docstring_tokens: Normalize to vanadium workspace .
function: def _normalizeToVana(self, mainWS):
          """Normalize to vanadium workspace."""
          if self.getProperty(common.PROP_VANA_WS).isDefault:
              return mainWS
          vanaWS = self.getProperty(common.PROP_VANA_WS).value
          vanaNormalizedWSName = self._names.withSuffix('vanadium_normalized')
          vanaNormalizedWS = Divide(LHSWorkspace=mainWS,
                                    RHSWorkspace=vanaWS,
                                    OutputWorkspace=vanaNormalizedWSName,
                                    EnableLogging=self._subalgLogging)
          self._cleanup.cleanup(mainWS)
          if self.getProperty(common.PROP_ABSOLUTE_UNITS).value == common.ABSOLUTE_UNITS_ON:
              vanaNormalizedWS = _absoluteUnits(vanaNormalizedWS, vanaWS, self._names, self._cleanup, self._report, self._subalgLogging)
          return vanaNormalizedWS
function_tokens: def _normalizeToVana ( self , mainWS ) : if self . getProperty ( common . PROP_VANA_WS ) . isDefault : return mainWS vanaWS = self . getProperty ( common . PROP_VANA_WS ) . value vanaNormalizedWSName = self . _names . withSuffix ( 'vanadium_normalized' ) vanaNormalizedWS = Divide ( LHSWorkspace = mainWS , RHSWorkspace = vanaWS , OutputWorkspace = vanaNormalizedWSName , EnableLogging = self . _subalgLogging ) self . _cleanup . cleanup ( mainWS ) if self . getProperty ( common . PROP_ABSOLUTE_UNITS ) . value == common . ABSOLUTE_UNITS_ON : vanaNormalizedWS = _absoluteUnits ( vanaNormalizedWS , vanaWS , self . _names , self . _cleanup , self . _report , self . _subalgLogging ) return vanaNormalizedWS