Skip to content

Commit 7bc1e4c

Browse files
committed
Mention github issue and PR in comments related to spec CI failures
1 parent d11685b commit 7bc1e4c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/simsopt/mhd/spec.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ def __init__(self,
141141
filename = f"{filename}.sp"
142142
logger.info(f"Initializing a SPEC object from file: {filename}")
143143

144-
#If spec has run before, clear the f90wrap array caches.
144+
# If spec has run before, clear the f90wrap array caches.
145+
# See https://github.com/hiddenSymmetries/simsopt/pull/431
146+
# This addresses the issue https://github.com/hiddenSymmetries/simsopt/issues/357
145147
if spec.allglobal._arrays:
146148
self._clear_f90wrap_array_caches()
147149

@@ -722,7 +724,12 @@ def set_dofs(self, x):
722724

723725
def _clear_f90wrap_array_caches(self):
724726
"""
725-
Clear the f90wrap array caches. This is necessary when a new file is read after SPEC has run before.
727+
Clear the f90wrap array caches. This is necessary when a new file is
728+
read after SPEC has run before.
729+
730+
See https://github.com/hiddenSymmetries/simsopt/pull/431
731+
732+
This function is for addressing the issue https://github.com/hiddenSymmetries/simsopt/issues/357
726733
"""
727734
spec.allglobal._arrays = {}
728735
spec.inputlist._arrays = {}

0 commit comments

Comments
 (0)