Skip to content

Commit

Permalink
fix(pyproject.toml): incrementing the gammapy version
Browse files Browse the repository at this point in the history
also updating the gammapy version for apptainer
  • Loading branch information
steob92 committed Dec 17, 2024
1 parent 2d46ac4 commit d71c994
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 2 additions & 6 deletions gammapy-tools.def
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Stage: build
%environment
# Port for jupyter lab
export JPORT=8000
export GAMMAPY_DATA=/gamma-tools/gammapy-datasets/1.2/
export GAMMAPY_DATA=/gamma-tools/gammapy-datasets/dev
export GAMMAPY_DATA=/gamma-tools/gammapy-datasets/1.3/
#. "/opt/conda/etc/profile.d/conda.sh"
#. /opt/conda/bin/activate
#export PATH=/opt/conda/bin/:$PATH
Expand All @@ -42,7 +41,7 @@ Stage: build

# Install v2dl3
cd /gamma-tools
git clone https://github.com/VERITAS-Observatory/V2DL3.git
git clone --depth 1 --branch v0.6.0 https://github.com/VERITAS-Observatory/V2DL3.git
cd /gamma-tools/V2DL3

# Because its an env install of requirements
Expand All @@ -69,9 +68,6 @@ 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 Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ requires-python = ">=3.9"


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

0 comments on commit d71c994

Please sign in to comment.