Ejemplo n.º 1
0
#!/usr/local/bin/python3
from pipeline import experiment, reso, meso, fuse, stack, pupil, treadmill, posture
from stimulus import stimulus
from stimline import tune

# # Scans
# for priority in range(120, -130, -10):  # highest to lowest priority
#     next_scans = (experiment.AutoProcessing() & 'priority > {}'.format(priority) &
#                   (experiment.Scan() & 'scan_ts > "2019-01-01 00:00:00"'))

next_scans = (experiment.AutoProcessing() &
              (experiment.Scan() & 'scan_ts > "2019-01-01 00:00:00"'))

# stimulus
stimulus.Sync().populate(next_scans, reserve_jobs=True, suppress_errors=True)
stimulus.BehaviorSync().populate(next_scans,
                                 reserve_jobs=True,
                                 suppress_errors=True)

# treadmill, pupil, posture
treadmill.Treadmill().populate(next_scans,
                               reserve_jobs=True,
                               suppress_errors=True)
pupil.Eye().populate(next_scans, reserve_jobs=True, suppress_errors=True)
pupil.FittedPupil().populate(next_scans,
                             reserve_jobs=True,
                             suppress_errors=True)
posture.Posture().populate(next_scans, reserve_jobs=True, suppress_errors=True)

# stack
stack.StackInfo().populate(stack.CorrectionChannel(),
Ejemplo n.º 2
0
from pipeline import experiment
import time

try:
    from stimline import tune
except ImportError:
    print('Warning: Skipping pixelwise maps. Install stimulus (cajal/stimuli) and stimline'
         ' (cajal/stimulus-pipeline).')
    POPULATE_TUNE = False
else: # import worked fine
    POPULATE_TUNE = True

while True:
    # Scans
    for priority in range(120, -130, -10): # highest to lowest priority
        next_scans = experiment.AutoProcessing() & 'priority > {}'.format(priority)

        # treadmill
        treadmill.Sync().populate(next_scans, reserve_jobs=True, suppress_errors=True)
        treadmill.Treadmill().populate(next_scans, reserve_jobs=True, suppress_errors=True)

        # pupil
        pupil.Eye().populate(next_scans, reserve_jobs=True, suppress_errors=True)

        # posture
        posture.Posture().populate(next_scans, reserve_jobs=True, suppress_errors=True)

        # Stacks
        stack.StackInfo().populate(stack.CorrectionChannel(), reserve_jobs=True, suppress_errors=True) #TODO: stackAutoProcessing
        stack.Quality().populate(reserve_jobs=True, suppress_errors=True)
        stack.RasterCorrection().populate(reserve_jobs=True, suppress_errors=True)
Ejemplo n.º 3
0
dj.config['database.prefix'] = os.environ.get('DJ_PREFIX', '')
from pipeline import mice, experiment, meso, odor, treadmill

# ---

mice.Mice.proj()

experiment.Session.proj()

experiment.Session.proj() - odor.MesoMatch()

experiment.Scan.proj()

experiment.Scan.proj() - odor.MesoMatch()

experiment.AutoProcessing()

experiment.AutoProcessing() - odor.MesoMatch()

experiment.AutoProcessing.proj() - meso.ScanInfo.proj()

experiment.AutoProcessing.proj() - meso.Quality()

meso.ScanInfo.Field.proj() - meso.CorrectionChannel.proj()

meso.ScanInfo.Field.proj() - meso.RasterCorrection.proj()

meso.ScanInfo.Field.proj() - meso.MotionCorrection.proj()

experiment.AutoProcessing.proj() - meso.Stitch.proj()