You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling the plug-in reader function on url results in error message instead of a file download:
File~/Documents/GitHub/napari-flim-phasor-plotter/src/napari_flim_phasor_plotter/_reader.py:25, innapari_get_reader(path='https://zenodo.org/record/7656540/files/2a_FLIM_single_image.ptu')
12"""A basic implementation of a Reader contribution. 13 14 Parameters (...) 23 same path or list of paths, and returns a list of layer data tuples. 24 """--->25file_extension=get_most_frequent_file_extension(path)
path='https://zenodo.org/record/7656540/files/2a_FLIM_single_image.ptu'26# If we recognize the format, we return the actual reader functionFile~/Documents/GitHub/napari-flim-phasor-plotter/src/napari_flim_phasor_plotter/_reader.py:126, inget_most_frequent_file_extension(path=PosixPath('https:/zenodo.org/record/7656540/files/2a_FLIM_single_image.ptu'))
125# Get most frequent file entension in path-->126most_frequent_file_type=max(set(suffixes), key=suffixes.count)
127returnmost_frequent_file_typeUnboundLocalError: localvariable'suffixes'referencedbeforeassignment
The text was updated successfully, but these errors were encountered:
Thanks for reporting! We need to add a condition that handles urls, nice catch!
Maybe using urlparse, from which we could get a path and then the file extension if it is a single file. It it is a .zip, then it is probably a folder.
Calling the plug-in reader function on url results in error message instead of a file download:
The text was updated successfully, but these errors were encountered: