Skip to content

Commit e9cfb9d

Browse files
committed
Initial bulk commit
1 parent 0333d9b commit e9cfb9d

File tree

137 files changed

+18558
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+18558
-2
lines changed

.dockerignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ignore the checkpoints directory
2+
checkpoints/
3+
4+
# ignore the data directory
5+
data/
6+
7+
# ignore the logs directory
8+
logs/
9+
10+
# ignore the git directory
11+
.git
12+
13+
# ignore generated YAML files
14+
scripts/nautilus/data_transfer_pod_pvc.yaml
15+
scripts/nautilus/gpu_job.yaml
16+
scripts/nautilus/hm_gpu_job.yaml
17+
scripts/nautilus/persistent_storage.yaml

.env.example

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# example of file for storing private and user specific environment variables, like keys or system paths
2+
# rename it to ".env" (excluded from version control by default)
3+
# .env is loaded by train.py automatically
4+
# hydra allows you to reference variables in .yaml configs with special syntax: ${oc.env:MY_VAR}
5+
6+
MY_VAR="/home/user/my/system/path"

.github/PULL_REQUEST_TEMPLATE.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## What does this PR do?
2+
3+
<!--
4+
Please include a summary of the change and which issue is fixed.
5+
Please also include relevant motivation and context.
6+
List any dependencies that are required for this change.
7+
List all the breaking changes introduced by this pull request.
8+
-->
9+
10+
Fixes #\<issue_number>
11+
12+
## Before submitting
13+
14+
- [ ] Did you make sure **title is self-explanatory** and **the description concisely explains the PR**?
15+
- [ ] Did you make sure your **PR does only one thing**, instead of bundling different changes together?
16+
- [ ] Did you list all the **breaking changes** introduced by this pull request?
17+
18+
## Did you have fun?
19+
20+
Make sure you had fun coding 🙃
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Same as `code-quality-pr.yaml` but triggered on commit to main branch
2+
# and runs on all files (instead of only the changed ones)
3+
4+
name: Code Quality Main
5+
6+
on:
7+
push:
8+
branches: [main]
9+
10+
jobs:
11+
code-quality:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v2
20+
21+
- name: Run pre-commits
22+
uses: pre-commit/[email protected]
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow finds which files were changed, prints them,
2+
# and runs `pre-commit` on those files.
3+
4+
# Inspired by the sktime library:
5+
# https://github.com/alan-turing-institute/sktime/blob/main/.github/workflows/test.yml
6+
7+
name: Code Quality PR
8+
9+
on:
10+
pull_request:
11+
branches: [main, "release/*"]
12+
13+
jobs:
14+
code-quality:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v2
23+
24+
- name: Find modified files
25+
id: file_changes
26+
uses: trilom/[email protected]
27+
with:
28+
output: " "
29+
30+
- name: List modified files
31+
run: echo '${{ steps.file_changes.outputs.files}}'
32+
33+
- name: Run pre-commits
34+
uses: pre-commit/[email protected]
35+
with:
36+
extra_args: --files ${{ steps.file_changes.outputs.files}}

.github/workflows/test.yml

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main, "release/*"]
8+
9+
jobs:
10+
run_tests:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: ["ubuntu-latest", "macos-latest"]
17+
python-version: ["3.7", "3.8", "3.9", "3.10"]
18+
19+
timeout-minutes: 10
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v3
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Install dependencies
31+
run: |
32+
conda install -y -c conda-forge mamba
33+
mamba env create -f environment.yaml
34+
conda activate bio-diffusion
35+
python -m pip install --upgrade pip
36+
pip install -e .
37+
pip install pytest
38+
pip install sh
39+
40+
- name: List dependencies
41+
run: |
42+
python -m pip list
43+
44+
- name: Run pytest
45+
run: |
46+
pytest -v
47+
48+
run_tests_windows:
49+
runs-on: ${{ matrix.os }}
50+
51+
strategy:
52+
fail-fast: false
53+
matrix:
54+
os: ["windows-latest"]
55+
python-version: ["3.7", "3.8", "3.9", "3.10"]
56+
57+
timeout-minutes: 10
58+
59+
steps:
60+
- name: Checkout
61+
uses: actions/checkout@v3
62+
63+
- name: Set up Python ${{ matrix.python-version }}
64+
uses: actions/setup-python@v3
65+
with:
66+
python-version: ${{ matrix.python-version }}
67+
68+
- name: Install dependencies
69+
run: |
70+
conda install -y -c conda-forge mamba
71+
mamba env create -f environment.yaml
72+
conda activate bio-diffusion
73+
python -m pip install --upgrade pip
74+
pip install -e .
75+
pip install pytest
76+
77+
- name: List dependencies
78+
run: |
79+
python -m pip list
80+
81+
- name: Run pytest
82+
run: |
83+
pytest -v
84+
85+
# upload code coverage report
86+
code-coverage:
87+
runs-on: ubuntu-latest
88+
89+
steps:
90+
- name: Checkout
91+
uses: actions/checkout@v2
92+
93+
- name: Set up Python 3.10
94+
uses: actions/setup-python@v2
95+
with:
96+
python-version: "3.10"
97+
98+
- name: Install dependencies
99+
run: |
100+
conda install -y -c conda-forge mamba
101+
mamba env create -f environment.yaml
102+
conda activate bio-diffusion
103+
python -m pip install --upgrade pip
104+
pip install -e .
105+
pip install pytest
106+
pip install pytest-cov[toml]
107+
pip install sh
108+
109+
- name: Run tests and collect coverage
110+
run: pytest --cov src # NEEDS TO BE UPDATED WHEN CHANGING THE NAME OF "src" FOLDER
111+
112+
- name: Upload coverage to Codecov
113+
uses: codecov/codecov-action@v3

.gitignore

+51-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ celerybeat.pid
102102
*.sage.py
103103

104104
# Environments
105-
.env
106105
.venv
107106
env/
108107
venv/
@@ -127,3 +126,54 @@ dmypy.json
127126

128127
# Pyre type checker
129128
.pyre/
129+
130+
### VisualStudioCode
131+
.vscode/*
132+
!.vscode/settings.json
133+
!.vscode/tasks.json
134+
!.vscode/launch.json
135+
!.vscode/extensions.json
136+
*.code-workspace
137+
**/.vscode
138+
139+
# JetBrains
140+
.idea/
141+
142+
# Data & Models
143+
*.h5
144+
*.tar
145+
*.tar.gz
146+
147+
# Bio-Diffusion
148+
.env
149+
.autoenv
150+
.hydra
151+
*.dot
152+
*.pdf
153+
fit-perf_logs.txt
154+
*.sdf
155+
checkpoints/GEOM/*
156+
checkpoints/QM9/*
157+
configs/local/*.yaml
158+
scripts/*_grid_search_runs.json
159+
scripts/*_grid_search_scripts*/gpu_job_*.yaml
160+
scripts/*_grid_search_scripts*/train_*.bash
161+
scripts/*_grid_search_scripts*/*.out
162+
scripts/*_grid_search_scripts*/*.done
163+
scripts/local/*.bash
164+
scripts/nautilus/data_transfer_pod_pvc.yaml
165+
scripts/nautilus/gpu_job.yaml
166+
scripts/nautilus/hm_gpu_job.yaml
167+
scripts/nautilus/persistent_storage.yaml
168+
169+
bio-diffusion/
170+
logs/
171+
172+
data/EDM/GEOM
173+
data/EDM/QM9
174+
175+
# NFS
176+
.nfs*
177+
178+
# Git
179+
.git-credentials

0 commit comments

Comments
 (0)