Default header and formatting in `post_processing` module
See original GitHub issueLastly, 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:- Read the previous format (
mapdl.format('STAT')
). - Store it in a tmp variable.
- Change the format to our format.
- Output the
PRXXXX
command. - Setting the previous format back from the tmp file.
- Read the previous format (
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:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You’re welcome. Thanks for your amazing work on pymapdl. 👍
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!