Skip to content

Commit

Permalink
Reinstall straxen
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Jan 24, 2025
1 parent 44cd96b commit c3fecd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
pip install pytest hypothesis coverage coveralls
pip install git+https://github.com/XENONnT/base_environment.git --force-reinstall
pip install git+https://github.com/AxFoundation/strax.git --force-reinstall
pip install . --force-reinstall
- name: Start MongoDB
uses: supercharge/[email protected]
Expand Down Expand Up @@ -101,6 +102,7 @@ jobs:
run: |
coverage run --source=straxen -m pytest --durations 0
coverage report
- name: Coveralls
# Make the coverage report and upload
env:
Expand All @@ -126,5 +128,6 @@ jobs:
bash .github/scripts/create_pre_apply_function.sh $HOME
coverage run --append --source=straxen -m pytest -v
coveralls --service=github
- name: goodbye
run: echo 'tests done, bye bye'
2 changes: 0 additions & 2 deletions straxen/config/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def open_neural_net(model_path: str, custom_objects=None, **kwargs):
"""Open a tensorflow file and return a keras model."""
# Nested import to reduce loading time of import straxen and it not
# base requirement
import jax # noqa: F401
import tensorflow as tf

if not os.path.exists(model_path):
Expand Down Expand Up @@ -273,7 +272,6 @@ def open_jax_model(model_path: str, **kwargs):
"""
# Nested import to reduce loading time of import straxen as it's not
# a base requirement
import jax # noqa: F401
from jax import export

# Check if the model file exists
Expand Down

0 comments on commit c3fecd9

Please sign in to comment.