4646 PDepArrhenius , MultiArrhenius , MultiPDepArrhenius , \
4747 Chebyshev , KineticsData , StickingCoefficient , \
4848 StickingCoefficientBEP , SurfaceArrhenius , SurfaceArrheniusBEP , \
49- ArrheniusBM , SurfaceChargeTransfer , KineticsModel , Marcus
49+ ArrheniusBM , SurfaceChargeTransfer , KineticsModel , Marcus , \
50+ ArrheniusChargeTransfer , ArrheniusChargeTransferBM
51+ from rmgpy .kinetics .uncertainties import RateUncertainty
5052from rmgpy .molecule import Molecule , Group
5153from rmgpy .reaction import Reaction , same_species_lists
5254from rmgpy .species import Species
@@ -70,6 +72,7 @@ def __init__(self):
7072 'KineticsData' : KineticsData ,
7173 'Arrhenius' : Arrhenius ,
7274 'ArrheniusEP' : ArrheniusEP ,
75+ 'ArrheniusChargeTransfer' : ArrheniusChargeTransfer ,
7376 'MultiArrhenius' : MultiArrhenius ,
7477 'MultiPDepArrhenius' : MultiPDepArrhenius ,
7578 'PDepArrhenius' : PDepArrhenius ,
@@ -84,11 +87,13 @@ def __init__(self):
8487 'SurfaceChargeTransfer' : SurfaceChargeTransfer ,
8588 'R' : constants .R ,
8689 'ArrheniusBM' : ArrheniusBM ,
90+ 'ArrheniusChargeTransferBM' : ArrheniusChargeTransferBM ,
8791 'SoluteData' : SoluteData ,
8892 'SoluteTSData' : SoluteTSData ,
8993 'SoluteTSDiffData' : SoluteTSDiffData ,
9094 'KineticsModel' : KineticsModel ,
9195 'Marcus' : Marcus ,
96+ 'RateUncertainty' : RateUncertainty ,
9297 }
9398 self .global_context = {}
9499
@@ -263,7 +268,16 @@ def load_libraries(self, path, libraries=None):
263268 for f in files :
264269 if f .lower () == 'reactions.py' :
265270 library_file = os .path .join (root , f )
266- label = os .path .dirname (library_file )[len (path ) + 1 :]
271+ dirname = os .path .dirname (library_file )
272+ if dirname == path :
273+ label = os .path .basename (dirname )
274+ else :
275+ label = os .path .relpath (dirname , path )
276+
277+ if not label :
278+ logging .warning (f"Empty label for { library_file } . Using 'default'." )
279+ label = "default"
280+
267281 logging .info (f'Loading kinetics library { label } from { library_file } ...' )
268282 library = KineticsLibrary (label = label )
269283 try :
0 commit comments