Section controller

class library.controller.sections_controller.SectionsController

Bases: object

Class for controlling sections

get_section_count(animal)
get_sections(animal: str, channel: int, debug: bool = False) list

The sections table is a view and it is already filtered by active and file_status = ‘good’ The ordering is important. This needs to come from the histology table.

Parameters:
  • animal – the animal to query

  • channel – 1 or 2 or 3.

  • debug – whether to print the raw SQL query

Returns:

list of sections in order