scine_puffin.jobs.templates.scine_observers¶
Classes
|
Abstract base class that defines an observer pattern in a Puffin job in order to observe each calculation. |
|
Observer implementation that stores every structure and calculated properties in the database. |
|
Observer implementation that stores a given fraction of structures and their properties in the database. |
|
Observer implementation that stores every nth structure and calculated properties in the database. |
- class scine_puffin.jobs.templates.scine_observers.Observer[source]¶
Abstract base class that defines an observer pattern in a Puffin job in order to observe each calculation.
- class scine_puffin.jobs.templates.scine_observers.StoreEverythingObserver(calculation_id: db.ID, model: db.Model)[source]¶
Observer implementation that stores every structure and calculated properties in the database.
- class scine_puffin.jobs.templates.scine_observers.StoreWithFractionObserver(calculation_id: db.ID, model: db.Model, fraction: float)[source]¶
Observer implementation that stores a given fraction of structures and their properties in the database. Which structures are stored is determined at random.