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, iteration=0)
adding a row in the elastix table
- Parameters:
animal – (str) Animal ID
section – (str) Section Number
rotation – float
xshift – float
yshift – float
- Iteration (int):
Iteration, which pass are we working on.
- check_elastix_metric_row(animal, section, iteration=0)
checks that a given elastix row exists in the database
- Parameters:
(str) (animal) – Animal ID
(int) (section) – Section Number
- Iteration (int):
Iteration, which pass are we working on.
- Return bool:
if the row in question exists
- check_elastix_row(animal, section, iteration=0)
checks that 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
- get_elastix_row(animal, section, iteration=0)
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, iteration, updates)
Update a row
- Parameters:
animal – (str) Animal ID
section – (str) Section Number
updates – dictionary of column:values to update