Trying to add the new geometry of ASDEX Upgrade (AUG), that a user sent to us, I ran into an issue that seems to be due to _GG.Poly_isClockwise()
I just updated branch Issue281_NewDefaultConfigs (merged with devel and pushed to github).
I also re-compiled the cython binaries.
But when trying to create the AUG config from the pre-defined txt files (containing the R, Z polygons of each structure), 3 polygons are not handled properly (the config is still created because I implemented a try/except on each structure):
In [1]: import tofu as tf
conf = /Home/DV226270/ToFu_All/tofu_git/tofu/tofu/imas2tofu/__init__.py:83: UserWarning:
You do not seem to be using the latest IMAS version:
'module list' vs 'module av IMAS' suggests:
- Current version: 3.23.1-4.0.3
- Latest version : 3.25.0-4.4.0
warnings.warn(msg)
/Home/DV226270/ToFu_All/tofu_git/tofu/tofu/__init__.py:95: UserWarning:
The following subpackages are not available:
- tofu.mag
=> see print(tofu.dsub[<subpackage>]) for details.
warnings.warn(msg)
In [2]: conf = tf.geom.utils.create_config('AUG')
/Home/DV226270/ToFu_All/tofu_git/tofu/tofu/geom/utils.py:838: UserWarning: Could not be loaded: TFG_PFC_ExpAUG_D2dBu1.txt
warnings.warn(msg)
/Home/DV226270/ToFu_All/tofu_git/tofu/tofu/geom/utils.py:838: UserWarning: Could not be loaded: TFG_PFC_ExpAUG_D2dBu2.txt
warnings.warn(msg)
/Home/DV226270/ToFu_All/tofu_git/tofu/tofu/geom/utils.py:838: UserWarning: Could not be loaded: TFG_PFC_ExpAUG_SBi.txt
warnings.warn(msg)
In [3]: conf.plot()
For every structure failing, there is warning. If you plot the config you'll notice it is missing some grey structures in the right hand side of the poloidal cross-section:

Could this have something to do with the bug corrected in PR #323 ?
(the txt files themselves are in tofu/geom/inputs)
Trying to add the new geometry of ASDEX Upgrade (AUG), that a user sent to us, I ran into an issue that seems to be due to
_GG.Poly_isClockwise()I just updated branch Issue281_NewDefaultConfigs (merged with devel and pushed to github).
I also re-compiled the cython binaries.
But when trying to create the AUG config from the pre-defined txt files (containing the R, Z polygons of each structure), 3 polygons are not handled properly (the config is still created because I implemented a try/except on each structure):
For every structure failing, there is warning. If you plot the config you'll notice it is missing some grey structures in the right hand side of the poloidal cross-section:
Could this have something to do with the bug corrected in PR #323 ?
(the txt files themselves are in tofu/geom/inputs)