Skip to content

Commit c490a2e

Browse files
committed
update
1 parent a9a4af3 commit c490a2e

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

src/ReactionMechanismSimulator.jl

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,35 @@ const solvation = PythonCall.pynew()
1818
const fragment = PythonCall.pynew()
1919
const pydot = PythonCall.pynew()
2020
function __init__()
21-
pycopy!(Chem, pyimport("rdkit.Chem"))
22-
pycopy!(Desc, pyimport("rdkit.Chem.Descriptors"))
21+
PythonCall.pycopy!(Chem, pyimport("rdkit.Chem"))
22+
PythonCall.pycopy!(Desc, pyimport("rdkit.Chem.Descriptors"))
2323
try
24-
pycopy!(molecule, pyimport("rmgpy.molecule"))
25-
pycopy!(chemkin, pyimport("rmgpy.chemkin"))
26-
pycopy!(species, pyimport("rmgpy.species"))
27-
pycopy!(reaction, pyimport("rmgpy.reaction"))
28-
pycopy!(nasa, pyimport("rmgpy.thermo.nasa"))
29-
pycopy!(wilhoit, pyimport("rmgpy.thermo.wilhoit"))
30-
pycopy!(arrhenius, pyimport("rmgpy.kinetics.arrhenius"))
31-
pycopy!(falloff, pyimport("rmgpy.kinetics.falloff"))
32-
pycopy!(chebyshev, pyimport("rmgpy.kinetics.chebyshev"))
33-
pycopy!(solvation, pyimport("rmgpy.data.solvation"))
34-
pycopy!(fragment, pyimport("rmgpy.molecule.fragment"))
24+
PythonCall.pycopy!(molecule, pyimport("rmgpy.molecule"))
25+
PythonCall.pycopy!(chemkin, pyimport("rmgpy.chemkin"))
26+
PythonCall.pycopy!(species, pyimport("rmgpy.species"))
27+
PythonCall.pycopy!(reaction, pyimport("rmgpy.reaction"))
28+
PythonCall.pycopy!(nasa, pyimport("rmgpy.thermo.nasa"))
29+
PythonCall.pycopy!(wilhoit, pyimport("rmgpy.thermo.wilhoit"))
30+
PythonCall.pycopy!(arrhenius, pyimport("rmgpy.kinetics.arrhenius"))
31+
PythonCall.pycopy!(falloff, pyimport("rmgpy.kinetics.falloff"))
32+
PythonCall.pycopy!(chebyshev, pyimport("rmgpy.kinetics.chebyshev"))
33+
PythonCall.pycopy!(solvation, pyimport("rmgpy.data.solvation"))
34+
PythonCall.pycopy!(fragment, pyimport("rmgpy.molecule.fragment"))
3535
catch e
36-
pycopy!(molecule, pyimport("molecule.molecule"))
37-
pycopy!(chemkin, pyimport("molecule.chemkin"))
38-
pycopy!(species, pyimport("molecule.species"))
39-
pycopy!(reaction, pyimport("molecule.reaction"))
40-
pycopy!(nasa, pyimport("molecule.thermo.nasa"))
41-
pycopy!(wilhoit, pyimport("molecule.thermo.wilhoit"))
42-
pycopy!(arrhenius, pyimport("molecule.kinetics.arrhenius"))
43-
pycopy!(falloff, pyimport("molecule.kinetics.falloff"))
44-
pycopy!(chebyshev, pyimport("molecule.kinetics.chebyshev"))
45-
pycopy!(solvation, pyimport("molecule.data.solvation"))
46-
pycopy!(fragment, pyimport("molecule.molecule.fragment"))
36+
PythonCall.pycopy!(molecule, pyimport("molecule.molecule"))
37+
PythonCall.pycopy!(chemkin, pyimport("molecule.chemkin"))
38+
PythonCall.pycopy!(species, pyimport("molecule.species"))
39+
PythonCall.pycopy!(reaction, pyimport("molecule.reaction"))
40+
PythonCall.pycopy!(nasa, pyimport("molecule.thermo.nasa"))
41+
PythonCall.pycopy!(wilhoit, pyimport("molecule.thermo.wilhoit"))
42+
PythonCall.pycopy!(arrhenius, pyimport("molecule.kinetics.arrhenius"))
43+
PythonCall.pycopy!(falloff, pyimport("molecule.kinetics.falloff"))
44+
PythonCall.pycopy!(chebyshev, pyimport("molecule.kinetics.chebyshev"))
45+
PythonCall.pycopy!(solvation, pyimport("molecule.data.solvation"))
46+
PythonCall.pycopy!(fragment, pyimport("molecule.molecule.fragment"))
4747
end
48-
pycopy!(pydot, pyimport("pydot"))
49-
pycopy!(os, pyimport("os"))
48+
PythonCall.pycopy!(pydot, pyimport("pydot"))
49+
PythonCall.pycopy!(os, pyimport("os"))
5050
pydot[] = pyimport("pydot")
5151
end
5252
include("Constants.jl")

src/rmstest.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ const Chem = PythonCall.pynew()
66
const molecule = PythonCall.pynew()
77
const fragment = PythonCall.pynew()
88
const pydot = PythonCall.pynew()
9-
pycopy!(Chem, pyimport("rdkit.Chem"))
9+
PythonCall.pycopy!(Chem, pyimport("rdkit.Chem"))
1010
try
11-
pycopy!(molecule, pyimport("rmgpy.molecule"))
12-
pycopy!(fragment, pyimport("rmgpy.molecule.fragment"))
11+
PythonCall.pycopy!(molecule, pyimport("rmgpy.molecule"))
12+
PythonCall.pycopy!(fragment, pyimport("rmgpy.molecule.fragment"))
1313
catch e
14-
pycopy!(molecule, pyimport("molecule.molecule"))
15-
pycopy!(fragment, pyimport("molecule.molecule.fragment"))
14+
PythonCall.pycopy!(molecule, pyimport("molecule.molecule"))
15+
PythonCall.pycopy!(fragment, pyimport("molecule.molecule.fragment"))
1616
end
17-
pycopy!(pydot, pyimport("pydot"))
17+
PythonCall.pycopy!(pydot, pyimport("pydot"))
1818

1919
include("Constants.jl")
2020
include("Tools.jl")

0 commit comments

Comments
 (0)