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

Provide better error messages in case of a single corrupt file #43

Open
adamltyson opened this issue Oct 10, 2022 · 0 comments
Open

Provide better error messages in case of a single corrupt file #43

adamltyson opened this issue Oct 10, 2022 · 0 comments
Labels
enhancement New feature or request migrated-from-cellfinder For issues that were inherited from the migration of cellfinder into this package.

Comments

@adamltyson
Copy link
Member

In the case of one file becoming corrupt (e.g. in a directory of 2000), the user gets an error such as the following, which doesn't help them debug.

  File "/ceph/apps/ubuntu-20/packages/cellfinder/0.4.17/lib/python3.9/site-packages/imio/load.py", line 239, in load_from_folder
    return load_image_series(
  File "/ceph/apps/ubuntu-20/packages/cellfinder/0.4.17/lib/python3.9/site-packages/imio/load.py", line 330, in load_image_series
    img = threaded_load_from_sequence(
  File "/ceph/apps/ubuntu-20/packages/cellfinder/0.4.17/lib/python3.9/site-packages/imio/load.py", line 404, in threaded_load_from_sequence
    stack = np.dstack([s.result() for s in stacks])
  File "<__array_function__ internals>", line 5, in dstack
  File "/ceph/apps/ubuntu-20/packages/cellfinder/0.4.17/lib/python3.9/site-packages/numpy/lib/shape_base.py", line 723, in dstack
    return _nx.concatenate(arrs, 2)
  File "<__array_function__ internals>", line 5, in concatenate
ValueError: need at least one array to concatenate
@adamltyson adamltyson added the enhancement New feature or request label Oct 10, 2022
willGraham01 referenced this issue in brainglobe/cellfinder Sep 1, 2023
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.284](astral-sh/ruff-pre-commit@v0.0.282...v0.0.284)
- [github.com/pre-commit/mirrors-mypy: v1.4.1 → v1.5.0](pre-commit/mirrors-mypy@v1.4.1...v1.5.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@willGraham01 willGraham01 transferred this issue from brainglobe/cellfinder Dec 13, 2023
@willGraham01 willGraham01 added the migrated-from-cellfinder For issues that were inherited from the migration of cellfinder into this package. label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request migrated-from-cellfinder For issues that were inherited from the migration of cellfinder into this package.
Projects
Status: Backlog
Development

No branches or pull requests

2 participants