Compute the periodicity factor of the Bore
self (BoreUD) – A BoreUD object
per_a (int) – Number of spatial periodicities of the bore
is_antiper_a (bool) – True if an spatial anti-periodicity is possible after the periodicities