instamatic.acquireatitems
Classes
AcquireAtItems(ctrl, nav_items, acquire=None, pre_acquire=None, post_acquire=None, every_n={}, backlash=True)
Class to automated acquisition at many stage locations. The acquisition
functions must be callable (or a list of callables) that accept ctrl
as
an argument. In case a list of callables is given, they are excecuted in
sequence.
Parameters:
-
ctrl
–Used to control the stage and TEM
-
nav_items
(list
) –List of (x, y) / (x, y, z) coordinates (nm), or List of navigation items loaded from a
.nav
file. -
acquire
–Main function to call, must take
ctrl
as an argument -
pre_acquire
–This function is called before the first acquisition item is run.
-
post_acquire
–This function is run after the last acquisition item has run.
-
every_n
(dict
, default:{}
) –Dictionary with functions to run every
n
positions. Each value must be a callable or a list of callables taking actrl
object as its agument, e.g. every_n={2: every_2nd, 3: every_3rd}. These will be called in sequence after the main acquisition function. -
backlash
(bool
, default:True
) –Move the stage with backlash correction.
Returns:
-
aai
(`AcquireatItems`
) –Returns instance of AcquireAtItems, run
aai.start()
to begin.
Source code in src/instamatic/acquire_at_items.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
Functions
acquire(ctrl, i=1)
Handler to call functions at each stage position/NavItem (or at specific intervals).
Source code in src/instamatic/acquire_at_items.py
98 99 100 101 102 103 104 105 106 107 |
|
move_to_item(item)
Move the stage to the stage coordinates given by the NavItem.
Source code in src/instamatic/acquire_at_items.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
|
post_acquire(ctrl)
Handler to call functions after the last stage position/NavItem.
Source code in src/instamatic/acquire_at_items.py
93 94 95 96 |
|
pre_acquire(ctrl)
Handler to call functions the first stage position/NavItem.
Source code in src/instamatic/acquire_at_items.py
88 89 90 91 |
|
start(start_index=0)
Start serial acquisition protocol.
Parameters:
-
start_index
(int
, default:0
) –Start acquisition from this item.
Source code in src/instamatic/acquire_at_items.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
|
validate(funcs)
func
can be a callable or a list of callables.
Source code in src/instamatic/acquire_at_items.py
78 79 80 81 82 83 84 85 86 |
|