Skip to content

Commit

Permalink
add _message back
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinknair committed Feb 5, 2025
1 parent 5b9776e commit 1cc5dd2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ansys/mechanical/core/embedding/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ def __init__(self, app):
self._app = app

# Import necessary classes
from Ansys.Mechanical.Application import Message
from Ansys.Mechanical.DataModel.Enums import MessageSeverityType

self._message_severity = MessageSeverityType
self._message = Message
self._messages = self._app.ExtAPI.Application.Messages

def _create_messages_data(self):
def _create_messages_data(self): # pragma: no cover
"""Update the local cache of messages."""
data = {
"Severity": [],
Expand All @@ -70,7 +72,7 @@ def _create_messages_data(self):

return data

def __repr__(self):
def __repr__(self): # pragma: no cover
"""Provide a DataFrame representation of all messages."""
if not HAS_PANDAS:
return "Pandas is not available. Please pip install pandas to display messages."
Expand Down

0 comments on commit 1cc5dd2

Please sign in to comment.