config¶
Beamline or User Configuration Options
C
¶
Names used in config object
Source code in mmg_toolbox/beamline_metadata/config.py
add_roi(config, name, cen_i, cen_j, wid_i=30, wid_j=30, image_name='IMAGE')
¶
Create an image ROI (region of interest) and update the config
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict
|
dict of config values |
required |
name
|
str
|
string name of the ROI |
required |
cen_i
|
int | str
|
central pixel index along first dimension, can be callable string |
required |
cen_j
|
int | str
|
central pixel index along second dimension, can be callable string |
required |
wid_i
|
int
|
full width along first dimension, in pixels |
30
|
wid_j
|
int
|
full width along second dimension, in pixels |
30
|
image_name
|
str
|
string name of the image |
'IMAGE'
|
Source code in mmg_toolbox/beamline_metadata/config.py
beamline_config(beamline=None)
¶
Returns the default beamline config dict