Skip to content

feat: Added warnings for potentially unreachable 3D files (3D paths pt. 1)#100

Merged
ShrimpCryptid merged 4 commits into
mainfrom
fix/writer-warn-3d-paths
Nov 21, 2025
Merged

feat: Added warnings for potentially unreachable 3D files (3D paths pt. 1)#100
ShrimpCryptid merged 4 commits into
mainfrom
fix/writer-warn-3d-paths

Conversation

@ShrimpCryptid
Copy link
Copy Markdown
Contributor

Problem

Addresses a bug reported by Max Hess, where 3D frame data was failing to load. The reason why was because he was using an absolute path to a different directory (e.g. C:/my-data/data.zarr), which is not a loadable address.

This change adds warning messages for when addresses are potentially unreachable, and is part 1 of a series of changes I'm making to validate source files.

Estimated review size: tiny, 5 minutes

Solution

  • When writing datasets, writer.py will warn users about potentially unreachable 3D frame data.
    • This includes absolute paths, paths in parent directories, or nonexistent files.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@ShrimpCryptid ShrimpCryptid self-assigned this Nov 19, 2025
@ShrimpCryptid ShrimpCryptid added the bug Something isn't working label Nov 19, 2025
Comment thread colorizer_data/utils.py
Comment on lines +797 to +799
logging.error(
f"{name} must be a relative path inside the dataset directory or an HTTP(S) URL. Received: '{source}'"
)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ex: "F:/data/data.zarr" is not a loadable path for TFE.

Future changes in this data conversion package will likely try and replace/update this path upstream of this final validation step!

@ShrimpCryptid ShrimpCryptid force-pushed the fix/writer-warn-3d-paths branch from 2375367 to 15af659 Compare November 20, 2025 23:32
@ShrimpCryptid ShrimpCryptid marked this pull request as ready for review November 20, 2025 23:33
@ShrimpCryptid ShrimpCryptid requested a review from a team as a code owner November 20, 2025 23:33
@ShrimpCryptid ShrimpCryptid requested review from meganrm and toloudis and removed request for a team November 20, 2025 23:33
@ShrimpCryptid ShrimpCryptid merged commit 9e917b6 into main Nov 21, 2025
1 of 2 checks passed
@ShrimpCryptid ShrimpCryptid deleted the fix/writer-warn-3d-paths branch November 21, 2025 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants