Skip to content

Commit 0c4fa99

Browse files
authored
Merge pull request #2880 to fix circular import when running sensitivity analysis.
The problem is described in #2865 and this solution was pull request #2880 Imports Species class locally for diffusion_limited_rate function.
2 parents 3d0d305 + 1c08b43 commit 0c4fa99

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rmgpy/kinetics/diffusionLimited.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
import rmgpy.constants as constants
3636
from rmgpy.molecule.fragment import Fragment
37-
from rmgpy.species import Species
3837

3938
def _to_molecule(obj):
4039
"""Return plain Molecule; accept Molecule or (Molecule, mapping) tuple."""
@@ -113,6 +112,8 @@ def get_diffusion_limit(self, T, reaction, forward=True):
113112
(ie. forward direction if forward=True [default] or reverse if forward=False)
114113
Returns the rate coefficient k_diff in m3/mol/s.
115114
"""
115+
from rmgpy.species import Species
116+
116117
if forward:
117118
reacting = reaction.reactants
118119
else:

0 commit comments

Comments
 (0)