Skip to content

Commit

Permalink
Update parastell/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Wilson <[email protected]>
  • Loading branch information
connoramoreno and gonuke authored Oct 9, 2024
1 parent cd3f865 commit 9b13734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parastell/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]),
]
Expand Down

0 comments on commit 9b13734

Please sign in to comment.