• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AxFoundation / strax / 1554 / 2
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 21 Jul 2020 11:48AM UTC
Files 27
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Jul 2020 11:45AM UTC coverage: 72.994% (+0.3%) from 72.684%
PYTHON=3.7 NUMBA_DISABLE_JIT=1

push

travis-ci

web-flow
CutPlugin class for cuts in straxen (#274)

* Add CutPlugin class for cuts in straxen 

The cuts currently in straxen (https://github.com/XENONnT/straxen/blob/master/straxen/plugins/x1t_cuts.py ) have a quite lot of overlap with one another. Most of the time a simple Boolean array is all that is returned. However, we each time have to add the time fields et cetera which may somewhat obscure the functionality.
To simplify the cuts somewhat I've written a simple Plugin Class. In straxen it could be used as for example:
```
class CutS1s(CutPlugin):
    depends_on = ('events', 'corrected_areas')
    provides = 'cs1_cut'
    cut_description = "Remove cS1 above 100 PE"
    cut_name ='cut_high_cs1'
    __version__ = '0.0.0'
    
    def cut_by(self, events):
        return events['cs1'] > 100
```
```
class CutS2s(CutPlugin):
    depends_on = ('events', 'corrected_areas')
    cut_description = "Remove cS2s below 100 PE"
    
    def cut_by(self, events):
        return events['cs2'] < 100
```

2765 of 3788 relevant lines covered (72.99%)

0.73 hits per line

Source Files on job 1554.2 (PYTHON=3.7 NUMBA_DISABLE_JIT=1)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1306
  • Travis Job 1554.2
  • b0d2428d on github
  • Prev Job for PYTHON=3.7 NUMBA_DISABLE_JIT=1 on master (#1550.2)
  • Next Job for PYTHON=3.7 NUMBA_DISABLE_JIT=1 on master (#1561.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc