Run Modules Module
Run TopoStats modules.
This provide entry points for running TopoStats as a command line programme. Each function within this module is a wrapper which runs various functions from the ''processing'' module in parallel.
_log_setup(config, args, img_files)
Log the current configuration.
Parameters
config : dict Dictionary of configuration options. args : argparse.Namespace | None Arguments function was invoked with. img_files : dict Dictionary of image files that have been found.
Source code in topostats/run_modules.py
_parse_configuration(args=None)
Load configurations, validate and check run steps are consistent.
Parameters
args : argparse.Namespace | None Arguments.
Returns
tuple[dict, dict] Returns the dictionary of configuration options and a dictionary of image files found on the input path.
Source code in topostats/run_modules.py
_set_logging(log_level)
Set the logging level.
Parameters
log_level : str String for the desired log-level.
Source code in topostats/run_modules.py
disordered_tracing(args=None)
Load files from disk and run grainstats.
Parameters
args : None Arguments.
Source code in topostats/run_modules.py
filters(args=None)
Load files from disk and run filtering.
Parameters
args : None Arguments.
Source code in topostats/run_modules.py
grains(args=None)
Load files from disk and run grain finding.
Parameters
args : None Arguments.
Source code in topostats/run_modules.py
grainstats(args=None)
Load files from disk and run grainstats.
Parameters
args : None Arguments.
Source code in topostats/run_modules.py
nodestats(args=None)
Load files from disk and run grainstats.
Parameters
args : None Arguments.
Source code in topostats/run_modules.py
ordered_tracing(args=None)
Load files from disk and run grainstats.
Parameters
args : None Arguments.
Source code in topostats/run_modules.py
process(args=None)
Find and process all files.
Parameters
args : None Arguments.
Source code in topostats/run_modules.py
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 | |
reconcile_config_args(args)
Reconcile command line arguments with the default configuration.
Command line arguments take precedence over the default configuration. If a partial configuration file is specified (with '-c' or '--config-file') the defaults are over-ridden by these values (internally the configuration dictionary is updated with these values). Any other command line arguments take precedence over both the default and those supplied in a configuration file (again the dictionary is updated).
The final configuration is validated before processing begins.
Parameters
args : argparse.Namespace Command line arguments passed into TopoStats.
Returns
dict The configuration dictionary.
Source code in topostats/run_modules.py
splining(args=None)
Load files from disk and run grainstats.
Parameters
args : None Arguments.
Source code in topostats/run_modules.py
handler: python options: docstring_style: numpy rendering: show_signature_annotations: true