We have constructed mathematical models of the electrical activity of two hypothalamic supraoptic neuro-secretory cell-types, and we support our models with new calcium imaging and in vitro electrophysiological data. These cells are neurones that project to the pituitary gland and secrete either of two hormones, oxytocin or vasopressin, into the blood from their axonal terminals. Oxytocin-secreting and vasopressin-secreting cells are closely related and physically they differ only subtly, however when physiologically stressed their discharge patterns are dramatically distinct. We first show how each potassium current contributes to the action-potentials and after-potentials observed in these cells, and we show how these after-potentials are correlated to intra-cellular calcium elevations. We then show how these currents regulate the excitability of these cells and consequently shape their discharge pattern.