Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
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
alibylite
Commits
0b681305
Commit
0b681305
authored
1 year ago
by
pswain
Browse files
Options
Downloads
Patches
Plain Diff
docs
parent
5d8bfd03
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/agora/io/metadata.py
+3
-0
3 additions, 0 deletions
src/agora/io/metadata.py
src/aliby/tile/tiler.py
+2
-2
2 additions, 2 deletions
src/aliby/tile/tiler.py
with
5 additions
and
2 deletions
src/agora/io/metadata.py
+
3
−
0
View file @
0b681305
...
@@ -189,10 +189,13 @@ def parse_swainlab_metadata(filedir: t.Union[str, Path]):
...
@@ -189,10 +189,13 @@ def parse_swainlab_metadata(filedir: t.Union[str, Path]):
filedir
=
Path
(
filedir
)
filedir
=
Path
(
filedir
)
filepath
=
find_file
(
filedir
,
"
*.log
"
)
filepath
=
find_file
(
filedir
,
"
*.log
"
)
if
filepath
:
if
filepath
:
# new log files
raw_parse
=
parse_from_swainlab_grammar
(
filepath
)
raw_parse
=
parse_from_swainlab_grammar
(
filepath
)
minimal_meta
=
get_meta_swainlab
(
raw_parse
)
minimal_meta
=
get_meta_swainlab
(
raw_parse
)
else
:
else
:
# old log files
if
filedir
.
is_file
()
or
str
(
filedir
).
endswith
(
"
.zarr
"
):
if
filedir
.
is_file
()
or
str
(
filedir
).
endswith
(
"
.zarr
"
):
# log file is in parent directory
filedir
=
filedir
.
parent
filedir
=
filedir
.
parent
legacy_parse
=
parse_logfiles
(
filedir
)
legacy_parse
=
parse_logfiles
(
filedir
)
minimal_meta
=
(
minimal_meta
=
(
...
...
This diff is collapsed.
Click to expand it.
src/aliby/tile/tiler.py
+
2
−
2
View file @
0b681305
...
@@ -367,9 +367,9 @@ class Tiler(StepABC):
...
@@ -367,9 +367,9 @@ class Tiler(StepABC):
full: an array of images
full: an array of images
"""
"""
full
=
self
.
image
[
t
,
c
]
full
=
self
.
image
[
t
,
c
]
if
hasattr
(
full
,
"
compute
"
):
# If using dask fetch images here
if
hasattr
(
full
,
"
compute
"
):
# if using dask fetch images
full
=
full
.
compute
(
scheduler
=
"
synchronous
"
)
full
=
full
.
compute
(
scheduler
=
"
synchronous
"
)
return
full
return
full
@property
@property
...
...
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