Skip to content

Commit 1c20511

Browse files
committed
don't check collision limit for reactions without kinetics
1 parent 101afaf commit 1c20511

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/databaseTest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
from rmgpy.molecule.atomtype import ATOMTYPES
5252
from rmgpy.molecule.pathfinder import find_shortest_path
5353
from rmgpy.quantity import ScalarQuantity
54+
from rmgpy.kinetics.model import KineticsModel
5455

5556

5657
class TestDatabase(object): # cannot inherit from unittest.TestCase if we want to use nose test generators
@@ -926,9 +927,10 @@ def kinetics_check_library_rates_are_reasonable(self, library):
926927
tst_limit = (kB * T) / h
927928
collision_limit = Na * np.pi * h_rad_diam ** 2 * np.sqrt(8 * kB * T / (np.pi * h_rad_mass / 2))
928929
for entry in library.entries.values():
929-
if entry.item.is_surface_reaction():
930+
if entry.item.is_surface_reaction() or isinstance(entry.data, KineticsModel):
930931
# Don't check surface reactions
931932
continue
933+
932934
k = entry.data.get_rate_coefficient(T, P)
933935
rxn = entry.item
934936
if k < 0:

0 commit comments

Comments
 (0)