From f3a12fbbda8a8601b8d2a67f397a89dcee01a0ce Mon Sep 17 00:00:00 2001 From: LyceanEM <60020395+LyceanEM@users.noreply.github.com> Date: Wed, 29 May 2024 10:35:45 +0100 Subject: [PATCH] corrected escape characters in point data fields for exporting pyvista objects. --- lyceanem/base_classes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lyceanem/base_classes.py b/lyceanem/base_classes.py index 0f393c9..1cae8d2 100644 --- a/lyceanem/base_classes.py +++ b/lyceanem/base_classes.py @@ -574,10 +574,10 @@ def cell_bounds(points, bound_position=0.5): vista_pattern['Imag']=np.imag(np.append(np.append(ex.transpose().ravel().reshape(ex.size,1), ey.transpose().ravel().reshape(ex.size,1),axis=1), ez.transpose().ravel().reshape(ex.size,1),axis=1)) - vista_pattern['E($\Theta$) Magnitude']=np.abs(et.transpose().ravel()) - vista_pattern['E($\Theta$) Phase']=np.angle(et.transpose().ravel()) - vista_pattern['E($\Phi$) Magnitude']=np.abs(ep.transpose().ravel()) - vista_pattern['E($\Phi$) Phase']=np.angle(ep.transpose().ravel()) + vista_pattern['E(theta) Magnitude']=np.abs(et.transpose().ravel()) + vista_pattern['E(theta) Phase']=np.angle(et.transpose().ravel()) + vista_pattern['E(phi) Magnitude']=np.abs(ep.transpose().ravel()) + vista_pattern['E(phi) Phase']=np.angle(ep.transpose().ravel()) vista_pattern['Magnitude']=np.abs(vista_pattern['Real']+1j*vista_pattern['Imag']) vista_pattern['Phase']=np.angle(vista_pattern['Real']+1j*vista_pattern['Imag']) return vista_pattern