sisl.mixing.BaseWeightMixer

class sisl.mixing.BaseWeightMixer(weight: float | int = 0.2)

Bases: BaseMixer

Base class mixer

Methods

set_weight(weight)

Set a new weight for this mixer

weight

This mixers mixing weight, the weight is the fractional contribution of the derivative

Parameters:

weight (TypeWeight)

abstract __call__(f: T, df: T, *args: Any, **kwargs: Any) T

Mix quantities based on arguments

Parameters:
  • f (T)

  • df (T)

  • args (Any)

  • kwargs (Any)

Return type:

T

__init__(weight: float | int = 0.2)[source]
Parameters:

weight (float | int)

set_weight(weight: float | int)[source]

Set a new weight for this mixer

Parameters:

weight (float) – the new weight for this mixer, it must be bigger than 0

property weight: float | int

This mixers mixing weight, the weight is the fractional contribution of the derivative