Keep Enough of a Calculation to Run It Again

A printed table is not a complete experiment record. We will save arrays with their shapes and types, keep related arrays together, and check what survives when a report moves through a text file.

10 sections · 4 questions · 2 coding challenges

1 / 10

Keeping Numerical Results Usable by the Next Program

BOTIE

Scientific programs need to exchange data and repeat earlier calculations. Plain text is inspectable, but it does not automatically preserve every array's type, shape, labels, or full numerical precision.

NumPy's NPY format records an array's dtype and shape with its values. NPZ archives collect named arrays, while text readers and writers serve simpler interchange needs. These formats preserve stored data, not the scientific meaning we forget to record.

Sources for this history