pyxem / kikuchipy

Toolbox for analysis of electron backscatter diffraction (EBSD) patterns
https://kikuchipy.org
GNU General Public License v3.0
78 stars 30 forks source link

Error with `kikuchipy.data.si_wafer` #654

Closed ericpre closed 8 months ago

ericpre commented 9 months ago

Different than the one mentioned in https://github.com/pyxem/pyxem/pull/956!

import kikuchipy
print(kikuchipy.__version__)
kikuchipy.data.si_wafer(allow_download=True)

Kikuchipy version is 0.8.7

Give the following error:


  File ~\Dev\kikuchipy\kikuchipy\data\_data.py:542 in si_wafer
    file_path = SiWafer.fetch_file_path(allow_download, show_progressbar)

  File ~\Dev\kikuchipy\kikuchipy\data\_data.py:829 in fetch_file_path
    file_path = self.fetch_file_path_from_collection(downloader)

  File ~\Dev\kikuchipy\kikuchipy\data\_data.py:771 in fetch_file_path_from_collection
    file_paths = marshall.fetch(

  File ~\Dev\pooch\pooch\core.py:561 in fetch
    self._assert_file_in_registry(fname)

  File ~\Dev\pooch\pooch\core.py:608 in _assert_file_in_registry
    raise ValueError(f"File '{fname}' is not in the registry.")

ValueError: File 'data\ebsd_si_wafer.zip' is not in the registry.
hakonanes commented 9 months ago

Thank you for reporting, @ericpre. I cannot reproduce this in a clean conda env with Python 3.11.6 and Pooch 1.7 on Ubuntu.

Now, data/ebsd_si_wafer.zip is definitely in the registry... Might it be that Pooch's check doesn't take different slashes into account? I'll see if I can debug this on a Windows machine.