Skip to content

Commit

Permalink
Merge pull request ome#76 from will-moore/schemas_v0.1_v0.2
Browse files Browse the repository at this point in the history
Schemas v0.1 v0.2
  • Loading branch information
joshmoore authored Dec 13, 2021
2 parents 37a4238 + 4aeb82b commit a20dd71
Show file tree
Hide file tree
Showing 55 changed files with 1,403 additions and 51 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
strategy:
matrix:
ngff:
- '0.1'
- '0.2'
- '0.3'
runs-on: ubuntu-20.04
steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*/.DS_Store
**/__pycache__/*
31 changes: 31 additions & 0 deletions 0.1/examples/image/invalid/invalid_channels_color.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"@type": "ngff:Image",
"multiscales": [
{
"version": "0.1",
"name": "example",
"datasets": [
{
"path": "path/to/0"
}
]
}
],
"omero": {
"channels": [
{
"active": true,
"coefficient": 1.0,
"color": 255,
"family": "linear",
"label": "1234",
"window": {
"end": 1765.0,
"max": 2555.0,
"min": 5.0,
"start": 0.0
}
}
]
}
}
31 changes: 31 additions & 0 deletions 0.1/examples/image/invalid/invalid_channels_window.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"@type": "ngff:Image",
"multiscales": [
{
"version": "0.2",
"name": "example",
"datasets": [
{
"path": "path/to/0"
}
]
}
],
"omero": {
"channels": [
{
"active": true,
"coefficient": 1.0,
"color": "ff0000",
"family": "linear",
"label": "1234",
"window": {
"end": "100",
"max": 2555.0,
"min": 5.0,
"start": 0.0
}
}
]
}
}
17 changes: 17 additions & 0 deletions 0.1/examples/image/invalid/invalid_path.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@type": "ngff:Image",
"multiscales": [
{
"version": "0.1",
"name": "example",
"datasets": [
{
"path": "path/to/0"
},
{
"path": 0
}
]
}
]
}
9 changes: 9 additions & 0 deletions 0.1/examples/image/invalid/missing_datasets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"@type": "ngff:Image",
"multiscales": [
{
"version": "0.1",
"name": "example"
}
]
}
17 changes: 17 additions & 0 deletions 0.1/examples/image/invalid/missing_path.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@type": "ngff:Image",
"multiscales": [
{
"version": "0.1",
"name": "example",
"datasets": [
{
"foo": "path/to/0"
},
{
"path": "1"
}
]
}
]
}
15 changes: 15 additions & 0 deletions 0.1/examples/image/invalid/no_datasets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"@type": "ngff:Image",
"multiscales": [
{
"version": "0.1",
"name": "example",
"datasets": [],
"axes": [
"z",
"y",
"x"
]
}
]
}
4 changes: 4 additions & 0 deletions 0.1/examples/image/invalid/no_multiscales.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"@type": "ngff:Image",
"multiscales": []
}
12 changes: 12 additions & 0 deletions 0.1/examples/image/valid/image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@type": "ngff:Image",
"multiscales": [
{
"datasets": [
{"path": "path/to/0"},
{"path": "1"},
{"path": "2"}
]
}
]
}
58 changes: 58 additions & 0 deletions 0.1/examples/image/valid/image_complete.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"@id": "#my-image",
"@type": "ngff:Image",
"multiscales": [
{
"@id": "#my-pyramid",
"version": "0.1",
"name": "example",
"datasets": [
{
"path": "path/to/0"
},
{
"path": "1"
},
{
"path": "2"
}
],
"type": "gaussian",
"metadata": {
"method": "skimage.transform.pyramid_gaussian",
"version": "0.16.1",
"args": [
"true",
"false"
],
"kwargs": {
"multichannel": true
}
}
}
],
"omero": {
"id": 1,
"version": "0.1",
"channels": [
{
"active": true,
"color": "0000FF",
"family": "linear",
"inverted": false,
"label": "1234",
"window": {
"end": 1765.0,
"max": 2555.0,
"min": 5.0,
"start": 0.0
}
}
],
"rdefs": {
"defaultZ": 0,
"defaultT": 0,
"model": "color"
}
}
}
28 changes: 28 additions & 0 deletions 0.1/examples/image/valid/image_complete_no_omero.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"@id": "top",
"@type": "ngff:Image",
"multiscales": [
{
"@id": "inner",
"version": "0.1",
"name": "example",
"datasets": [
{
"path": "path/to/0"
}
],
"type": "gaussian",
"metadata": {
"method": "skimage.transform.pyramid_gaussian",
"version": "0.16.1",
"args": [
"true",
"false"
],
"kwargs": {
"multichannel": true
}
}
}
]
}
18 changes: 18 additions & 0 deletions 0.1/examples/image/valid/missing_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"@type": "ngff:Image",
"multiscales": [
{
"version": "0.1",
"datasets": [
{
"path": "path/to/0"
}
],
"type": "gaussian",
"metadata": {
"method": "skimage.transform.pyramid_gaussian",
"version": "0.16.1"
}
}
]
}
20 changes: 20 additions & 0 deletions 0.1/examples/image/valid/missing_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"@id": "#my-image",
"@type": "ngff:Image",
"multiscales": [
{
"@id": "#my-pyramid",
"name": "example",
"datasets": [
{
"path": "path/to/0"
}
],
"metadata": {
"method": "skimage.transform.pyramid_gaussian",
"version": "0.16.1"
},
"version": "0.1"
}
]
}
39 changes: 39 additions & 0 deletions 0.1/examples/image/valid/missing_version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"@id": "#my-image",
"@type": "ngff:Image",
"multiscales": [
{
"@id": "#my-pyramid",
"name": "example",
"datasets": [
{
"path": "path/to/0"
}
],
"type": "gaussian",
"metadata": {
"method": "skimage.transform.pyramid_gaussian",
"version": "0.16.1"
}
}
],
"omero": {
"id": 1,
"version": "0.1",
"channels": [
{
"active": true,
"color": "0000FF",
"family": "linear",
"inverted": false,
"label": "1234",
"window": {
"end": 1765.0,
"max": 2555.0,
"min": 5.0,
"start": 0.0
}
}
]
}
}
16 changes: 16 additions & 0 deletions 0.1/examples/plate/invalid/empty_wells.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"plate": {
"columns": [
{
"name": "1"
}
],
"rows": [
{
"name": "A"
}
],
"version": "0.1",
"wells": []
}
}
31 changes: 31 additions & 0 deletions 0.1/examples/plate/invalid/invalid_fieldcount.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"plate": {
"columns": [
{
"name": "1"
}
],
"field_count": 1,
"name": "plate name",
"rows": [
{
"name": "A"
}
],
"version": "0.1",
"wells": [
{
"path": "A/3"
}
],
"acquisitions": [
{
"id": 1,
"maximumfieldcount": "2"
},
{
"id": 2
}
]
}
}
Loading

0 comments on commit a20dd71

Please sign in to comment.