Another station sends star counts in short rows, but its storage format needs four counts per row. Write two small helpers: one to unroll the incoming grid and another to pack a flat strip.
grid.ravel() returns the default row-by-row order. With readings.reshape(-1, 4), the -1 asks NumPy to work out the row count. Eight values need two rows; twelve need three. Only one dimension can be inferred, and the number of values must still be divisible by four.
Edit main.py and Run after each helper. The sample's flat line should become [3 1 4 2]; its packed version should have one row with four columns. Submit checks larger inputs as well. The two print calls are separate so you can finish one helper before the other.
ravel() in unroll_counts(grid) to return a one-dimensional array in row-major order.reshape(-1, 4) in pack_counts(readings) to return rows of four readings.Use -1 for the unknown row count and 4 for the fixed column count.