Preparing the Arrays We Need

Botie needs a place for tomorrow's readings and a set of times at which to collect them. We can describe those arrangements directly instead of typing every repeated value ourselves.

10 sections · 4 questions · 2 coding challenges

1 / 10

When the Layout Was Known Before the Measurements

BOTIE

Scientific programs often know the dimensions of a calculation before they have its results. They need storage for accumulators, trial settings, and numerical grids without writing each entry by hand.

NumPy's array-creation routines make those intentions explicit. A shape describes the arrangement; a fill value or spacing rule describes its initial contents. Our greenhouse schedule is an invented example of that distinction.

Sources for this history