Skip to content

Conversation

@calvinp0
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings January 20, 2026 12:23
Copy link

Copilot AI left a 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.

Copy link

Copilot AI left a 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.

@calvinp0 calvinp0 requested review from alongd and kfir4444 January 21, 2026 15:26
@calvinp0 calvinp0 force-pushed the rmg_install branch 2 times, most recently from 1d399b7 to 1e0ccf7 Compare January 23, 2026 22:24
Copy link
Member

@alongd alongd left a 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 \
Copy link
Member

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?

Copy link
Member Author

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.
@calvinp0 calvinp0 requested a review from alongd January 25, 2026 06:39
Copy link
Member

@alongd alongd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@alongd alongd merged commit a504aa7 into main Jan 25, 2026
6 checks passed
@alongd alongd deleted the rmg_install branch January 25, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants