parameters: (self, ws_name)
docstring: r"""Save the serialization of the algorithm in the logs.
  
          Parameters
          ----------
          ws_name: str
              Name of the workspace from which to retrieve and modify the logs
docstring_summary: r"""Save the serialization of the algorithm in the logs.
docstring_tokens: r Save the serialization of the algorithm in the logs .
function: def serialize_in_log(self, ws_name):
          r"""Save the serialization of the algorithm in the logs.
  
          Parameters
          ----------
          ws_name: str
              Name of the workspace from which to retrieve and modify the logs
          """
          def jsonify(value):
              r"""Cast non-standard objects to their closest standard
              representation to enable JSON serialiation"""
              if isinstance(value, np.ndarray):
                  return value.tolist()
              return value
          if self._as_json is None:
              self._as_json = json.loads(str(self))
              # Force serialization of the following properties even if having
              # their default values
              forced = {name: jsonify(self.getProperty(name).value)
                        for name in ('DoIndividual', 'DoFluxNormalization',
                                     'FluxNormalizationType', 'NormalizeToFirst',
                                     'ReflectionType', 'EnergyBins',
                                     'MomentumTransferBins', 'MaskFile',
                                     'DivideByVanadium')}
              self._as_json['properties'].update(forced)
          r = mtd[ws_name].mutableRun()
          r.addProperty('asString', json.dumps(self._as_json), True)
function_tokens: def serialize_in_log ( self , ws_name ) : def jsonify ( value ) : r"""Cast non-standard objects to their closest standard
              representation to enable JSON serialiation""" if isinstance ( value , np . ndarray ) : return value . tolist ( ) return value if self . _as_json is None : self . _as_json = json . loads ( str ( self ) ) # Force serialization of the following properties even if having # their default values forced = { name : jsonify ( self . getProperty ( name ) . value ) for name in ( 'DoIndividual' , 'DoFluxNormalization' , 'FluxNormalizationType' , 'NormalizeToFirst' , 'ReflectionType' , 'EnergyBins' , 'MomentumTransferBins' , 'MaskFile' , 'DivideByVanadium' ) } self . _as_json [ 'properties' ] . update ( forced ) r = mtd [ ws_name ] . mutableRun ( ) r . addProperty ( 'asString' , json . dumps ( self . _as_json ) , True )