Skip to content

Commit

Permalink
Add xedocs version to context config, only if xedocs is called (#1393)
Browse files Browse the repository at this point in the history
* Add xedocs version to context config, only if xedocs is called

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* adding tar of sharedarray

This solution worked for cutax

* Downgrade numpy

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: RIYA SINGH <rsriya383@gmail.com>
  • Loading branch information
3 people authored Jun 29, 2024
1 parent 0286b80 commit 8ba88f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions extra_requirements/requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# File for the requirements of straxen with the automated tests
sharedarray@https://xenon.isi.edu/python/SharedArray-3.2.3.tar.gz # workaround for numpy 2.0.0 build problem, see XENONnT/base_environment#1718
strax==1.6.4
git+https://github.com/XENONnT/base_environment
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ immutabledict
matplotlib
multihist>=0.6.3
numba>=0.50.0
numpy
numpy<2.0.0
packaging
m2r==0.2.1
docutils==0.18.1
Expand Down
1 change: 1 addition & 0 deletions straxen/corrections_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ def apply_xedocs_configs(context: strax.Context, db="straxen_db", **kwargs) -> N

if len(global_config):
context.set_config(global_config)
context.set_context_config({"xedocs_version": filter_kwargs["version"]})
else:
warnings.warn(
f"Could not find any context configs matchin {filter_kwargs}",
Expand Down

0 comments on commit 8ba88f1

Please sign in to comment.