Skip to content

Commit b09c57c

Browse files
authored
Merge pull request #43 from davidbrochart/update_xtensor
Update xtensor-zarr=0.0.7
2 parents b02f2b8 + 7b00c0e commit b09c57c

File tree

5 files changed

+9
-86
lines changed

5 files changed

+9
-86
lines changed

environment.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@ dependencies:
66
- maven
77
- make
88
- cmake
9-
- xtensor-zarr=0.0.4
9+
- xtensor-zarr >=0.0.8|=0.0.7=*_1
1010
- openimageio
11-
- zlib
12-
- blosc
1311
- nodejs
1412
- z5py >= 2.0.10
1513
- python == 3.7.9
1614
- scikit-image
1715
- pytest
18-
- zarr >= 2.8.0
16+
- zarr >= 2.8.3
1917
- pip
2018
- pandas
2119
- tabulate

generate_data/js/package-lock.json

+1-80
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generate_data/js/src/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import fs from "fs";
22
import p from "path";
3-
import { PNG } from "pngjs";
3+
import pkg from "pngjs";
4+
const { PNG } = pkg;
45

56
import { openGroup, NestedArray, slice } from "zarr";
67
import FSStore from "./fsstore.js";
@@ -37,7 +38,7 @@ async function generateZarrFormat(codecIds = ["gzip", "blosc", "zlib", null]) {
3738
const path = p.join("..", "..", "data", "js.zr");
3839
const img = imread(p.join("..", "..", "data", "reference_image.png"));
3940

40-
fs.rmSync(path, { recursive: true, force: true });
41+
fs.rmdirSync(path, { recursive: true, force: true });
4142
const grp = await open(path);
4243
for (const id of codecIds) {
4344
const config = id ? STR_TO_COMPRESSOR[id] : null;

generate_data/xtensor_zarr/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ endif()
8282
target_link_libraries(run_xtensor_zarr
8383
PUBLIC
8484
xtensor-zarr
85+
xtensor-zarr-gdal
8586
${CMAKE_DL_LIBS}
8687
${CMAKE_THREAD_LIBS_INIT}
8788
)

generate_data/xtensor_zarr/generate_data.sh

+2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ cd "${0%/*}"
55
rm -rf build
66
mkdir build
77
cd build
8+
export LDFLAGS="${LDFLAGS} -Wl,-rpath,$CONDA_PREFIX/lib -Wl,-rpath,$PWD"
9+
export LINKFLAGS="${LDFLAGS}"
810
cmake .. -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_INSTALL_LIBDIR=lib
911
make run

0 commit comments

Comments
 (0)