forked from zarr-developers/zarr-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from scalableminds/test-zarrita-compatibility
Tests for zarrita compatibility
- Loading branch information
Showing
34 changed files
with
1,103 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,5 +36,6 @@ build/ | |
|
||
|
||
### Custom ### | ||
/testdata | ||
/testdata/l4_sample | ||
/testoutput | ||
/venv_zarrita |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
src/main/java/dev/zarr/zarrjava/v3/codec/ArrayArrayCodec.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
package dev.zarr.zarrjava.v3.codec; | ||
|
||
import dev.zarr.zarrjava.ZarrException; | ||
import dev.zarr.zarrjava.v3.ArrayMetadata.CoreArrayMetadata; | ||
import ucar.ma2.Array; | ||
|
||
public interface ArrayArrayCodec extends Codec { | ||
public abstract class ArrayArrayCodec extends Codec { | ||
|
||
Array encode(Array chunkArray, CoreArrayMetadata arrayMetadata) | ||
protected abstract Array encode(Array chunkArray) | ||
throws ZarrException; | ||
|
||
Array decode(Array chunkArray, CoreArrayMetadata arrayMetadata) | ||
protected abstract Array decode(Array chunkArray) | ||
throws ZarrException; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
src/main/java/dev/zarr/zarrjava/v3/codec/BytesBytesCodec.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package dev.zarr.zarrjava.v3.codec; | ||
|
||
import dev.zarr.zarrjava.ZarrException; | ||
import dev.zarr.zarrjava.v3.ArrayMetadata.CoreArrayMetadata; | ||
|
||
import java.nio.ByteBuffer; | ||
|
||
public interface BytesBytesCodec extends Codec { | ||
public abstract class BytesBytesCodec extends Codec { | ||
|
||
ByteBuffer encode(ByteBuffer chunkBytes, CoreArrayMetadata arrayMetadata) | ||
throws ZarrException; | ||
protected abstract ByteBuffer encode(ByteBuffer chunkBytes) throws ZarrException; | ||
|
||
ByteBuffer decode(ByteBuffer chunkBytes, CoreArrayMetadata arrayMetadata) | ||
throws ZarrException; | ||
public abstract ByteBuffer decode(ByteBuffer chunkBytes) throws ZarrException; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.