Skip to content

fix: migrated (PR 4146): Set _post as a property so it's initialized when needed #4147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 8, 2025
Merged
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
1 change: 1 addition & 0 deletions doc/changelog.d/4147.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix: migrated (PR 4146): Set _post as a property so it's initialized when needed
9 changes: 7 additions & 2 deletions src/ansys/mapdl/core/mapdl_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ def __init__(
if log_apdl:
self.open_apdl_log(log_apdl, mode="w")

self._post = PostProcessing(self)
# Empty object that will store the `PostProcessing` object
self._post_object = None

# Wrapping listing functions for "to_array" methods
self._wrap_listing_functions()
Expand Down Expand Up @@ -963,7 +964,11 @@ def post_processing(self) -> "PostProcessing":
raise MapdlRuntimeError(
"MAPDL exited.\n\nCan only postprocess a live " "MAPDL instance."
)
return self._post

if self._post_object is None:
self._post_object = PostProcessing(self)

return self._post_object

@property
def print_com(self):
Expand Down
Loading