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

add dummy file name for some tiffseq #592

Merged
merged 5 commits into from
Oct 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add dummy file name for some tiffseq
  • Loading branch information
dylanmcreynolds committed Oct 26, 2023
commit 568d2a8a4652612e10034d4efc599ff123af943a
1 change: 1 addition & 0 deletions tiled/_tests/test_tiff.py
Original file line number Diff line number Diff line change
@@ -129,6 +129,7 @@ async def test_tiff_sequence_with_directory_walker(tmpdir):
# Single image is its own node.
assert client["single_image"].shape == (3, 5)
# Each sequence is grouped into a node.
assert client["_"].shape == (10, 3, 5)
assert client["image"].shape == (10, 3, 5)
assert client["other_image"].shape == (10, 3, 5)
assert client["other_image2_"].shape == (10, 3, 5)
2 changes: 2 additions & 0 deletions tiled/catalog/register.py
Original file line number Diff line number Diff line change
@@ -349,6 +349,8 @@ async def tiff_sequence(
match = TIFF_SEQUENCE_STEM_PATTERN.match(file.name)
if match:
sequence_name, _sequence_number = match.groups()
if sequence_name == '':
sequence_name = '_'
sequences[sequence_name].append(file)
continue
unhandled_files.append(file)