Skip to content

Commit

Permalink
ENH: Adjust to new version of tensorstore: zip renamed into zip_memory
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Sep 12, 2023
1 parent d2dad2c commit 98a43d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='itk-ioomezarrngff',
version='0.1.9',
version='0.2.0',
author='Insight Software Consortium',
author_email='itk+community@discourse.itk.org',
packages=['itk'],
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ include(FetchContent)
FetchContent_Declare(
tensorstore
GIT_REPOSITORY https://github.com/InsightSoftwareConsortium/tensorstore
GIT_TAG aaf8b85ad123e10482f6917f9880d33972814b53
GIT_TAG 8517bf4987e44035056cb61732d144a827e9d50e
)
FetchContent_MakeAvailable(tensorstore)
unset(CMAKE_FOLDER)
Expand Down
4 changes: 2 additions & 2 deletions src/itkOMEZarrNGFFImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ getKVstoreDriver(std::string path)
}
if (path.substr(path.size() - 4) == ".zip" || path.substr(path.size() - 7) == ".memory")
{
return "zip";
return "zip_memory";
}
return "file";
}
Expand Down Expand Up @@ -816,7 +816,7 @@ OMEZarrNGFFImageIO::Write(const void * buffer)
{
// Attempt to read a non-existent file from the in-memory zip to close the current one
nlohmann::json temp;
bool wasRead = jsonRead(m_EmptyZipFileName + "/non-existent.json", temp, "zip");
bool wasRead = jsonRead(m_EmptyZipFileName + "/non-existent.json", temp, "zip_memory");
assert(wasRead == false);
}
}
Expand Down

0 comments on commit 98a43d0

Please sign in to comment.