-
Notifications
You must be signed in to change notification settings - Fork 6
Installation
This section covers two methods for installing the PNNL-RCT: installing from source code via GitHub, installing via pip
and installing directly using poetry
.
To install the application from its source code, follow these steps:
- Ensure you have Python 3.10 installed on your system. You can download it from python.org.
- Make sure Git is installed. You can download it from git-scm.com.
- Ensure
poetry
is installed. You can install it by following the instructions on the Poetry website. - Optionally, set up a virtual environment to avoid conflicts with other Python packages.
- Clone the Repository: Open a terminal or command prompt and navigate to the directory where you want to clone the repository. Then run the following command:
git clone https://github.com/pnnl/ruleset-checking-tool.git
- Navigate to the Project Directory:
cd ruleset-checking-tool
- **Install Dependencies Using Poetry: Run the following command to install the project dependencies
poetry install
- Activate the Poetry Environemtn:
poetry shell
- Run the first project evaluation with demo RPD files:
rct229 evaluate -rs ashrae9012019 -f examples\chicago_demo\baseline_model.json -f examples\chicago_demo\proposed_model.json -f examples\chicago_demo\user_model.json -r ASHRAE9012019DetailReport
To install the application using pip
, following these steps:
- Ensure you have Python 3.10 installed on your system. You can download it from python.org.
- Optionally, set up a virtual environment to avoid conflicts with other Python packages.
- **Create a Virtual Environment (Optional but Recommended):
python -m venv venv
Activate the virtual environment:
- Windows:
.\venv\Scripts\activate
- Mac/Linux:
source venv/bin/activate
- Install the Application
pip install ruleset-checking-tool
- Verify the Installation:
pip show ruleset-checking-tool
This command will display the information about the installed package, including its version.
To install the application directly using poetry
, follow these steps:
- Ensure you have Python 3.10 installed on your system. You can download it from python.org.
- Ensure
poetry
is installed. You can install it by following the instructions on the Poetry website.
-
Add the ruleset-checking-tool Package:
Run the following command to add the ruleset-checking-tool package using
poetry
:
poetry add ruleset-checking-tool
- Activate the Poetry Environment:
poetry shell
-
Verify the Installation:
After the installation completes, you can verify it by checking the installed package version using
pip
:
pip show ruleset-checking-tool
This command will display information about the installed package, including its version.
You have now successfully installed the PNNL-RCT using one of the three methods. Refer to the usage instructions provided in the repository or package documentation for further details on how to use the application.