Skip to content

Commit

Permalink
REFACTOR: Add no cover and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Jul 30, 2024
1 parent 092a009 commit f996468
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pyaedt/modules/PostProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2456,10 +2456,8 @@ def _get_cs_plane_ids(self):
name2refid[cs_id + 2] = name + ":XZ"
except Exception:
self.logger.debug(
"Something went wrong when with key {} while retrieving coordinate systems plane ids.".format(
ds
)
)
"Something went wrong with key {} while retrieving coordinate systems plane ids.".format(ds)
) # pragma: no cover
return name2refid

@pyaedt_function_handler()
Expand Down Expand Up @@ -2514,8 +2512,8 @@ def _get_fields_plot(self):
plots[plot_name].GridColor = surf_setts["GridColor"]
except Exception:
self.logger.debug(
"Something went wrong when with setup {} while retrieving fields plot.".format(setup)
)
"Something went wrong with setup {} while retrieving fields plot.".format(setup)
) # pragma: no cover
return plots

# TODO: define a fields calculator module and make robust !!
Expand Down Expand Up @@ -3253,7 +3251,7 @@ def _create_fieldplot(
try:
self._app.modeler.fit_all()
except Exception:
self.logger.debug("Something went wrong with `fit_all` while creating field plot.")
self.logger.debug("Something went wrong with `fit_all` while creating field plot.") # pragma: no cover
self._desktop.TileWindows(0)
self._app.desktop_class.active_design(self._oproject, self._app.design_name)

Expand Down Expand Up @@ -3313,7 +3311,9 @@ def _create_fieldplot_line_traces(
try:
self._app._modeler.fit_all()
except Exception:
self.logger.debug("Something went wrong with `fit_all` while creating field plot with line traces.")
self.logger.debug(
"Something went wrong with `fit_all` while creating field plot with line traces."
) # pragma: no cover
self._desktop.TileWindows(0)
self._app.desktop_class.active_design(self._oproject, self._app.design_name)

Expand Down Expand Up @@ -4298,7 +4298,7 @@ def export_model_obj(self, assignment=None, export_path=None, export_as_single_o
if assignment and not isinstance(assignment, (list, tuple)):
assignment = [assignment]
if self._app._aedt_version < "2021.2":
raise RuntimeError("Object is supported from AEDT 2021 R2.")
raise RuntimeError("Object is supported from AEDT 2021 R2.") # pragma: no cover
if not export_path:
export_path = self._app.working_directory
if not assignment:
Expand Down

0 comments on commit f996468

Please sign in to comment.