Load Exampledata: Zip is downloaded but not fully unziped to enmapbox/exampledata

Issue #809 resolved
Fabian Thiel created an issue

affected: current develop version (Version 3.9.20211018T093436.develop)

Comments (11)

  1. Fabian Thiel reporter
    • Zip file lies in enmapboxplugin/enmapbox
    • enmapboxplugin/enmapbox/exampledata contains

      init.py
      pycache
      enmap_berlin.hdr
      enmap_berlin.qml
      hires_berlin.hdr
      library_berlin.hdr
      library_berlin.json
      library_berlin.qml
      library_berlin.sli

  2. Benjamin Jakimow

    This is caused by @Andreas Janz 's changes of internal zip structure, which now does not include the /enmapboxtestdata/folder anymore.

  3. Benjamin Jakimow

    @Andreas Janz there are several files which still use "import enmapboxtestdata" instead import enmapbox.exampledata

  4. Andreas Janz

    I think we decided that together, to change the folder name, but anyway. Example data is now located under \enmap-box\enmapbox\exampledata

    In the ZIP file you now also have the exampledata subfolder:

    I would suggest to also change that in the downloader code.

  5. Andreas Janz

    @Andreas Rabe

    there are several files which still use "import enmapboxtestdata" instead import enmapbox.exampledata

    Are you sure? Which tests do you mean? Haven’t we renamed the unittest files to be imported via this package? Not quit sure if I miss something here. How would you import unit test data? I’m using the enmapboxtestdata module for that:

    QGISPlugIns/enmap-box/tests/src/enmapboxtestdata.py

    I guess that is what you are refering to, right?

  6. Andreas Janz

    Gotcha! Those are all deprecated hubdc/hubflow unittests or example snippets. Those will be gone in v3.10/11.

  7. Log in to comment