Skip to content

Commit

Permalink
Merge 422bc8c into f902908
Browse files Browse the repository at this point in the history
  • Loading branch information
JoranAngevaare committed Nov 24, 2020
2 parents f902908 + 422bc8c commit 4f426a6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
language: python
dist: xenial
python:
- '3.6'
- '3.7'
- '3.8'
jobs:
include:
- name: "Python 3.7"
env: PYTHON=3.7 DEPLOY_ME=true
- name: "Python 3.7 numbaless (for coverage)"
env: PYTHON=3.7 NUMBA_DISABLE_JIT=1
- name: "Python 3.6 (legacy)"
env: PYTHON=3.6
- name: "Python 3.8 (beta)"
env: PYTHON=3.8
install:
- pip install tensorflow>=2.3
- git clone https://github.com/AxFoundation/strax.git ../strax
- pip install ../strax
- pip install -r requirements.txt
script:
- python setup.py test
- pip install coveralls
deploy:
provider: pypi
skip_existing: true
Expand All @@ -19,3 +26,8 @@ deploy:
secure: sZFPmLKtCKvyN/HrPk2gTh8PEx28g9ksv4aBi15WGg14PUWFg53v4gEMH/DrhBc3MDrIA3ib/smMx0airn+XMBDQixwzHg1y+X1KsljOQzfk5MSC+Uv+wB+GkJW2802r00aKL851X0VU2XdjZIxTDd1DcS2QwoQjKSknRrsOtXUUAipH7JJtwKV3WcLGBUn51yygeuFHMOmtca3zlDAFEdk4W29IyAnVBj38PT8ucEWj64OIWSVJ1xf3WWdamFpNz+z6JopHUygXgyIuj8maAeSISWf8n9i2GuX8MzyumFuExklqEjcn1gcKVjmqxWdAHwvf6ul3sfjUsTbXXoPxPx1Oiz8r09H3p8lDCDwexOoh1UrQbsRGCj9oQH8e3gp8deHyosXFmIGm1DeW9efG/S/abDLQ6L9e7S5owYYFw2Muf3blJ2c6nS43k4drsS3ioP1wBsV/Z7HRI1f9NTsKpH4JwAsvIi7cr4BlTyjNip05Narq6eOp8XHSTbt/u7gfN1gfZdxwhPryRAjI+M2ck6sk6eq6nPA5DXd1B4Ekti7LwVaIBgcPCgbn2R0xaL+FrWU++6IYwhNqmnHOq9Hv3iLenGF+Mp3aTJCiyw8hvAbxqbe2vUSO6VwBQW8W8ZM3H8diU5+UaWlj+bZ0nyjxlB/arQle/6Y/WX8CHc9vBYg=
on:
tags: true

# Upload code coverage information
# Only do this if not jitting, otherwise we miss those tests.
after_success:
- if [ $NUMBA_DISABLE_JIT ]; then coveralls; fi
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Streaming analysis for XENON(nT)
[![Readthedocs Badge](https://readthedocs.org/projects/straxen/badge/?version=latest)](https://straxen.readthedocs.io/en/latest/?badge=latest)
[![Join the chat at https://gitter.im/AxFoundation/strax](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/AxFoundation/strax?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![CodeFactor](https://www.codefactor.io/repository/github/xenonnt/straxen/badge)](https://www.codefactor.io/repository/github/xenonnt/straxen)
[![Coverage Status](https://coveralls.io/repos/github/XENONnT/straxen/badge.svg)](https://coveralls.io/github/XENONnT/straxen)

Straxen is the analysis framework for XENONnT, built on top of the generic [strax framework](https://github.com/AxFoundation/strax). Currently it is configured for analyzing XENON1T data.

Expand Down
2 changes: 0 additions & 2 deletions straxen/plugins/nveto_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ def infer_dtype(self):
return {k: v for k, v in zip(self.provides, dtypes)}

def compute(self, raw_records_nv, start, end):
strax.zero_out_of_bounds(raw_records_nv)

# First we have to split rr into records and lone records:
# Please note that we consider everything as a lone record which
# does not satisfy the coincidence requirement
Expand Down
3 changes: 1 addition & 2 deletions tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def compute(self, chunk_i):
straxen.daqreader.DAQReader.provides
if p not in DummyRawRecords.provides])


def _run_plugins(st,
make_all=False,
run_id=run_id,
Expand Down Expand Up @@ -89,7 +88,7 @@ def _run_plugins(st,
if make_all:
# Now make sure we can get some data for all plugins
for p in list(st._plugin_class_registry.keys()):
if p not in forbidden_plugins:
if p not in forbidden_plugins and not p.__class__.__name__.endswith('_nv'):
st.get_array(run_id=run_id,
targets=p,
**proces_kwargs)
Expand Down

0 comments on commit 4f426a6

Please sign in to comment.