Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wela
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Swain Lab
wela
Commits
cac829ed
Commit
cac829ed
authored
10 months ago
by
pswain
Browse files
Options
Downloads
Patches
Plain Diff
change: renamed butterfilter to butterworth
parent
ff99639f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/wela/butterworth_filter.py
+1
-1
1 addition, 1 deletion
src/wela/butterworth_filter.py
src/wela/plotting.py
+3
-3
3 additions, 3 deletions
src/wela/plotting.py
with
4 additions
and
4 deletions
src/wela/butterfilter.py
→
src/wela/butter
worth_
filter.py
+
1
−
1
View file @
cac829ed
...
...
@@ -2,7 +2,7 @@ import numpy as np
from
scipy
import
signal
def
butterfilter
(
timeseries
,
params
=
None
):
def
butter
worth_
filter
(
timeseries
,
params
=
None
):
"""
Apply Butterworth filter to time series arranged in rows.
"""
# second-order-sections output
# by default, using a digital filter
...
...
This diff is collapsed.
Click to expand it.
src/wela/plotting.py
+
3
−
3
View file @
cac829ed
...
...
@@ -4,7 +4,7 @@ import matplotlib.cm
import
matplotlib.pylab
as
plt
import
numpy
as
np
import
numpy.matlib
from
wela.butterfilter
import
butterfilter
from
wela.butter
worth_
filter
import
butter
worth_
filter
def
kymograph
(
...
...
@@ -571,7 +571,7 @@ def bud_to_bud_plot(
title: str, optional
Title for plot.
filter: boolean
If True, apply a butter filter to each time series.
If True, apply a butter
worth
filter to each time series.
Example
-------
...
...
@@ -585,7 +585,7 @@ def bud_to_bud_plot(
t
,
signal_data
=
dl
.
get_time_series
(
signal
,
group
=
group
,
df
=
df
)
t
,
buddings
=
dl
.
get_time_series
(
"
buddings
"
,
group
=
group
,
df
=
df
)
if
filter
:
signal_data
=
butterfilter
(
signal_data
)
signal_data
=
butter
worth_
filter
(
signal_data
)
if
np
.
max
(
t
)
>
48
:
# convert to hours
t
=
t
/
60
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment