Provide base functionality for all model components
The following has changed since going from BaseComponent to BaseModel:
- Arithmetic operation between models is no longer supported. It was found to be of little use and not very flexible.
- Parameters are now stored as Parameter object to provide the necessary extra information like limits, units, etc...
Bases: sans.models.ModelAdaptor.ModelAdaptor
Basic model component
Evaluate the model. Equivalent to runXY(x)
Parameters: | x – input value |
---|---|
Returns: | value of the model |
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Returns a new object identical to the current object
Set the value of a model parameter
Parameters: |
|
---|
Return a list of all available parameters for the model
Set the value of a model parameter
Parameters: |
|
---|
Bases: object
Parameter class
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
list of weak references to the object (if defined)
Parameter property allow direct access to the parameter values