question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default header and formatting in `post_processing` module

See original GitHub issue

Lastly, I have been doing quite a lot of string parsing in PyMAPDL.

I found that the next combination is very useful for parsing some APDL command outputs (see notes).

mapdl.post1()
mapdl.header('OFF', 'OFF', 'OFF', 'OFF', 'OFF', 'OFF')
nsigfig = 10
mapdl.format('', 'E', nsigfig + 9, nsigfig)
mapdl.page(1E9, '', -1, 240)

Hence I would propose either:

  • Setting the previous options during the construction of the post_processing class. So those mapdl commandswill be included in the init method.
  • If we are interested in being very consistent on the format. We could do a wrapper for the PRXXXX commans (see notes) which will:
    1. Read the previous format (mapdl.format('STAT')).
    2. Store it in a tmp variable.
    3. Change the format to our format.
    4. Output the PRXXXX command.
    5. Setting the previous format back from the tmp file.

Both options are doable. The second, although more complete, might pose some overload.

I’m implementing the first. If there is interest, I will implement the second too.

Notes

/FORMAT affects to PRNSOL, PRESOL, PRETAB, PRRSOL, PRPATH, and CYCCALC commands.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lukitoxcommented, Dec 20, 2021

You’re welcome. Thanks for your amazing work on pymapdl. 👍

1reaction
germa89commented, Dec 20, 2021

Hi @engineering-luke , this is a nice piece of work! I will use it as a base for the CommandOuput branch #735 . Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

HEADER - Heading Format for Logonid Display - TechDocs
Specifies the content and formatting of the first line of the logonid display from the ACF list command of logonid.
Read more >
Oracle REST Data Services PL/SQL Package Reference
Executes a SQL query conforming to a specific format and turns the result set into a binary ... Default: NULL (defers to the...
Read more >
Postprocessing and Visualization Updates - COMSOL
COMSOL Multiphysics® version 5.6 brings clipping, partial transparency, and material visualization in plots. View the release highlights here.
Read more >
youtube-dl/README.md at master - GitHub
Command-line program to download videos from YouTube.com and other video sites - youtube-dl/README.md at master · ytdl-org/youtube-dl.
Read more >
Component Reference - Apache JMeter - User's Manual
The default parser is org.apache.jmeter.protocol.http.parser. ... Note: If the "Host" header is defined in a Header Manager, then this will be used as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found