Skip to content

Commit 1997ef9

Browse files
committed
debug
1 parent e68d462 commit 1997ef9

23 files changed

+92
-152
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- uses: julia-actions/setup-julia@v1
1515
with:
16-
version: 1.8
16+
version: '1.10'
1717
- uses: actions/cache@v1
1818
env:
1919
cache-name: cache-artifacts
@@ -24,21 +24,13 @@ jobs:
2424
${{ runner.os }}-test-${{ env.cache-name }}-
2525
${{ runner.os }}-test-
2626
${{ runner.os }}-
27-
- uses: conda-incubator/setup-miniconda@v2
28-
with:
29-
environment-file: environment.yml
30-
python-version: 3.7
31-
activate-environment: rms_env
32-
- name: Fix PyCall linking
33-
run: |
34-
julia -e 'ENV["PYTHON"]=ENV["CONDA"] * "/envs/rms_env/bin/python"; using Pkg; Pkg.add("PyCall"); Pkg.build("PyCall")'
3527
- uses: julia-actions/julia-buildpkg@v1
3628
- name: Build
3729
run: |
38-
julia -e 'using Pkg; Pkg.develop(PackageSpec(path="../ReactionMechanismSimulator.jl")); Pkg.build("ReactionMechanismSimulator");'
30+
julia -e 'using Pkg; Pkg.develop(Pkg.PackageSpec(path="../ReactionMechanismSimulator.jl/")); Pkg.build("ReactionMechanismSimulator");'
3931
- name: Run tests
4032
run: |
41-
julia -e 'using Pkg; Pkg.test("ReactionMechanismSimulator";coverage=true)'
33+
julia -e 'using Pkg; Pkg.test("ReactionMechanismSimulator"; coverage=true)'
4234
- uses: julia-actions/julia-processcoverage@v1
4335
- uses: codecov/codecov-action@v1
4436
with:

.github/workflows/Install.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/documentation.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,9 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- uses: julia-actions/setup-julia@latest
1818
with:
19-
version: 1.8
20-
- uses: conda-incubator/setup-miniconda@v2
21-
with:
22-
environment-file: environment.yml
23-
python-version: 3.7
24-
activate-environment: rms_env
19+
version: '1.10'
2520
- name: Install dependencies
2621
run: |
27-
julia -e 'ENV["PYTHON"]=ENV["CONDA"] * "/envs/rms_env/bin/python"; using Pkg; Pkg.add("PyCall"); Pkg.build("PyCall")'
2822
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();'
2923
- name: Build and deploy
3024
env:

Project.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = "1.0.0"
66
[deps]
77
Calculus = "49dc2e85-a5d0-5ad3-a950-438e2897f1b9"
88
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
9-
Conda = "8f4d0f93-b110-5947-807f-2305c1781a2d"
9+
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
1010
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
1111
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
1212
FastGaussQuadrature = "442a2c76-b920-505d-bb47-c5924d526838"
@@ -21,8 +21,8 @@ ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
2121
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
2222
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
2323
PreallocationTools = "d236fae5-4411-538c-8e31-a6e3d9e00b46"
24-
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
25-
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
24+
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
25+
PythonPlot = "274fc56d-3b97-40fa-a1cd-1b4a50311bf9"
2626
QuartzImageIO = "dca85d43-d64c-5e67-8c65-017450d5d020"
2727
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
2828
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
@@ -43,7 +43,7 @@ YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"
4343
[compat]
4444
Calculus = "0.4,0.5"
4545
Colors = "0.11,0.12"
46-
Conda = "1"
46+
CondaPkg = "0"
4747
CSV = "0.10"
4848
DataFrames = "1"
4949
SciMLSensitivity = "^7"
@@ -57,8 +57,8 @@ ModelingToolkit = "8"
5757
OrdinaryDiffEq = "^6"
5858
Parameters = "0.12"
5959
PreallocationTools = "0.4"
60-
PyCall = "1"
61-
PyPlot = "2"
60+
PythonCall = "0"
61+
PythonPlot = "1"
6262
QuartzImageIO = "0.7"
6363
RecursiveArrayTools = "2.17"
6464
ReverseDiff = "1.9"

deps/build.jl

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
using PyCall
2-
using Conda
3-
packages = Conda._installed_packages()
4-
if !("rmg" in packages) && !("rmgmolecule" in packages) && (PyCall.pyversion.major != 3 || !(PyCall.pyversion.minor in [7, 8, 9]))
1+
using CondaPkg
2+
using PythonCall
3+
packages = keys(CondaPkg.current_packages())
4+
if !("rmg" in packages) && !("rmgmolecule" in packages) || !(v"3.7" <= PythonCall.C.python_version() && PythonCall.C.python_version() <= v"3.9")
55
const Pkg = Base.require(Base.PkgId(Base.UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f"), "Pkg"))
6-
Conda.add("python=3.8")
7-
try
8-
Conda.rm("numpy") #get around MKL problem
9-
catch e
10-
end
11-
Conda.add("nomkl")
12-
Conda.add("numpy")
13-
Conda.add_channel("mjohnson541")
14-
Conda.add("rmgmolecule")
15-
Pkg.build("PyCall")
6+
CondaPkg.add("python"; version="3.9")
7+
CondaPkg.add("matplotlib")
8+
CondaPkg.add("rdkit")
9+
CondaPkg.add("pydot")
10+
CondaPkg.add("rmgmolecule"; version=">=0.3.0", channel="mjohnson541")
11+
Pkg.build("PythonCall")
1612
end

docs/src/Installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ The above instructions will automatically handle Julia-Python linking. However,
3737

3838
```
3939
import Pkg
40-
Pkg.add("PyCall")
40+
Pkg.add("PythonCall")
4141
ENV["CONDA_JL_HOME"] = PATH_TO_YOUR_ENV
42-
Pkg.build("Conda")
42+
Pkg.build("CondaPkg")
4343
ENV["PYTHON"] = PATH_TO_PYTHON
44-
Pkg.build("PyCall")
44+
Pkg.build("PythonCall")
4545
```

environment.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

iJulia/Automatic Mechanism Analysis Example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"outputs": [],
99
"source": [
1010
"using Sundials\n",
11-
"using PyPlot\n",
11+
"using PythonPlot\n",
1212
"using ReactionMechanismSimulator"
1313
]
1414
},

iJulia/ConstantPH2Combustion.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"outputs": [],
3030
"source": [
3131
"using DifferentialEquations\n",
32-
"using PyPlot\n",
32+
"using PythonPlot\n",
3333
"using ReactionMechanismSimulator"
3434
]
3535
},

iJulia/ConstantTPH2Combustion.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"using DiffEqBase\n",
1010
"using Sundials\n",
1111
"using DiffEqSensitivity\n",
12-
"using PyPlot\n",
12+
"using PythonPlot\n",
1313
"using ReactionMechanismSimulator"
1414
]
1515
},

0 commit comments

Comments
 (0)