-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug_script.py
More file actions
37 lines (31 loc) · 986 Bytes
/
Copy pathdebug_script.py
File metadata and controls
37 lines (31 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# example debug script for working without a GUI on e.g. the Z mapping
from PYME.recipes import recipe, modules
yaml = r"""- localisations.AddPipelineDerivedVars:
inputEvents: ''
inputFitResults: _FitResults
outputLocalizations: Localizations
- localisations.ProcessColour:
input: Localizations
output: colour_mapped
- tablefilters.FilterTable:
filters:
error_x:
- 0
- 30
error_y:
- 0
- 30
sig:
- 150
- 275
inputName: colour_mapped
outputName: filtered_localizations
- double_helix.DoubleHelixMapZ:
calibration_location: C:\Users\aesb\PYMEData\Users\aesb\Downloads\analysis\red_channel.dh_json
input_name: filtered_localizations
output_name: dh_mapped
"""
rec = recipe.Recipe.fromYAML(yaml)
filename = 'C:\\Users\\aesb\\PYMEData\\Users\\aesb\\Downloads\\analysis\\FOV2_ER_500mW_647_p02exp_Gain300_X2.h5r'
rec.loadInput(filename, '')
rec.execute()