hardware_robustness
plantimager.cli.hardware_robustness Link
_get_diff_between_dict Link
_get_diff_between_dict(d1, d2)
Return the entries that are different between two dictionaries.
Source code in plantimager/cli/hardware_robustness.py
171 172 173 174 175 176 |
|
check_scan_configs Link
check_scan_configs(scans_list)
Check the scan configuration is the same as the reference.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scans_list
|
list of plantsb.FSDB.Scan
|
List of |
required |
Returns:
Type | Description |
---|---|
bool
|
|
Examples:
>>> import os, toml
>>> from pathlib import Path
>>> from plantdb.fsdb import FSDB
>>> db = FSDB(os.environ.get('ROMI_DB', '/home/aurele/Downloads/20221010_Jo/Scans/'))
>>> db.connect() # print the list of scan dataset names
>>> check_scan_configs(db.get_scans())
>>> db.disconnect()
Source code in plantimager/cli/hardware_robustness.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
|
make_animation Link
make_animation(db_location, imgs, img_fname, delay)
Make the animation as a sequence of images taken at the same position.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
db_location
|
Path or str
|
Path to the database directory. |
required |
imgs
|
dict
|
|
required |
img_fname
|
str
|
Name (without extension) of the image (from the . |
required |
delay
|
int
|
The delay between successive frames |
required |
Source code in plantimager/cli/hardware_robustness.py
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
|
romi_run_task Link
romi_run_task(scan_path, task_name, cfg_file)
Run configured pipeline for given task on a scan.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scan_path
|
Path or str
|
Path to the scan dataset directory. |
required |
task_name
|
str
|
Name of the ROMI task to run. |
required |
cfg_file
|
str
|
Path to the configuration file to use to run the pipeline ( |
required |
Source code in plantimager/cli/hardware_robustness.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
|