Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gmalinve committed Mar 7, 2025
1 parent ec08e87 commit b0e29de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ansys/aedt/core/modules/solve_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def default_intrinsics(self):
else:
intrinsics[i] = "All"
elif i == "Phase":
intrinsics[i] = "All"
intrinsics[i] = "0deg"

Check warning on line 192 in src/ansys/aedt/core/modules/solve_setup.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/modules/solve_setup.py#L192

Added line #L192 was not covered by tests
elif i == "Time":
intrinsics[i] = "All"
return intrinsics
Expand Down
3 changes: 2 additions & 1 deletion src/ansys/aedt/core/visualization/plot/pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@ def _read_mesh_files(self, read_frames=False):
conv = 1
vertices = np.array(nodes) * conv
filedata = pv.PolyData(vertices)
field._cached_polydata = filedata

Check warning on line 1096 in src/ansys/aedt/core/visualization/plot/pyvista.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/plot/pyvista.py#L1096

Added line #L1096 was not covered by tests
if is_vector:
vector_scale = (max(filedata.bounds) - min(filedata.bounds)) / (
20 * (np.vstack(values).max() - np.vstack(values).min())
Expand All @@ -1106,7 +1107,7 @@ def _read_mesh_files(self, read_frames=False):
filedata = filedata.delaunay_2d(tol=field.surface_mapping_tolerance)
filedata.point_data[field.label] = np.array(values)
field.scalar_name = filedata.point_data.active_scalars_name
field._cached_polydata = filedata
# field._cached_polydata = filedata

@pyaedt_function_handler()
def _add_buttons(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def callback():
master.export_option = [export_options_lb.get(i) for i in selected_export]
selected_objects = objects_list_lb.curselection()
master.objects_list = [objects_list_lb.get(i) for i in selected_objects]
master.solution_option = selected_value.get()
master.destroy()

Check warning on line 243 in src/ansys/aedt/core/workflows/maxwell3d/transformer_loss_distribution.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/workflows/maxwell3d/transformer_loss_distribution.py#L234-L243

Added lines #L234 - L243 were not covered by tests

def browse_files():
Expand Down Expand Up @@ -389,7 +390,7 @@ def main(extension_args):
np.savetxt(

Check warning on line 390 in src/ansys/aedt/core/workflows/maxwell3d/transformer_loss_distribution.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/workflows/maxwell3d/transformer_loss_distribution.py#L389-L390

Added lines #L389 - L390 were not covered by tests
export_file,
field_coordinates,
delimiter=",",
delimiter="\t",
header=file_header,
comments="",
)
Expand Down
2 changes: 1 addition & 1 deletion tests/system/general/test_12_1_PostProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def test_14B_Field_Ploton_Vector(self, aedtapp, local_scratch):
intrinsics=intrinsic,
mesh_on_fields=False,
view="isometric",
show=False,
show=True,
export_path=local_scratch.path,
image_format="jpg",
)
Expand Down

0 comments on commit b0e29de

Please sign in to comment.