Skip to content

Commit

Permalink
Revert "Expanding commands to not be converted. (#1442)"
Browse files Browse the repository at this point in the history
This reverts commit e191c6c.
  • Loading branch information
germa89 committed Oct 11, 2022
1 parent e8d11aa commit c1b20f4
Showing 1 changed file with 1 addition and 53 deletions.
54 changes: 1 addition & 53 deletions src/ansys/mapdl/core/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,65 +9,13 @@

# Because the APDL version has empty arguments, whereas the PyMAPDL
# doesn't have them. Hence the order of arguments is messed up.
COMMANDS_TO_NOT_BE_CONVERTED = {"INT1"}

FORMAT_OPTIONS = {
"select": "W191,W291,W293,W391,E115,E117,E122,E124,E125,E225,E231,E301,E303,F401,F403",
"max-line-length": 100,
}

# This commands have "--" as one or some arguments
COMMANDS_WITH_EMPTY_ARGS = [
"/CMA", # "/CMAP,
"/NER", # "/NERR,
"/PBF", # "/PBF,
"/PMO", # "/PMORE,
"ANTY", # ANTYPE,
"ASBL", # ASBL,
"ATAN", # ATAN,
"BCSO", # BCSOPTION,
"CLOG", # CLOG,
"CONJ", # CONJUG,
"DERI", # DERIV,
"DSPO", # DSPOPTION,
"ENER", # ENERSOL,
"ENSY", # ENSYM,
"ESYM", # ESYM,
"EXP", # EXP,
"EXPA", # EXPAND,
"FCLI", # FCLIST,
"FILE", # FILEAUX2,
"FLUR", # FLUREAD,
"GMAT", # GMATRIX,
"IMAG", # IMAGIN,
"INT1", # INT1,
"LARG", # LARGE,
"LATT", # LATT,
"MAP", # MAP,
"MORP", # MORPH,
"MPCO", # MPCOPY,
"NLOG", # NLOG,
"PLMA", # PLMAP,
"PRED", # PRED,
"PROD", # PROD,
"QRDO", # QRDOPT,
"QUOT", # QUOT,
"RACE", # RACE,
"REAL", # REALVAR,
"REME", # REMESH,
"SESY", # SESYMM,
"SETF", # SETFGAP,
"SETR", # SETRAN,
"SMAL", # SMALL,
"SNOP", # SNOPTION,
"SURE", # SURESU,
"THOP", # THOPT,
"TINT", # TINTP,
]


COMMANDS_TO_NOT_BE_CONVERTED = []
COMMANDS_TO_NOT_BE_CONVERTED.extend(COMMANDS_WITH_EMPTY_ARGS)


def convert_script(
filename_in,
Expand Down

0 comments on commit c1b20f4

Please sign in to comment.