Skip to content

Commit

Permalink
Updated odin server test responses with commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgdls committed Dec 20, 2024
1 parent 449d88e commit 6661052
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 11 deletions.
79 changes: 75 additions & 4 deletions tests/input/one_node_fp_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "float"
},
"module": {
"value": "OdinDataAdapter",
"value": "FrameProcessorAdapter",
"writeable": false,
"type": "str"
},
Expand Down Expand Up @@ -97,7 +97,7 @@
"mean_process": 0
}
},
"timestamp": "2024-05-14T15:32:44.370875",
"timestamp": "2024-12-20T14:33:12.082339",
"error": [],
"connected": true
},
Expand Down Expand Up @@ -156,10 +156,14 @@
"blosc_compressor": 0,
"blosc_level": 0,
"blosc_shuffle": 0,
"dims": [
256,
512
],
"chunks": [
1,
512,
256
256,
512
]
},
"uid": {
Expand All @@ -185,6 +189,73 @@
}
}
}
},
"command": {
"dummy": {
"allowed": {
"value": [
"print"
],
"writeable": false,
"type": "list"
},
"execute": {
"value": "",
"writeable": true,
"type": "str"
}
},
"hdf": {
"allowed": {
"value": [
"start_writing",
"stop_writing"
],
"writeable": false,
"type": "list"
},
"execute": {
"value": "",
"writeable": true,
"type": "str"
}
}
}
},
"config": {
"hdf": {
"acquisition_id": {
"value": "",
"writeable": true,
"type": "str"
},
"frames": {
"value": 0,
"writeable": true,
"type": "int"
},
"file": {
"path": {
"value": "",
"writeable": true,
"type": "str"
},
"prefix": {
"value": "",
"writeable": true,
"type": "str"
},
"extension": {
"value": "h5",
"writeable": true,
"type": "str"
}
},
"write": {
"value": false,
"writeable": true,
"type": "bool"
}
}
}
}
120 changes: 113 additions & 7 deletions tests/input/two_node_fp_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "float"
},
"module": {
"value": "OdinDataAdapter",
"value": "FrameProcessorAdapter",
"writeable": false,
"type": "str"
},
Expand Down Expand Up @@ -109,7 +109,7 @@
"mean_process": 0
}
},
"timestamp": "2024-06-14T14:53:35.343227",
"timestamp": "2024-12-20T14:36:34.391594",
"error": [],
"connected": true
},
Expand Down Expand Up @@ -168,10 +168,14 @@
"blosc_compressor": 0,
"blosc_level": 0,
"blosc_shuffle": 0,
"dims": [
256,
512
],
"chunks": [
1,
512,
256
256,
512
]
},
"uid": {
Expand All @@ -197,6 +201,37 @@
}
}
}
},
"command": {
"dummy": {
"allowed": {
"value": [
"print"
],
"writeable": false,
"type": "list"
},
"execute": {
"value": "",
"writeable": true,
"type": "str"
}
},
"hdf": {
"allowed": {
"value": [
"start_writing",
"stop_writing"
],
"writeable": false,
"type": "list"
},
"execute": {
"value": "",
"writeable": true,
"type": "str"
}
}
}
},
"1": {
Expand Down Expand Up @@ -263,7 +298,7 @@
"mean_process": 0
}
},
"timestamp": "2024-06-14T14:53:35.363616",
"timestamp": "2024-12-20T14:36:34.422569",
"error": [],
"connected": true
},
Expand Down Expand Up @@ -322,10 +357,14 @@
"blosc_compressor": 0,
"blosc_level": 0,
"blosc_shuffle": 0,
"dims": [
256,
512
],
"chunks": [
1,
512,
256
256,
512
]
},
"uid": {
Expand All @@ -351,6 +390,73 @@
}
}
}
},
"command": {
"dummy": {
"allowed": {
"value": [
"print"
],
"writeable": false,
"type": "list"
},
"execute": {
"value": "",
"writeable": true,
"type": "str"
}
},
"hdf": {
"allowed": {
"value": [
"start_writing",
"stop_writing"
],
"writeable": false,
"type": "list"
},
"execute": {
"value": "",
"writeable": true,
"type": "str"
}
}
}
},
"config": {
"hdf": {
"acquisition_id": {
"value": "",
"writeable": true,
"type": "str"
},
"frames": {
"value": 0,
"writeable": true,
"type": "int"
},
"file": {
"path": {
"value": "",
"writeable": true,
"type": "str"
},
"prefix": {
"value": "",
"writeable": true,
"type": "str"
},
"extension": {
"value": "h5",
"writeable": true,
"type": "str"
}
},
"write": {
"value": false,
"writeable": true,
"type": "bool"
}
}
}
}

0 comments on commit 6661052

Please sign in to comment.