Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variables to reject abnormal noise #255

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

variables to reject abnormal noise #255

wants to merge 5 commits into from

Conversation

feigaodm
Copy link
Member

@feigaodm feigaodm commented May 2, 2019

@tunnell
Copy link
Member

tunnell commented May 2, 2019

Flake8 detected 6 issues on 6765d95
Visit https://sider.review/gh/repos/50927571/pulls/255 to review the issues.

posted by Sider

branch_selection = ['n_hits_rejected*', 'lone_hits_per_channel_before*', 'lone_hits_per_channel*']

def __init__(self):
hax.minitrees.TreeMaker.__init__(self)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Flake8] [F821] undefined name 'hax' (link)

posted by Sider

@@ -22,6 +22,47 @@ def extract_data(self, event):
return dict(event_time=event.start_time,
event_duration=event.stop_time - event.start_time)

class NoiseRejection(TreeMaker):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Flake8] [E302] expected 2 blank lines, found 1 (link)

posted by Sider

Copy link
Contributor

@JelleAalbers JelleAalbers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, this only adds an extra treemaker without affecting anything else. I removed the accidental bump of the Extended version, leftover from the earlier implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants