fluidsim_core.extend_simul
Mechanism to extend a Simul class with just a simple class
- fluidsim_core.extend_simul.extend_simul_class(Simul, extenders)[source]
Extend a Simul class with “Simul extenders”.
“Simul extenders” are classes deriving from
fluidsim.extend_simul.SimulExtender.
- class fluidsim_core.extend_simul.SimulExtender[source]
Bases:
objectAbstract class to define a “Simul extender”
Simul extenders are classes that can extend a
Simulclass to change its behavior for some simulations.This class is meant to be subclassed. The child class has to contain one class attribute
_module_nameand two class methodsget_modif_info_solverandcomplete_params_with_default. An example can be found in the modulefluidsim.extend_simul.spatial_means_regions_milestone.- abstractmethod classmethod get_modif_info_solver()[source]
Create a function to modify
info_solver.Note that this function is called when the object
info_solverhas not yet been created (and cannot yet be modified)! This is why one needs to create a function that will be called later to modifyinfo_solver.
Functions
|
Extend a Simul class with "Simul extenders". |
Classes
Abstract class to define a "Simul extender" |