Skip to content

Commit b8ad5a2

Browse files
committed
Fix tests
1 parent e326f12 commit b8ad5a2

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install -r requirements.txt
2524
pip install tox tox-gh-actions
2625
- name: Test with tox
2726
run: tox

bayesflow/__init__.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@
1919
# SOFTWARE.
2020

2121
# Add easy access imports
22-
from bayesflow import default_settings
23-
from bayesflow import amortizers
24-
from bayesflow import networks
25-
from bayesflow import diagnostics
26-
from bayesflow import trainers
27-
from bayesflow import losses
28-
from bayesflow import mcmc
22+
try:
23+
from bayesflow import default_settings
24+
from bayesflow import amortizers
25+
from bayesflow import networks
26+
from bayesflow import diagnostics
27+
from bayesflow import trainers
28+
from bayesflow import losses
29+
from bayesflow import mcmc
30+
except ImportError:
31+
pass

0 commit comments

Comments
 (0)