Skip to content

Commit

Permalink
High-level dataset library (#165)
Browse files Browse the repository at this point in the history
* only log downsampling for each MB ob precessed data

* log every gigabyte instead of every megabyte

* implement PR feedback

* WIP: implement high level dataset api

* WIP: implement TiffMag

* implement test for dataset api

* refactor high level dataset api

* add test data for WKDataset

* improve high level dataset api and add more tests

* use seed in tests to achieve deterministic behaviour

* implement a test for writing out of bounds with a wk_slice

* improve quality of dataset tests

* make naming schema of test files consistent

* implement PR feedback

* rename tiffs in testdata

* Improve error message and reformat code

* add type annotation

* rename Slice to View

* remove comments and reformat code

* add scikit-image (which is needed for skimage) as dependency

* update version of scikit-image

* fix relative paths in tests

* reformat code
  • Loading branch information
rschwanhold authored Jan 22, 2020
1 parent 8079c96 commit 24f3aca
Show file tree
Hide file tree
Showing 23 changed files with 1,936 additions and 2 deletions.
249 changes: 247 additions & 2 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cluster_tools = "1.46"
natsort = "^6.2.0"
psutil = "^5.6.7"
nibabel = "^2.5.1"
scikit-image = "^0.16.2"

[tool.poetry.dev-dependencies]
pylint = "2.3.1"
Expand Down
Binary file added testdata/simple_tiff_dataset/color/1/00000.tif
Binary file not shown.
Binary file added testdata/simple_tiff_dataset/color/1/00001.tif
Binary file not shown.
Binary file added testdata/simple_tiff_dataset/color/1/00002.tif
Binary file not shown.
Binary file added testdata/simple_tiff_dataset/color/1/00003.tif
Binary file not shown.
Binary file added testdata/simple_tiff_dataset/color/1/00004.tif
Binary file not shown.
Binary file added testdata/simple_tiff_dataset/color/1/00005.tif
Binary file not shown.
Binary file added testdata/simple_tiff_dataset/color/1/00006.tif
Binary file not shown.
Binary file added testdata/simple_tiff_dataset/color/1/00007.tif
Binary file not shown.
Binary file added testdata/simple_tiff_dataset/color/1/00008.tif
Binary file not shown.
Binary file added testdata/simple_tiff_dataset/color/1/00009.tif
Binary file not shown.
40 changes: 40 additions & 0 deletions testdata/simple_tiff_dataset/datasource-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"id": {
"name": "tiff_dataset_1",
"team": ""
},
"scale": [
1
],
"dataLayers": [
{
"name": "color",
"category": "color",
"elementClass": "uint8",
"num_channels": 1,
"boundingBox": {
"topLeft": [
0,
0,
0
],
"width": 265,
"height": 265,
"depth": 10
},
"wkwResolutions": [
{
"resolution": [
1,
1,
1
]
}
]
}
],
"grid_shape": [
0,
0
]
}
Binary file added testdata/simple_wk_dataset/color/1/header.wkw
Binary file not shown.
Binary file not shown.
38 changes: 38 additions & 0 deletions testdata/simple_wk_dataset/datasource-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id": {
"name": "simple_wk_dataset",
"team": ""
},
"scale": [
1
],
"dataLayers": [
{
"dataFormat": "wkw",
"name": "color",
"category": "color",
"elementClass": "uint8",
"num_channels": 3,
"boundingBox": {
"topLeft": [
0,
0,
0
],
"width": 24,
"height": 24,
"depth": 24
},
"wkwResolutions": [
{
"resolution": [
1,
1,
1
],
"cube_length": 32
}
]
}
]
}
Loading

0 comments on commit 24f3aca

Please sign in to comment.