Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency updates #27

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-bt_ocean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
python3 -m venv bt_ocean_venv
. bt_ocean_venv/bin/activate
python3 -m pip install flake8 jax[cpu] keras matplotlib pytest pytest-timeout pytest-xdist ruff scipy sympy zarr
python3 -m pip install flake8 jax[cpu] keras matplotlib numpy pytest pytest-timeout pytest-xdist ruff scipy sympy zarr
- name: Lint
run: |
. bt_ocean_venv/bin/activate
Expand Down
6 changes: 6 additions & 0 deletions bt_ocean/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
def _init():
import keras

import logging
import sys
import warnings

if keras.backend.backend() != "jax":
warnings.warn("bt_ocean requires Keras with the JAX backend", ImportWarning)

logger = logging.getLogger("bt_ocean")

Expand Down
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ dependencies = [
"keras",
"numpy",
"scipy",
"sympy",
"zarr"
]
optional-dependencies.test = [
"matplotlib",
"pytest",
"sympy"
]
optional-dependencies.lint = [
"flake8",
"ruff"
]

[tool.ruff]

Expand Down