Elements#
Module that contains imports and activations for datajoint elements schemas.
Other schema should be written elsewhere, presumably in a schema module, and
then given a central activate
function..
Don’t be fooled by the “module imported but not used” errors your linter will give you, for some reason you do have to import Subject et al even if they aren’t used directly. Don’t ask me why.
- wehrdj.elements.activate()[source]#
Call the activation functions from each of the imported elements. Must have already called
wehrdj.connect()
Currently:
element_lab.lab
element_animal.subject
element_animal.genotyping
element_session.session
It uses
wehrdj.elements
as the linking module, which I believe is necessary because it looks for a particular context when instantiating the schema? Not really sure on that one.