You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/CI.yml
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -173,9 +173,11 @@ jobs:
173
173
# RMS installation and linking to Julia
174
174
- name: Install and link Julia dependencies
175
175
timeout-minutes: 120# this usually takes 20-45 minutes (or hangs for 6+ hours).
176
+
# JULIA_CONDAPKG_EXE points to the existing conda/mamba to avoid JuliaCall from installing their own. See https://juliapy.github.io/PythonCall.jl/stable/pythoncall/#If-you-already-have-a-Conda-environment.
julia -e 'using Pkg; Pkg.add(PackageSpec(name="ReactionMechanismSimulator",rev="for_rmg")); using ReactionMechanismSimulator'
178
+
juliaup status
179
+
export JULIA_CONDAPKG_EXE=$CONDA/condabin/mamba
180
+
julia -e 'ENV["JULIA_CONDAPKG_BACKEND"] = "Current"; using Pkg; Pkg.add(Pkg.PackageSpec(name="ReactionMechanismSimulator", url="https://github.com/hwpang/ReactionMechanismSimulator.jl.git", rev="fix_installation")); using ReactionMechanismSimulator'
179
181
180
182
- name: Install Q2DTor
181
183
run: echo "" | make q2dtor
@@ -192,7 +194,7 @@ jobs:
192
194
run: |
193
195
for regr_test in aromatics liquid_oxidation nitrogen oxidation sulfur superminimal RMS_constantVIdealGasReactor_superminimal RMS_CSTR_liquid_oxidation RMS_liquidSurface_ch4o2cat fragment RMS_constantVIdealGasReactor_fragment minimal_surface;
194
196
do
195
-
if python-jl rmg.py test/regression/"$regr_test"/input.py; then
197
+
if python rmg.py test/regression/"$regr_test"/input.py; then
196
198
echo "$regr_test" "Executed Successfully"
197
199
else
198
200
echo "$regr_test" "Failed to Execute" | tee -a $GITHUB_STEP_SUMMARY
cat "$regr_test-core.log" || (echo "Dumping the whole log failed, please download it from GitHub actions. Here are the first 100 lines:" && head -n100 "$regr_test-core.log")
julia -e 'using Pkg; Pkg.add(PackageSpec(name="ReactionMechanismSimulator",rev="for_rmg")); using ReactionMechanismSimulator'
71
+
which julia
72
+
export JULIA_CONDAPKG_EXE=$CONDA/condabin/mamba
73
+
julia -e 'ENV["JULIA_CONDAPKG_BACKEND"] = "Current"; using Pkg; Pkg.add(PackageSpec(name="ReactionMechanismSimulator", url="https://github.com/hwpang/ReactionMechanismSimulator.jl.git", rev="fix_installation")); using ReactionMechanismSimulator'
julia -e 'using Pkg; Pkg.add(PackageSpec(name="PyCall",rev="master")); Pkg.add(PackageSpec(name="ReactionMechanismSimulator",rev=ENV["rmsbranch"])); using ReactionMechanismSimulator' && \
julia -e 'ENV["JULIA_CONDAPKG_BACKEND"] = "Current"; using Pkg; Pkg.add(Pkg.PackageSpec(name="ReactionMechanismSimulator", url="https://github.com/hwpang/ReactionMechanismSimulator.jl.git", rev="fix_installation")); using ReactionMechanismSimulator'
75
74
76
75
# RMG-Py should now be installed and ready - trigger precompilation and test run
77
-
RUN python-jl rmg.py examples/rmg/minimal/input.py
76
+
RUN python rmg.py examples/rmg/minimal/input.py
78
77
# delete the results, preserve input.py
79
78
RUN mv examples/rmg/minimal/input.py . && \
80
79
rm -rf examples/rmg/minimal/* && \
81
80
mv input.py examples/rmg/minimal/
82
81
83
82
# when running this image, open an interactive bash terminal inside the conda environment
Copy file name to clipboardExpand all lines: documentation/source/users/rmg/installation/anacondaDeveloper.rst
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ Installation by Source Using Anaconda Environment for Unix-based Systems: Linux
124
124
125
125
#. Finally, you can run RMG from any location by typing the following (given that you have prepared the input file as ``input.py`` in the current folder). ::
126
126
127
-
python-jl replace/with/path/to/rmg.py input.py
127
+
python replace/with/path/to/rmg.py input.py
128
128
129
129
You may now use RMG-Py, Arkane, as well as any of the :ref:`Standalone Modules <modules>` included in the RMG-Py package.
130
130
For more information about using conda, please check out the `conda user guide <https://conda.io/projects/conda/en/latest/user-guide/getting-started.html>`_.
@@ -140,15 +140,15 @@ You might have to edit them slightly to match your exact paths. Specifically,
140
140
you will need ``/opt/miniconda3/envs/rmg_env`` to point to where your conda environment is located.
141
141
142
142
This configuration will allow you to debug the rms_constant_V example, running through
"env": {"PYTEST_ADDOPTS": "--no-cov",} // without disabling coverage VS Code doesn't stop at breakpoints while debugging because pytest-cov is using the same technique to access the source code being run
@@ -256,7 +256,7 @@ To configure the rest of the settings, find the ``settings.json`` file in your `
256
256
You can use the following settings to configure the pytest framework::
0 commit comments