Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions tofu/geom/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4461,19 +4461,24 @@ def compute_dgeom(self, extra=True, plotdebug=True):
msg += repr(ind.nonzero()[0])
warnings.warn(msg)
if plotdebug:
PIn = self.D[:, ind] + kIn[None, ind] * self.u[:, ind]
POut = self.D[:, ind] + kOut[None, ind] * self.u[:, ind]
# To be updated
_plot._LOS_calc_InOutPolProj_Debug(
self.config,
self.D[:, ind],
self.u[:, ind],
PIn,
POut,
nptstot=kOut.size,
Lim=[np.pi / 4.0, 2.0 * np.pi / 4],
Nstep=50,
)
try:
PIn = self.D[:, ind] + kIn[None, ind] * self.u[:, ind]
POut = self.D[:, ind] + kOut[None, ind] * self.u[:, ind]
# To be updated
_plot._LOS_calc_InOutPolProj_Debug(
self.config,
self.D[:, ind],
self.u[:, ind],
PIn,
POut,
nptstot=kOut.size,
Lim=[np.pi / 4.0, 2.0 * np.pi / 4],
Nstep=50,
)
except Exception as err:
msg = ("The 3D debugging plot could not be displayed\n"
+ str(err))
warnings.warn(msg)

# Handle particular cases with kIn > kOut
ind = np.zeros(kIn.shape, dtype=bool)
Expand Down
2 changes: 1 addition & 1 deletion tofu/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Do not edit, pipeline versioning governed by git tags!
__version__ = '1.4.2-a5'
__version__ = '1.4.2-a5-6-g2d9b183'