This might be better as `obs.dtype.type is np.float32`.