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
Merge pull request #2828 to improve RMS and Julia installation.
Overhaul the install_rms.sh script to make RMS (ReactionMechanismSimulator) installation more robust and user-friendly:
Add zsh compatibility and fix Julia heredoc escaping issues
Fix detection of conda executable
Support RMS_PATH and RMS_INSTALLER environment variables
Make standard mode the default; add "developer" option for dev installs
Add conda environment check and initialize Julia environment before installing
Reorganize code with better documentation and variable grouping
Update Dockerfile for the new install_rms script
Also adds installation instructions for the new script to the developer documentation.
exec 2> >(tee -a regression.stderr >&2) 1> >(tee -a regression.stdout)
275
277
mkdir -p "test/regression-diff"
276
278
for regr_test in aromatics liquid_oxidation nitrogen oxidation sulfur superminimal RMS_constantVIdealGasReactor_superminimal RMS_CSTR_liquid_oxidation fragment RMS_constantVIdealGasReactor_fragment minimal_surface;
Copy file name to clipboardExpand all lines: documentation/source/users/rmg/installation/anacondaDeveloper.rst
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,25 @@ Installation by Source Using Anaconda Environment for Unix-based Systems: Linux
129
129
which can involve several steps including restarting your terminal or shell.
130
130
Run the script again, until it finishes installing RMS and all of its dependencies, and reports that ReactionMechanismSimulator is installed.
131
131
132
+
**Advanced Usage**:
133
+
The ``install_rms.sh`` script has options, that can be set as environment variables or variables to the script.
134
+
By default, it installs the latest release of the ``for_rmg`` branch of RMS, from `the official GitHub fork <https://github.com/ReactionMechanismGenerator/ReactionMechanismSimulator.jl/branches>`_, which is recommended for most users.
135
+
To install a different branch (from the same github repository) specify ``RMS_BRANCH``.
136
+
The default installation mode is ``standard``, which prompts the user to confirm their conda environment.
137
+
In an automated workflow (eg. CI/CD), you may wish to set ``RMS_INSTALLER`` to ``continuous`` to skip the prompt.
138
+
If you set ``RMS_INSTALLER`` to ``developer`` then it will link to a local version of RMS,
139
+
so you must also specify ``RMS_PATH`` to point to your local clone of the ReactionMechanismSimulator.jl repository.
#. 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). ::
Copy file name to clipboardExpand all lines: documentation/source/users/rmg/releaseNotes.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ RMG-Py Version 3.3.0
8
8
====================
9
9
Date: July 10, 2025
10
10
11
-
The below list is a summary. For a complete list of all changes, see the `Official Release Page <https://github.com/ReactionMechanismGenerator/RMG-Py/releases/tag/3.3.0>`_.
11
+
The below list is a summary. For a complete list of all changes, see the `Official RMG-Py Release Page <https://github.com/ReactionMechanismGenerator/RMG-Py/releases/tag/3.3.0>`_.
12
12
13
13
- Software Improvements
14
14
- RMG-Py now uses Python 3.9
@@ -33,7 +33,7 @@ RMG-Database Version 3.3.0
33
33
==========================
34
34
Date: July 10, 2025
35
35
36
-
The below list is a summary. For a complete list of all changes, see the `Official Release Page <https://github.com/ReactionMechanismGenerator/RMG-database/releases/tag/3.3.0>`_.
36
+
The below list is a summary. For a complete list of all changes, see the `Official RMG-Database Release Page <https://github.com/ReactionMechanismGenerator/RMG-database/releases/tag/3.3.0>`_.
echo"Unknown RMS_INSTALLER mode: $RMS_INSTALLER. Must be either 'continuous', 'standard' or 'developer'."
175
+
return 1
176
+
fi
177
+
178
+
julia_status=$?
179
+
if [ $julia_status-ne 0 ];then
180
+
echo"RMS installation failed!"
181
+
return$julia_status
182
+
fi
66
183
67
184
echo"Checking if ReactionMechanismSimulator is installed in the current conda environment for Python usage..."
68
-
python -c "from juliacall import Main; import sys; sys.exit(0 if Main.seval('Base.identify_package(\"ReactionMechanismSimulator\") !== nothing') and print('ReactionMechanismSimulator is installed in $current_env') is None else 1)"
0 commit comments