parameters: (self, mantidProperty)
docstring: Inititialize the parameter from a mantid property. This method populates
          the type, documentation, allowed values of the parameters. It also sets
          the value to the property default value.
  
          Args:
              mantidProperty (Property): the property
docstring_summary: Inititialize the parameter from a mantid property. This method populates
          the type, documentation, allowed values of the parameters. It also sets
          the value to the property default value.
docstring_tokens: Inititialize the parameter from a mantid property . This method populates the type documentation allowed values of the parameters . It also sets the value to the property default value .
function: def initFromProperty(self, mantidProperty):
          """
          Inititialize the parameter from a mantid property. This method populates
          the type, documentation, allowed values of the parameters. It also sets
          the value to the property default value.
  
          Args:
              mantidProperty (Property): the property
          """
          self._documentation = mantidProperty.documentation
          self._allowedValues = mantidProperty.allowedValues
          value = mantidProperty.value
          if (isinstance(mantidProperty, FileProperty)):
              self._type = self.FILE_TYPE
          elif (isinstance(mantidProperty, MultipleFileProperty)):
              self._type = self.FILES_TYPE
              if not value:
                  value = ""
          elif (isinstance(mantidProperty, (WorkspaceGroupProperty,
                                            MatrixWorkspaceProperty))):
              self._type = self.WORKSPACE_TYPE
          elif (isinstance(mantidProperty, StringPropertyWithValue)):
              if mantidProperty.allowedValues:
                  self._type = self.COMBOBOX_TYPE
              else:
                  self._type = self.STRING_TYPE
          elif (isinstance(mantidProperty, BoolPropertyWithValue)):
              self._type = self.BOOL_TYPE
          elif (isinstance(mantidProperty, FloatArrayProperty)):
              self._type = self.FLOAT_ARRAY_TYPE
          elif (isinstance(mantidProperty, IntArrayProperty)):
              self._type = self.INT_ARRAY_TYPE
          elif (isinstance(mantidProperty, StringArrayProperty)):
              self._type = self.STRING_TYPE
          else:
              self._type = self.STRING_TYPE
  
          if isinstance(value, numpy.ndarray):
              if value.ndim == 1:
                  self._value = value.tolist()
          elif value is None:
              self._value = ""
          else:
              self._value = value
function_tokens: def initFromProperty ( self , mantidProperty ) : self . _documentation = mantidProperty . documentation self . _allowedValues = mantidProperty . allowedValues value = mantidProperty . value if ( isinstance ( mantidProperty , FileProperty ) ) : self . _type = self . FILE_TYPE elif ( isinstance ( mantidProperty , MultipleFileProperty ) ) : self . _type = self . FILES_TYPE if not value : value = "" elif ( isinstance ( mantidProperty , ( WorkspaceGroupProperty , MatrixWorkspaceProperty ) ) ) : self . _type = self . WORKSPACE_TYPE elif ( isinstance ( mantidProperty , StringPropertyWithValue ) ) : if mantidProperty . allowedValues : self . _type = self . COMBOBOX_TYPE else : self . _type = self . STRING_TYPE elif ( isinstance ( mantidProperty , BoolPropertyWithValue ) ) : self . _type = self . BOOL_TYPE elif ( isinstance ( mantidProperty , FloatArrayProperty ) ) : self . _type = self . FLOAT_ARRAY_TYPE elif ( isinstance ( mantidProperty , IntArrayProperty ) ) : self . _type = self . INT_ARRAY_TYPE elif ( isinstance ( mantidProperty , StringArrayProperty ) ) : self . _type = self . STRING_TYPE else : self . _type = self . STRING_TYPE if isinstance ( value , numpy . ndarray ) : if value . ndim == 1 : self . _value = value . tolist ( ) elif value is None : self . _value = "" else : self . _value = value