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.
* add zarrita python script * add testReadFromZarrita * renamed zarrita_write * add testWriteToZarrita * parameterized codecs in testReadFromZarrita * fixed camelcase in zarr.json * add venv for executing zarrita in linux * adapt test-setup for linux * adapt test-setup for linux * fix testReadFromZarrita for gzip * parameterize codecs in testReadFromZarrita * remove unused imports * add testCodecsWriteRead * reformat * remove unnecessary argument * add testCodecTranspose * start remove constants "C" adn "F" from Transpose Codec's order * add CoreArrayMetadata to codec object instead of passing as argument in encode and decode remove transpose order "F" and "C" * remove wrong dependency * set fail-fast: false * specify testSourceDirectory * added property index_location to ShardingIndexedCodec * add indexLocation in ShardingCodec. * change junit version for TestUtils * remove creation of dir testdata * update dependencies for JUnit 5 * install zarrita in CI * correct python version, maven no-transfer-progress * add venv for executing zarrita to CI * add /venv_zarrita to .gitignore * remove deprecated zarrita venv * test CI * fix tests for windows * update python path for windows in ci.yml * add Development Start-Guide to Run Tests Locally * correct Development Start-Guide to python3.11 * add support of shardingCodec indexLocation=start * code cleanup * add testZstdLibrary * fix Zstd compression and decompression * cleanup code * cleanup code * remove unused method * include crc32c codec into tests * incorporate feedback for java version and merge tests * add more variation to codec-configuration in tests with zarrita * fix BloscCodec with shuffle = "shuffle"
- Loading branch information
1 parent
d30475a
commit adc45ae
Showing
34 changed files
with
1,100 additions
and
429 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.