Periodic systems of magnetic nanoparticles are now of interest as they support GHz spin waves. Their equilibrium configurations, switchable with the external magnetic field, are crucial for such applications. We study infinite and finite chains of particles of two shapes (i) ellipsoidal and (ii) rectangular stripes with long axes perpendicular to the chain axis. A variable magnetic field is applied parallel to the long axes. Micromagnetic simulations are compared with the corresponding discrete spin models (Stoner-Wohlfarth model, S-W). An antiferromagnetic configuration is the ground state for all the systems at vanishing field but a ferromagnetic configuration occurs when the field is strong enough. The switching of the infinite chains to the reversed ferromagnetic configuration proceeds directly for the ellipsoids and by an intermediate configuration, in which the magnetization within the particle is non-uniform, in the case of the stripes. The non-uniform configurations are well represented by tilted states in S-W model. Important differences are found in the finite analogs: the switching of ellipsoids becomes multistage and starts from the innermost particles relatively well reproduced with S-W model, whereas the reversal of the stripes, starts from the outermost particles and has no analog in S-W model. Practical consequences of the findings are discussed.