-
Notifications
You must be signed in to change notification settings - Fork 24
RMG Installation Update #820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the RMG installation process from a developer source-based installation to a packaged conda-based installation, simplifying the setup and maintenance of RMG dependencies for ARC.
Changes:
- Switched from source-based RMG installation to packaged RMG (version 3.3.0) via conda
- Updated Arkane invocation from legacy script path to modern module syntax (
python -m arkane) - Enhanced RMG database discovery to support conda package installation locations
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/source/installation.rst | Updated documentation to reflect new packaged RMG installation method |
| devtools/install_rmg.sh | Refactored installer to support both package and source modes, with package as default |
| arc/statmech/arkane.py | Removed RMG_PATH dependency, updated Arkane invocation to use module syntax, added RMG_ENV_NAME support |
| arc/settings/settings.py | Added RMG_ENV_NAME setting and add_rmg_db_candidates function to discover packaged RMG database |
| arc/processor.py | Updated to use configurable RMG_ENV_NAME instead of hardcoded environment name |
| .gitignore | Added AGENTS.md to ignore list |
| .github/workflows/update-cache.yml | Removed RMG-Py and RMG-database cache steps (no longer needed for packaged install) |
| .github/workflows/gh-pages.yml | Replaced source RMG checkout with packaged RMG installation |
| .github/workflows/ci.yml | Removed source RMG installation steps (handled by make install-ci) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 12 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1d399b7 to
1e0ccf7
Compare
alongd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good! I added some minor questions
|
|
||
| - Install the packaged RMG release (RMG-Py + RMG-database + Arkane) into a dedicated environment:: | ||
|
|
||
| mamba create -n rmg_env -c rmg -c conda-forge python=3.9 conda-forge::numpy>=1.10.0,<2 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need users to run this? Maybe wrap it in a Make command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I now provided the different ways they can install - so with Make they can do it (recommended) or do it manually
Introduces an installation script for RMG, offering a simplified method for users to install RMG and its dependencies, including the database and Arkane. The script provides flexibility, allowing users to install from source or use a packaged release. Also streamlines environment management and ensures proper configuration of paths.
Enhances the robustness of finding the RMG installation and database by: - Expanding the search paths for executables to include micromamba and other conda environments. - Adds more RMG database paths under share and site-packages locations. - Utilizing environment variables like MAMBA_ROOT_PREFIX, CONDA_PREFIX, CONDA_EXE, and CONDA_ENVS_PATH to locate RMG environments. - Normalizing the usage of RMG database environment variables. These improvements ensure that ARC can reliably locate RMG and its database in various installation configurations.
Introduces a function to handle RMG-database paths in both source and packaged layouts. This ensures that ARC can locate necessary files regardless of the RMG-database installation type. Updates the scripts to accept RMG environment name and RMG_DB_PATH from settings. Also updates the scripts to correctly set RMG_DB_PATH and RMG_DATABASE variables for RMG to use.
Switches to using micromamba to manage the RMG installation within the CI and documentation build workflows. This streamlines the setup process and ensures a consistent environment for running tests and generating documentation. Removes the separate checkout and caching steps for RMG-Py and RMG-database, as micromamba handles the environment and package dependencies. Updates the documentation build process to correctly set the RMG database path using the micromamba environment.
alongd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
No description provided.