The observatory toolkit now needs one correction per row and a small check for incompatible inputs. These are separate functions: the shape check tests the arrays it receives without reshaping them.
Use baselines[:, np.newaxis] for the correction. In the compatibility check, put only grid + offsets inside try; catch ValueError, then return False after the except block when addition succeeds.
row_correction, subtract baselines[:, np.newaxis] from grid.incompatible, return True if grid + offsets raises ValueError, or False if it succeeds.Run main.py after each edit, then Submit. You can now calibrate whole grids; the next section turns those grids into totals and statistics.
Keep the correction and the error check separate; only the correction adds an axis.