From 9b13734aa913c8f9bbb3a65f19780480eb994709 Mon Sep 17 00:00:00 2001 From: Connor Moreno Date: Wed, 9 Oct 2024 10:54:53 -0500 Subject: [PATCH] Update parastell/utils.py Co-authored-by: Paul Wilson --- parastell/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/parastell/utils.py b/parastell/utils.py index ec9ad62..8528f92 100644 --- a/parastell/utils.py +++ b/parastell/utils.py @@ -45,6 +45,7 @@ def enforce_helical_symmetry(matrix): # Ensure poloidal symmetry at beginning of period matrix[0] = np.concatenate( [ + # ceil and floor ensure middle element of odd sized array is included only once matrix[0, : math.ceil(num_columns / 2)], np.flip(matrix[0, : math.floor(num_columns / 2)]), ]