np.testing.assert_allclose(vector_total, loop_total) print("input shape:", hours.shape) print("broadcast shape:", broadcast_shape) print("loop total:", loop_total) print("vector total:", vector_total) print("matches loop:", np.allclose(vector_total, loop_total))