palvarezc / cavendish-particle-tracks

A Napari plugin to perform a simple particle tracking analysis for the Cavendish laboratory's Undergraduate Part II Particle Tracks experiment.
https://palvarezc.github.io/cavendish-particle-tracks/
Other
2 stars 0 forks source link

Raise warning when trying to load only one image per view folder and handle the exception #156

Closed palvarezc closed 1 month ago

palvarezc commented 1 month ago
  Created some test data, but found a different problem on loading:

  ```
   UnknownFormatError: Could not detect your file type because it did not have an extension. Try specifying a loader class, e.g. Video(C:/Users/pa459/Documents/data\VIEW1\/*)
  ```

  which is strange as this is what the tests do, and the tests pass in this machine. Something going on between `\` and `/`? But for @Joseph-Garvey this has been working on Windows all along.... I am a bit puzzled. 

  Edit: This error appears when there is only one image in each view folder. The way we import the data with `dask_image` requires more than one. Should add a warning of some kind!

Originally posted by @palvarezc in https://github.com/palvarezc/cavendish-particle-tracks/issues/146#issuecomment-2370996719