Skip to content

Commit

Permalink
Merge pull request #55 from VERITAS-Observatory/container_update_maps
Browse files Browse the repository at this point in the history
Container update maps
  • Loading branch information
steob92 authored Jul 29, 2024
2 parents f254b86 + f40eb35 commit f06c783
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Empty file modified apptainer_hub.sh
100644 → 100755
Empty file.
8 changes: 6 additions & 2 deletions gammapy-tools.def
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Stage: build
# Port for jupyter lab
export JPORT=8000
export GAMMAPY_DATA=/gamma-tools/gammapy-datasets/1.2/
export GAMMAPY_DATA=/gamma-tools/gammapy-datasets/dev
#. "/opt/conda/etc/profile.d/conda.sh"
#. /opt/conda/bin/activate
#export PATH=/opt/conda/bin/:$PATH
Expand All @@ -26,7 +27,7 @@ Stage: build

apt update
apt upgrade -y
apt install curl bash git gcc btop emacs python3 python3-pip python3.12-venv -y
apt install curl bash git gcc btop emacs python3 python3-pip python3.12-venv wget zsh -y

# Install mamba and base env
#curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
Expand Down Expand Up @@ -68,6 +69,9 @@ Stage: build
python -m pip cache purge


# Add the updated version of gammapy/datasets/map.py
wget https://raw.githubusercontent.com/gammapy/gammapy/main/gammapy/datasets/map.py -O /opt/gammapy_tools/lib/python3.12/site-packages/gammapy/datasets/map.py

%runscript
cd /local_data ; jupyter-lab --port=$JPORT

Expand All @@ -81,5 +85,5 @@ Stage: build
Version v0.1.0

%help
This is a container with juptyer lab pre-installed with gammapy, v2dl3 and gammapy-background-analysis
This is a container with juptyer lab pre-installed with gammapy, v2dl3 and gammapy-tools

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ requires-python = ">=3.9"


dependencies = [
"gammapy>=1.2",
# "gammapy>=1.2",
"gammapy@git+https://github.com/gammapy/gammapy",
"pydantic",
"scipy==1.11.4",
"astropy",
Expand Down

0 comments on commit f06c783

Please sign in to comment.