Skip to content
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

mapdl.lgwrite-The resulting log file does not remove grpc related content. #2635

Closed
germa89 opened this issue Jan 9, 2024 Discussed in #2582 · 0 comments · Fixed by #2779
Closed

mapdl.lgwrite-The resulting log file does not remove grpc related content. #2635

germa89 opened this issue Jan 9, 2024 Discussed in #2582 · 0 comments · Fixed by #2779
Assignees

Comments

@germa89
Copy link
Collaborator

germa89 commented Jan 9, 2024

Discussed in #2582

Originally posted by jinfaz567 December 22, 2023
I looked at the documentation for ”Mapdl.lgwrite"
Here's my code:

import os
from ansys.mapdl.core import launch_mapdl

path = os.getcwd()
mapdl = launch_mapdl(jobname="check_log", run_location=path, override=True)

mapdl.finish()
mapdl.clear()

mapdl.prep7()
mapdl.k(1, 0, 0, 0, mute=True)
mapdl.k(2, 2, 0, 0)

mapdl.lgwrite("check_log.txt", kedit="remove", remove_grpc_extra=True)

mapdl.exit()

with open("check_log.txt", "r") as fid:
    lines = fid.readlines()

print("".join(lines))

And then this is the output, and I see the resulting log file does not remove grpc related content(like /OUT,anstmp).

/OUT
/OUT,anstmp 
/PREP7, 
/OUT
K,1,0,0,0   
/OUT
/OUT,anstmp 
K,2,2,0,0   
/OUT
/OUT,anstmp 
@germa89 germa89 self-assigned this Feb 14, 2024
@germa89 germa89 mentioned this issue Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant