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
32270ebf
Commit
32270ebf
authored
2 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
fix(vis_tool): concat_dims supports negative index
parent
dee7bb36
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/aliby/utils/vis_tools.py
+2
-1
2 additions, 1 deletion
src/aliby/utils/vis_tools.py
with
2 additions
and
1 deletion
src/aliby/utils/vis_tools.py
+
2
−
1
View file @
32270ebf
...
@@ -63,7 +63,8 @@ def get_cellmasks_at_times(results_path: str, timepoints: t.List[int] = [0]):
...
@@ -63,7 +63,8 @@ def get_cellmasks_at_times(results_path: str, timepoints: t.List[int] = [0]):
def
concatenate_dims
(
ndarray
,
axis1
:
int
,
axis2
:
int
):
def
concatenate_dims
(
ndarray
,
axis1
:
int
,
axis2
:
int
):
return
np
.
concatenate
(
np
.
moveaxis
(
ndarray
,
axis1
,
0
),
axis
=
axis2
)
axis2
=
len
(
ndarray
.
shape
)
+
axis2
if
axis2
<
0
else
axis2
return
np
.
concatenate
(
np
.
moveaxis
(
ndarray
,
axis1
,
0
),
axis
=
axis2
-
1
)
def
get_tile_mask_pairs
(
def
get_tile_mask_pairs
(
...
...
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