warming up your workspace

Python Foundations through Neuroscience

Never written code before? Start here. You will learn the basics of Python, output, variables, types, decisions, loops, and functions, through neurons, spikes, and firing rates. By the end you are ready for Project 1.

First words

  1. Mark the start of a recording
  2. Display an illustrative membrane potential
  3. Explain what a spike count means
  4. Label a cell type with a string
  5. Calculate an average firing rate

Remembering things

  1. Name a voltage value
  2. Replace a stored value
  3. Distinguish counts, rates and region labels
  4. Read a count from text
  5. Let names explain a rate calculation

Making choices

  1. Ask whether a value exceeds a threshold
  2. Show a message only when a flag is true
  3. Choose one of two status messages
  4. Place a rate in an illustrative band
  5. Combine two Boolean conditions

Doing it again

  1. Count down to a reset message
  2. Visit a known set of simulation steps
  3. Accumulate counts across bins
  4. Stop after the required work is complete
  5. Visit each electrode position in a small grid

Many values and reuse

  1. Keep several rates in one ordered list
  2. Track the largest observed rate
  3. Package a reusable calculation
  4. Calculate rates for different observations
  5. Assemble a peak-rate report

Explore the full field