Manage a collection of reaction channel definitions.
|
__init__(self,
logger=None)
Create an instance. |
|
|
bool
|
addDefinition(self,
str_definition)
Add a reaction channel definition to the list of definitions. |
|
|
|
addDefinitionsFromFile(self,
channels_file)
Add reaction channel definitions from an input file to the list of
definitions. |
|
|
str
|
buildChannelStrDef(self,
atom_a_one,
atom_b_one,
atom_a_two=None,
atom_b_two=None)
Build the string representation of a reaction channel from a sequence
of integers. |
|
|
list of strs
|
getDissociationChannels(self,
reactants,
no_reactive_h)
Return a list of all dissociation channel string definitions for the
given reactant structures. |
|
|
list of strs
|
getAssociationChannels(self,
reactants)
Return a list of all association channel string definitions for the
given reactant structures. |
|
|
list of strs
|
getSingleDisplacementChannels(self,
reactants,
no_reactive_h,
unique)
Return a list of all single displacement channel string definitions
for the given reactant structures. |
|
|
list of strs
|
getDoubleDisplacementChannels(self,
reactants,
no_reactive_h,
unique)
Return a list of all double displacement channel string definitions
for the given reactant structures. |
|
|
list of strs, dict
|
getAllChannels(self,
reactants,
random_types,
no_reactive_h,
unique)
Return a list of all channel string definitions for the given
reactant structures. |
|
|
|
printAllChannels(self,
types_to_sizes_dict)
For each type of sampled channel log the total number of such
channels. |
|
|
|
addRandomChannelsFromAll(self,
num_random_channels,
random_seed,
all_channel_defs)
Add the specified number of random channels to the list of channels
to be computed by picking a random sample of the size given from the
list of all possible channels. |
|
|
|
addRandomChannelsOnTheFly(self,
reactants,
num_random_channels,
random_types,
no_reactive_h,
unique)
Generate the specified number of random reaction channels without
ever precomputing the list of all possible channels. |
|
|
|
addRandomChannels(self,
reactants,
num_random_channels=0,
random_types=[ ' double_displacement ' ] ,
random_seed=None,
allow_adsorption_onto=[ ' [c-0X3][c-0X3]([c-0X3]([c-0X3]([c-0X3])[c-0X3])[c-0X3]([c-0X ... ,
no_reactive_h=False,
unique=False)
Generate the specified number of random reaction channels. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|