scine_chemoton.gears.network_refinement.disabling¶
Classes
Base class for handling the disabling of aggregates + their structures. |
|
The idea of these disabling functions is to make the gears ignore structures, elementary steps etc. |
|
Disable all aggregates and their structures. |
|
|
Disable all reactions and their steps. |
|
Disable all elementary steps. |
|
Disable all steps that match the given model. |
|
Disable all reactions associated to a job order within a given black-list, i.e, an elementary step assigned to this reaction was produced by a job with the given order. |
|
Disable all elementary step associated to a job order within a given black-list, i.e., the elementary step was produced by a job with this order. |
|
Base class for handling the disabling of reactions + their elementary steps after, e.g., step-refinement. |
Base class for handling the disabling of elementary steps after, e.g., step-refinement. |
- class scine_chemoton.gears.network_refinement.disabling.AggregateDisabling[source]¶
Base class for handling the disabling of aggregates + their structures.
The process function should decide on the fate of the given elementary step. As an additional argument a job order can be given.
- static disable(db_object)¶
Disable the given DB object.
- Parameters:
- db_objectUnion[db.Structure, db.Compound, db.Flask, db.ElementaryStep, db.Reaction]
The DB object to disable.
- class scine_chemoton.gears.network_refinement.disabling.DBObjectDisabling[source]¶
The idea of these disabling functions is to make the gears ignore structures, elementary steps etc. if desired. For instance, one could start refinement calculations for elementary steps of a reaction and disables the old steps and only rely on the refined steps. A second application is to disable all steps/structures etc. in the database and enable these objects in a step-wise manner again through the gears if the gears intend to set up the calculation that produced these results. In this way an exploration can be simulated without executing any new exploration calculations and new logic for enabling compounds for exploration can be tested.
- class scine_chemoton.gears.network_refinement.disabling.DisableAllAggregates[source]¶
Disable all aggregates and their structures.
- Parameters:
- aggregateUnion[db.Compound, db.Flask]
The aggregate.
- static disable(db_object)¶
Disable the given DB object.
- Parameters:
- db_objectUnion[db.Structure, db.Compound, db.Flask, db.ElementaryStep, db.Reaction]
The DB object to disable.
- disable_aggregate(aggregate)¶
Disable an aggregate and all its structures.
- Parameters:
- aggregateUnion[db.Compound, db.Flask]
The aggregate to disable.
- class scine_chemoton.gears.network_refinement.disabling.DisableAllReactions(step_disabling=<scine_chemoton.gears.network_refinement.disabling.DisableAllSteps object>)[source]¶
Disable all reactions and their steps.
- Parameters:
- step_disablingStepDisabling
The step disabling policy. By default, all steps are disabled.
- static disable(db_object)¶
Disable the given DB object.
- Parameters:
- db_objectUnion[db.Structure, db.Compound, db.Flask, db.ElementaryStep, db.Reaction]
The DB object to disable.
- disable_reaction(reaction)¶
Apply the step disabling policy. If all steps where disabled, the reaction is also disabled.
- Parameters:
- reactiondb.Reaction
The reaction.
- initialize_collections(manager)¶
- class scine_chemoton.gears.network_refinement.disabling.DisableAllSteps(ignore_barrierless=False)[source]¶
Disable all elementary steps.
- Parameters:
- ignore_barrierlessbool
Whether to ignore barrier-less steps. False by default.
- static disable(db_object)¶
Disable the given DB object.
- Parameters:
- db_objectUnion[db.Structure, db.Compound, db.Flask, db.ElementaryStep, db.Reaction]
The DB object to disable.
- class scine_chemoton.gears.network_refinement.disabling.DisableAllStepsByModel(model, ignore_barrierless=False)[source]¶
Disable all steps that match the given model.
- Parameters:
- modeldb.Model
The model.
- ignore_barrierlessbool
Whether to ignore barrier-less steps. False by default.
- static disable(db_object)¶
Disable the given DB object.
- Parameters:
- db_objectUnion[db.Structure, db.Compound, db.Flask, db.ElementaryStep, db.Reaction]
The DB object to disable.
- class scine_chemoton.gears.network_refinement.disabling.DisableReactionByJob(black_list)[source]¶
Disable all reactions associated to a job order within a given black-list, i.e, an elementary step assigned to this reaction was produced by a job with the given order.
- Parameters:
- black_listList[str]
The list of job orders.
- static disable(db_object)¶
Disable the given DB object.
- Parameters:
- db_objectUnion[db.Structure, db.Compound, db.Flask, db.ElementaryStep, db.Reaction]
The DB object to disable.
- disable_reaction(reaction)¶
Apply the step disabling policy. If all steps where disabled, the reaction is also disabled.
- Parameters:
- reactiondb.Reaction
The reaction.
- initialize_collections(manager)¶
- class scine_chemoton.gears.network_refinement.disabling.DisableStepByJob(black_list)[source]¶
Disable all elementary step associated to a job order within a given black-list, i.e., the elementary step was produced by a job with this order.
- Parameters:
- black_listList[str]
List of job orders for which steps are disabled.
- static disable(db_object)¶
Disable the given DB object.
- Parameters:
- db_objectUnion[db.Structure, db.Compound, db.Flask, db.ElementaryStep, db.Reaction]
The DB object to disable.
- class scine_chemoton.gears.network_refinement.disabling.ReactionDisabling(step_disabling=<scine_chemoton.gears.network_refinement.disabling.DisableAllSteps object>)[source]¶
Base class for handling the disabling of reactions + their elementary steps after, e.g., step-refinement.
The process function should decide on the fate of the given elementary step. As an additional argument a job order can be given. Apply a disabling policy to all elementary steps of a reaction.
- Parameters:
- step_disablingStepDisabling
The step disabling policy.
- static disable(db_object)¶
Disable the given DB object.
- Parameters:
- db_objectUnion[db.Structure, db.Compound, db.Flask, db.ElementaryStep, db.Reaction]
The DB object to disable.
- class scine_chemoton.gears.network_refinement.disabling.StepDisabling[source]¶
Base class for handling the disabling of elementary steps after, e.g., step-refinement. Does nothing by default.
The process function should decide on the fate of the given elementary step. As an additional argument a job order can be given.
- static disable(db_object)¶
Disable the given DB object.
- Parameters:
- db_objectUnion[db.Structure, db.Compound, db.Flask, db.ElementaryStep, db.Reaction]
The DB object to disable.