Elastix controller
- class library.controller.elastix_controller.ElastixController
Bases:
objectController class for the elastix table
- Args:
Controller (Class): Parent class of sqalchemy session
- add_elastix_row(animal, section, rotation, xshift, yshift, metric=0)
adding a row in the elastix table
- Parameters
animal – (str) Animal ID
section – (str) Section Number
rotation – float
xshift – float
yshift – float
- check_elastix_metric_row(animal, section)
checks that a given elastix row exists in the database
- Parameters
(str) (animal) – Animal ID
(int) (section) – Section Number
- Return bool
if the row in question exists
- check_elastix_row(animal, section)
checks that a given elastix row exists in the database
- Parameters
animal – (str): Animal ID
- Section (int)
Section Number
- Return boolean
if the row in question exists
- get_elastix_row(animal, section)
gets a given elastix row exists in the database
- Parameters
animal – (str): Animal ID
- Section (int)
Section Number
- Iteration (int)
Iteration, which pass are we working on.
- Return boolean
if the row in question exists
- update_elastix_row(animal, section, updates)
Update a row
- Parameters
animal – (str) Animal ID
section – (str) Section Number
updates – dictionary of column:values to update