Skip to content

Commit

Permalink
Added apptainer container and copying weights of NN
Browse files Browse the repository at this point in the history
  • Loading branch information
aasensio committed Mar 11, 2024
1 parent 418f2f5 commit 9427ca9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ __pycache__/
*.c
*.h5
*.pth
*.sif

# C extensions
*.so
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include hazel/data/*.1d
include hazel/data/*.pth
include hazel/data/LINEAS
include src/sir/PARAMETER
include VERSION.txt
Expand Down
14 changes: 14 additions & 0 deletions apptainer/hazel.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Bootstrap: docker
From: continuumio/miniconda3
%post
conda update -y conda
conda install -y -c conda-forge cython numpy h5py tqdm scipy astropy mpich mpi4py configobj gfortran_linux-64 gcc_linux-64 asciitree matplotlib
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install torch_geometric
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.2.0+cpu.html
. /opt/conda/etc/profile.d/conda.sh
conda activate base
git clone https://github.com/aasensio/hazel2.git
cd hazel2
python setup.py install
conda clean -afy
1 change: 1 addition & 0 deletions apptainer/upload
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl -T hazel.sif --user 'aasensio' 'https://cloud.iac.es/remote.php/dav/files/F00AA55A-3D9E-4B19-A6F7-0EBD138CCF5D/hazel2/hazel.sif' --anyauth

0 comments on commit 9427ca9

Please sign in to comment.