OS-Agnostic: This program is OS agnostic. For larger runs (e.g., full national runs), the user should pursue access to the High Performance Computing (HPC) environment. Use of the HPC is optional, but directions for its use are integrated into the following instructions.
- AWS Account and Allocation – Please reach out to the Stratus Cloud team (Stratus Cloud: Home) to acquire them (you may need to refresh the page to load it).
- AWS ResStock/ComStock Sandbox Access (likely
resbldg) – Please contact Buildings (ResStock/ComStock) teams for access. - HPC (optional) – Please reach out to the HPC team for an account and allocation.
- Follow the AWS CLI installation instructions.
- For example, on HPC:
We then add $HOME/local/bin to $PATH so we can use "aws ..."
cd ~ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip ./aws/install -i "$HOME/local/aws-cli" -b "$HOME/local/bin"And we confirm installation and $PATH changes by seeing a version output from:echo 'export PATH="$HOME/local/bin:$PATH"' >> ~/.bashrc source ~/.bashrcaws --version
- For example, on HPC:
- Follow AWS SSO configuration instructions, all the way through step 8! Note that after step 5 a browser should automatically open. We had luck using remote SSH from vscode, and didn't have luck with git bash or direct terminal sshing into kestrel.
# Via HTTPS
git clone https://github.com/NatLabRockies/buildstock-weatherreg.git
# Via SSH (requires SSH key setup)
git clone git@github.com:NatLabRockies/buildstock-weatherreg.gitcd buildstock-weatherreg
conda env create -f geothermal_env.ymlYou may experience errors during this step, but continue through the following steps, which might correct them.
conda activate geothermal
conda install git-lfs
pip install tensorflow
pip install --upgrade "numpy<2.0"
pip install "buildstock-query[full] @ git+https://github.com/NatLabRockies/buildstock-query@2024.05.09"Then, copy the ComStock schema:
python -c "import site; print(site.getsitepackages())"Locate comstock_oedi.toml in the current directory and copy it to:
<site-packages-dir>/buildstock_query/db_schema/
conda activate geothermal
aws sso login- Edit
switches_agg.jsonto match your desired settings.- Ensure that
"workgroup"matches your Stratus Cloud Handle / AWS Sandbox Workgroup.
- Ensure that
- Edit
#SBATCHsettings at the top ofA_start_building_stock_parallel_agg.shandC_run_bldg_chunk_agg.shas needed.
python B_building_stock_parallel_agg.pyWe had issues with AWS SSO configuration on Yampa. One solution is to perform authentication on your local machine (required for each login):
- Sign in on your local machine using
aws sso login. - Replace the SSO token cache directory (~/.aws/sso/cache) on Yampa with the one on local.
See regression validation outputs for resstock and comstock HVAC EULP here: https://drive.google.com/file/d/1qDy9DrraTP7Kkzk1i6_tDVStEf3fzrQn/view?usp=sharing