Skip to content

Commit 09080d3

Browse files
committed
Fix JS
1 parent 3ff9fce commit 09080d3

File tree

3 files changed

+5
-86
lines changed

3 files changed

+5
-86
lines changed

environment.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ dependencies:
66
- maven
77
- make
88
- cmake
9-
- xtensor-zarr=0.0.7
10-
- gdal
9+
- xtensor-zarr=0.0.7=*_1
1110
- openimageio
12-
- zlib
13-
- blosc
1411
- nodejs
1512
- z5py >= 2.0.10
1613
- python == 3.7.9

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;

0 commit comments

Comments
 (0)