-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completed restructuring: Merge develop into main
- Loading branch information
Showing
38 changed files
with
171 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI Pipeline | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ['3.10'] | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install project with dev dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install .[dev,tests] | ||
- name: Run Black (auto-reformat) | ||
run: black . | ||
|
||
- name: Run isort (auto-reformat) | ||
run: isort . | ||
|
||
- name: Run pytest | ||
run: pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from .benchmark import * | ||
from .surrogates import * | ||
from .train import * | ||
from .utils import * |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from codes.surrogates.DeepONet.deeponet import MultiONet | ||
from codes.surrogates.FCNN.fcnn import FullyConnected | ||
from codes.surrogates.LatentNeuralODE.latent_neural_ode import LatentNeuralODE | ||
from codes.surrogates.LatentPolynomial.latent_poly import LatentPoly | ||
|
||
surrogate_classes = [ | ||
MultiONet, | ||
FullyConnected, | ||
LatentNeuralODE, | ||
LatentPoly, | ||
# Add any additional surrogate classes here | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >=61", | ||
"setuptools_scm >=7", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
[project] | ||
name = "CODES" | ||
description = "Benchmarking tool for neural (chemical) ODE surrogate models" | ||
readme = "README.md" | ||
maintainers = [ | ||
{ name = "Robin Janssen, Immanuel Sulzer", email = "[email protected]" }, | ||
] | ||
dynamic = ["version"] | ||
requires-python = ">=3.8" | ||
license = { text = "GPL-3.0" } | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
] | ||
dependencies = [ | ||
"h5py==3.9.0", | ||
"matplotlib==3.8.4", | ||
"numpy==1.26.4", | ||
"PyYAML==6.0.1", | ||
"scipy==1.14.1", | ||
"tabulate==0.9.0", | ||
"torch==2.3.0", | ||
"torchode==0.2.0", | ||
"tqdm==4.66.4", | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest", | ||
#"pytest-cov", | ||
] | ||
dev = [ | ||
"pre-commit", | ||
"black", | ||
"isort", | ||
] | ||
# docs = [ | ||
# "sphinx", | ||
# "sphinx_mdinclude", | ||
# "sphinx_rtd_theme", | ||
# ] | ||
|
||
|
||
[tool.setuptools] | ||
packages = [ | ||
"codes", | ||
] | ||
|
||
|
||
[tool.pytest.ini_options] | ||
testpaths = [ | ||
"test", | ||
] | ||
pythonpath = "." | ||
python_functions = "test_*" | ||
python_classes = "Test*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters