Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ GBI provides both API and CLI interfaces. The code requires python 3.8+ and the
numpy==1.26.2
matplotlib==3.8.2
pandas==2.1.3
awkard==2.6.2
awkward==2.6.2
vector==1.4.0
aliad==0.2.2.0
quickstats==0.8.3.5.11
aliad==0.2.1.0
quickstats==0.8.4.0
tensorflow==2.15.0
```

Expand Down
32 changes: 32 additions & 0 deletions activate_gbi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

# Activation script for GBI environment on M2 Mac
# Usage: source activate_gbi.sh

# Get the directory where this script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Initialize conda
eval "$(/opt/homebrew/Caskroom/mambaforge/base/bin/conda shell.bash hook)"

# Activate the local conda environment
conda activate "${SCRIPT_DIR}/.conda-envs/gbi_ranode"

# Set up project paths (from main setup.sh)
export PATH="${SCRIPT_DIR}/bin:${PATH}"
export PYTHONPATH="${SCRIPT_DIR}/ranode:${SCRIPT_DIR}:${PYTHONPATH}"

# Set up LAW and data directories (ranode-specific settings)
export LAW_HOME="${SCRIPT_DIR}/ranode/.law"
export LAW_CONFIG_FILE="${SCRIPT_DIR}/ranode/law.cfg"

# Load data/output directory configuration
if [[ -f "${SCRIPT_DIR}/ranode/.config" ]]; then
source "${SCRIPT_DIR}/ranode/.config"
fi

echo ""
echo "✓ GBI environment activated!"
echo " Python: $(python --version)"
echo " Environment: ${CONDA_PREFIX}"
echo " Working directory: ${SCRIPT_DIR}"
Loading