Skip to content

Instantly share code, notes, and snippets.

@kartheikiyer
Created May 12, 2024 17:50
Show Gist options
  • Select an option

  • Save kartheikiyer/42384ec638912c0b750e9d8502b56ed6 to your computer and use it in GitHub Desktop.

Select an option

Save kartheikiyer/42384ec638912c0b750e9d8502b56ed6 to your computer and use it in GitHub Desktop.
Getting dense_basis set up on a cluster (currently for rusty)
  1. Create a new environment
module load python
module load jupyter-kernels
module load fi-utils
VENVDIR=/mnt/home/kiyer/jhive/
python -m venv --system-site-packages $VENVDIR/jhive_env
source $VENVDIR/jhive_env/bin/activate
  1. Clone the FSPS repository
mkdir packages
cd packages
git clone https://github.com/cconroy20/fsps.git
  1. Setup an environment variable for SPS-HOME
export SPS_HOME=/mnt/home/kiyer/packages/fsps/
# or add it to your bashrc/cshrc/zshrc file
  1. Install python-fsps
python -m pip install fsps
  1. Install other dependencies if needed
pip install statsmodels hickle schwimmbad wget corner
  1. Clone and install dense basis
git clone https://github.com/kartheikiyer/dense_basis.git
cd dense_basis
python setup.py install
# and check if it works with 
python -c 'import dense_basis as db'
  1. Make it available as a jupyter kernel
python -m make-custom-kernel densebasis
deactivate

And you're set!

@kartheikiyer

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment