Skip to content

Commit de09ecc

Browse files
authored
Merge pull request #34 from RasmusOrsoe/main
Update branch from main
2 parents 40ba58b + ad36dc6 commit de09ecc

13 files changed

Lines changed: 119 additions & 15 deletions

File tree

.github/actions/install/action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ runs:
5151
shell: bash
5252
run: |
5353
if [[ "${{ inputs.use_vm }}" == "true" ]]; then source ~/venv/bin/activate; fi
54-
pip install --upgrade 'pip>=20'
55-
pip install --upgrade 'setuptools>=68.2.2'
54+
pip install --no-cache-dir --upgrade 'pip>=20'
55+
pip install --no-cache-dir --upgrade 'setuptools>=68.2.2'
56+
rm -rf ~/.cache/pip
5657
5758
- name: Print pip and setuptools versions
5859
shell: bash
@@ -67,6 +68,6 @@ runs:
6768
if [[ "${{ inputs.use_vm }}" == "true" ]]; then source ~/venv/bin/activate; fi
6869
echo "Installing graphnet with flags: ${{ steps.flags.outputs.user_flag }} ${{ steps.flags.outputs.editable_flag }}"
6970
echo "pip install ${{ steps.flags.outputs.user_flag }} ${{ steps.flags.outputs.editable_flag }} .[torch-${{ steps.flags.outputs.torch_flag }},${{ inputs.extras }}] -f https://data.pyg.org/whl/torch-${{ inputs.torch_version }}+${{ inputs.hardware }}.html"
70-
pip install ${{ steps.flags.outputs.user_flag }} ${{ steps.flags.outputs.editable_flag }} .[torch-${{ steps.flags.outputs.torch_flag }},${{ inputs.extras }}] -f https://data.pyg.org/whl/torch-${{ inputs.torch_version }}+${{ inputs.hardware }}.html
71-
72-
pip install git+https://github.com/thoglu/jammy_flows.git
71+
pip install --no-cache-dir${{ steps.flags.outputs.user_flag }} ${{ steps.flags.outputs.editable_flag }} .[torch-${{ steps.flags.outputs.torch_flag }},${{ inputs.extras }}] -f https://data.pyg.org/whl/torch-${{ inputs.torch_version }}+${{ inputs.hardware }}.html
72+
rm -rf ~/.cache/pip
73+
pip install --no-cache-dir git+https://github.com/thoglu/jammy_flows.git

.github/workflows/build.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
sudo apt update --fix-missing --yes
7676
sudo apt upgrade --yes
7777
sudo apt-get install --yes git
78+
sudo apt-get clean
7879
7980
- uses: actions/checkout@v4
8081

@@ -86,21 +87,29 @@ jobs:
8687
pip --version
8788
python --version
8889
pip show setuptools
89-
90+
rm -rf ~/.cache/pip
91+
9092
- name: Print available disk space before graphnet install
91-
run: df -h
92-
93+
run: |
94+
df -h
9395
- name: Upgrade packages in virtual environment
9496
shell: bash
9597
run: |
9698
source ~/venv/bin/activate
97-
pip install --upgrade astropy
98-
pip install --upgrade PyYAML
99-
pip install --upgrade psutil
100-
pip install --upgrade setuptools
101-
pip install --upgrade versioneer
99+
pip install --no-cache-dir --upgrade astropy
100+
pip install --no-cache-dir --upgrade PyYAML
101+
pip install --no-cache-dir --upgrade psutil
102+
pip install --no-cache-dir --upgrade setuptools
103+
pip install --no-cache-dir --upgrade versioneer
102104
pip show setuptools
103105
pip show versioneer
106+
rm -rf ~/.cache/pip
107+
- name: Install PyTorch and dependencies
108+
shell: bash
109+
run: |
110+
source ~/venv/bin/activate
111+
pip3 install --no-cache-dir torch==${{ matrix.torch_version }}+${{ matrix.hardware }} torchvision torchaudio --index-url https://download.pytorch.org/whl/${{ matrix.hardware }}
112+
rm -rf ~/.cache/pip
104113
- name: Install package
105114
uses: ./.github/actions/install
106115
with:
@@ -118,6 +127,9 @@ jobs:
118127
pip show torch-sparse
119128
pip show torch-scatter
120129
pip show jammy_flows
130+
- name: Print available disk space after graphnet install
131+
run: |
132+
df -h
121133
- name: Run unit tests and generate coverage report
122134
shell: bash
123135
run: |
8.79 KB
Binary file not shown.
23.3 KB
Binary file not shown.
30.3 KB
Binary file not shown.
198 KB
Binary file not shown.
102 KB
Binary file not shown.
7.31 KB
Binary file not shown.

src/graphnet/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@
4242
PROMETHEUS_GEOMETRY_TABLE_DIR = os.path.join(GEOMETRY_TABLE_DIR, "prometheus")
4343
LIQUIDO_GEOMETRY_TABLE_DIR = os.path.join(GEOMETRY_TABLE_DIR, "liquid-o")
4444
MAGIC_GEOMETRY_TABLE_DIR = os.path.join(GEOMETRY_TABLE_DIR, "magic")
45+
NUBENCH_GEOMETRY_TABLE_DIR = os.path.join(GEOMETRY_TABLE_DIR, "nubench")

src/graphnet/data/extractors/icecube/i3truthextractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def _find_data_type(
515515
sim_type = "genie"
516516
elif "noise" in input_file:
517517
sim_type = "noise"
518-
elif frame.Has("EventProprties") or frame.Has(
518+
elif frame.Has("EventProperties") or frame.Has(
519519
"LeptonInjectorProperties"
520520
):
521521
sim_type = "LeptonInjector"

0 commit comments

Comments
 (0)