An algorithm for periodicity and almost periodicity of uniform substitution sequences and its implications on aperiodic spin models. - Suani T. R. Pinho; V. A. G. O. de Meneses; M. S. P. Muniz; Thierry Petit Lobão (Comput. Phys. Commun., 2019)