Skip to content

Commit 60117df

Browse files
Merge pull request #4 from Glasgow-ICG/new-app
integrate flask web app developments
2 parents 56e4f29 + 36951a2 commit 60117df

21 files changed

+1643
-581
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
**/local-data/**
2+
**/period-data/**
23
output.log
4+
**/triggers.png
5+
**/accuracy.png
36

47
# Caches
58
**/.ipynb_checkpoints/**

.vscode/settings.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"python.linting.enabled": false,
32
"python.formatting.provider": "black",
43
"python.testing.pytestArgs": [
5-
"--cov-config=.coveragerc"
6-
"--cov=optical_gating_alignment"
7-
"--cov-report=xml"
4+
"--cov-config=.coveragerc",
5+
"--cov=optical_gating_alignment",
6+
"--cov-report=xml",
87
"tests",
98
],
109
"python.testing.unittestEnabled": false,

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The stage logic in both 'stage_test.py' and 'stage_control_functions.py' might a
102102

103103
5. Ensure the image capture software (QIClick for example) is ready to acquire a stack of images.
104104

105-
6. Select a frame from within the period to be used as the target frame (the frames are stored in a folder called 'period_data//' in the same directory as the 'cli.py' program. You can obtain a new reference period by entering -1.
105+
6. Select a frame from within the period to be used as the target frame (the frames are stored in a folder called 'period-data//' in the same directory as the 'cli.py' program. You can obtain a new reference period by entering -1.
106106

107107
7. The program will now attempt to capture a 3D gated image of the zebrafish heart (or other period object). The results will be stored with the image capture software.
108108

examples/default_settings.json

+21-20
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
{"brightfield_framerate": 80,
2-
"brightfield_resolution":128,
3-
"analyse_time":1000,
4-
"awb_mode":"off",
5-
"exposure_mode":"off",
6-
"shutter_speed":2500,
7-
"image_denoise":0,
8-
"laser_trigger_pin":22,
9-
"fluorescence_camera_pins":[8,10,12],
10-
"fluorescence_exposure":1e3,
11-
"usb_stages":null,
12-
"frame_buffer_length":100,
13-
"frame_num":0,
14-
"live":1,
15-
"output_mode":"5V_BNC_Only",
16-
"log":0,
17-
"predictionLatency":15,
18-
"updateAfterNTriggers":5
19-
}
20-
1+
{
2+
"brightfield_framerate": "89",
3+
"brightfield_resolution": "128",
4+
"analyse_time": "1000",
5+
"awb_mode": "off",
6+
"exposure_mode": "off",
7+
"shutter_speed": "2500",
8+
"image_denoise": "0",
9+
"laser_trigger_pin": "22",
10+
"fluorescence_camera_pins": "[8, 10, 12]",
11+
"fluorescence_exposure": "1000.0",
12+
"usb_stages": null,
13+
"frame_buffer_length": "100",
14+
"frame_num": "0",
15+
"live": "1",
16+
"output_mode": "5V_BNC_Only",
17+
"log": "0",
18+
"period_dir": "period-data/",
19+
"predictionLatency": "15",
20+
"updateAfterNTriggers": "5"
21+
}
+42-32
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
1-
{"brightfield_framerate": 80,
2-
"brightfield_resolution":128,
3-
"analyse_time":1000,
4-
"awb_mode":"off",
5-
"exposure_mode":"off",
6-
"shutter_speed":2500,
7-
"image_denoise":0,
8-
"laser_trigger_pin":22,
9-
"fluorescence_camera_pins":[8,10,12],
10-
"fluorescence_exposure":1e3,
11-
"usb_stages":{"usb_name":"/dev/tty/USB0",
12-
"usb_timeout":0.1,
13-
"usb_baudrate":57600,
14-
"usb_dataBits":8,
15-
"usb_parity":"N",
16-
"usb_XOnOff":1,
17-
"plane_address":1,
18-
"encoding":"utf-8",
19-
"terminators":[13,10],
20-
"increment":0.0005,
21-
"negative_limit":0,
22-
"positive_limit":0.075,
23-
"current_position":0},
24-
"frame_buffer_length":100,
25-
"frame_num":0,
26-
"live":1,
27-
"output_mode":"5V_BNC_Only",
28-
"log":0,
29-
"predictionLatency":15,
30-
"updateAfterNTriggers":5
31-
}
32-
1+
{
2+
"analyse_time": 1000,
3+
"awb_mode": "off",
4+
"brightfield_framerate": 891,
5+
"brightfield_resolution": 128,
6+
"exposure_mode": "off",
7+
"fluorescence_camera_pins": [
8+
8,
9+
10,
10+
12
11+
],
12+
"fluorescence_exposure": 1000.0,
13+
"frame_buffer_length": 100,
14+
"frame_num": 0,
15+
"image_denoise": 0,
16+
"laser_trigger_pin": 22,
17+
"live": 1,
18+
"log": 0,
19+
"output_mode": "5V_BNC_Only",
20+
"period_dir": "period-data/",
21+
"predictionLatency": 15,
22+
"shutter_speed": 2500,
23+
"updateAfterNTriggers": 5,
24+
"usb_stages": {
25+
"current_position": 0,
26+
"encoding": "utf-8",
27+
"increment": 0.0005,
28+
"negative_limit": 0,
29+
"plane_address": 1,
30+
"positive_limit": 0.075,
31+
"terminators": [
32+
13,
33+
12
34+
],
35+
"usb_XOnOff": 1,
36+
"usb_baudrate": 57600,
37+
"usb_dataBits": 8,
38+
"usb_name": "/dev/tty/USB0",
39+
"usb_parity": "Y",
40+
"usb_timeout": 0.1
41+
}
42+
}

examples/example_data_settings.json

+26-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1-
{"brightfield_framerate": 80,
2-
"brightfield_resolution":128,
3-
"analyse_time":1000,
4-
"awb_mode":"off",
5-
"exposure_mode":"off",
6-
"shutter_speed":2500,
7-
"image_denoise":0,
8-
"laser_trigger_pin":22,
9-
"fluorescence_camera_pins":[8,10,12],
10-
"fluorescence_exposure":1e3,
11-
"usb_stages":null,
12-
"frame_buffer_length":100,
13-
"frame_num":0,
14-
"live":0,
15-
"output_mode":"5V_BNC_Only",
16-
"log":0,
17-
"predictionLatency":15,
18-
"updateAfterNTriggers":5,
19-
"usb_stages":null,
20-
"path":"./examples/example_data.tif"
21-
}
22-
1+
{
2+
"analyse_time": 1000,
3+
"awb_mode": "off",
4+
"brightfield_framerate": 80,
5+
"brightfield_resolution": 115,
6+
"exposure_mode": "off",
7+
"fluorescence_camera_pins": [
8+
8,
9+
10,
10+
12
11+
],
12+
"fluorescence_exposure": 1000.0,
13+
"frame_buffer_length": 100,
14+
"frame_num": 0,
15+
"image_denoise": 0,
16+
"laser_trigger_pin": 22,
17+
"live": 0,
18+
"log": 0,
19+
"output_mode": "5V_BNC_Only",
20+
"path": "./examples/example_data.tif",
21+
"period_dir": "period-data/",
22+
"predictionLatency": 15,
23+
"shutter_speed": 2500,
24+
"updateAfterNTriggers": 500,
25+
"usb_stages": null
26+
}

0 commit comments

Comments
 (0)