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

AxFoundation / strax / 1554
89%

Build:
DEFAULT BRANCH: master
Ran 21 Jul 2020 11:48AM UTC
Jobs 1
Files 27
Run time 5s
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

pending completion
1554

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

Jobs
ID Job ID Ran Files Coverage
2 1554.2 (PYTHON=3.7 NUMBA_DISABLE_JIT=1) 21 Jul 2020 11:48AM UTC 0
72.99
Travis Job 1554.2
Source Files on build 1554
  • Tree
  • List 27
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1554
  • b0d2428d on github
  • Prev Build on master (#1550)
  • Next Build on master (#1561)
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

© 2025 Coveralls, Inc