Skip to content

How to enable compression support? #56

@dzenanz

Description

@dzenanz
  xt::xzarr_file_system_store store(this->m_FileName); // version 2 file
  auto h = xt::get_zarr_hierarchy(store);
  //std::cout << "h.get_nodes " << h.get_nodes().dump(); // attempts to read non-existent file
  //std::cout << "h.get_children " << h.get_children("/").dump(); // attempts to read non-existent file
  std::cout << "h.get_array " << h.get_array("spectra"); // Unkown compressor type: blosc

Stepping through the code using debugger, I noticed that instance().m_builders only contains one entry: binary. As I had to specify the paths to zlib and blosc, I went back to CMake configurations, and noticed that xtensor-io has a few have settings so I enabled HAVE_Blosc, HAVE_GDAL and HAVE_ZLIB. After an incremental build of xtensor-io and xtensor-zarr, now instance().m_builders contains no entries. What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions