Compact κ-deformation and spectral triples