Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aliby-mirror
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
aliby
aliby-mirror
Commits
13671055
Commit
13671055
authored
2 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
fix(kymograph): fix import typo
parent
02719b51
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/agora/utils/kymograph.py
+4
-2
4 additions, 2 deletions
src/agora/utils/kymograph.py
with
4 additions
and
2 deletions
src/agora/utils/kymograph.py
+
4
−
2
View file @
13671055
...
@@ -6,7 +6,7 @@ import numpy as np
...
@@ -6,7 +6,7 @@ import numpy as np
import
pandas
as
pd
import
pandas
as
pd
from
sklearn.cluster
import
KMeans
from
sklearn.cluster
import
KMeans
from
agora.utils.indexing
import
validate_associatio
n
from
agora.utils.indexing
import
validate_association
index_row
=
t
.
Tuple
[
str
,
str
,
int
,
int
]
index_row
=
t
.
Tuple
[
str
,
str
,
int
,
int
]
...
@@ -122,7 +122,9 @@ def bidirectional_retainment_filter(
...
@@ -122,7 +122,9 @@ def bidirectional_retainment_filter(
def
melt_reset
(
df
:
pd
.
DataFrame
,
additional_ids
:
t
.
Dict
[
str
,
pd
.
Series
]
=
{}):
def
melt_reset
(
df
:
pd
.
DataFrame
,
additional_ids
:
t
.
Dict
[
str
,
pd
.
Series
]
=
{}):
new_df
=
add_index_levels
(
df
,
additional_ids
)
new_df
=
add_index_levels
(
df
,
additional_ids
)
return
new_df
.
melt
(
ignore_index
=
False
,
var_name
=
"
time (minutes)
"
,
value_name
=
"
signal
"
).
reset_index
()
return
new_df
.
melt
(
ignore_index
=
False
,
var_name
=
"
time (minutes)
"
,
value_name
=
"
signal
"
).
reset_index
()
# Drop cells that if used would reduce info the most
# Drop cells that if used would reduce info the most
...
...
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