Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kathy Pippert <84872299+PipKat@users.noreply.github.com>
  • Loading branch information
germa89 and PipKat authored Aug 26, 2024
1 parent 544d397 commit e3a4e84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/source/user_guide/mapdl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ These are described in the following table:
| | |
+---------------------------------------+---------------------------------------------------------------------+
| :envvar:`PYMAPDL_ON_SLURM` | With this environment variable set to ``FALSE``, you can avoid |
| | PyMAPDL to detect that it is running on a SLURM HPC cluster. |
| | PyMAPDL from detecting that it is running on a SLURM HPC cluster. |
+---------------------------------------+---------------------------------------------------------------------+
| :envvar:`PYMAPDL_MAX_MESSAGE_LENGTH` | Maximum gRPC message length. If your |
| | connection terminates when running |
Expand Down
8 changes: 4 additions & 4 deletions src/ansys/mapdl/core/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ def launch_mapdl(
# Unless the env var is false, it will be true.
ON_SLURM = not (ON_SLURM.lower() == "false")

# Let's require the following env vars to exists to go into slurm mode.
# Let's require the following env vars to exist to go into slurm mode.
ON_SLURM = (
ON_SLURM
and bool(os.environ.get("SLURM_JOB_NAME", ""))
Expand Down Expand Up @@ -1483,7 +1483,7 @@ def launch_mapdl(

if remove_temp_files is not None:
warnings.warn(
"The option ``remove_temp_files`` is being deprecated and it will be removed by PyMAPDL version 0.66.0.\n"
"The ``remove_temp_files`` option is being deprecated. It is to be removed in PyMAPDL version 0.66.0.\n"
"Please use ``remove_temp_dir_on_exit`` instead.",
DeprecationWarning,
stacklevel=2,
Expand Down Expand Up @@ -1779,7 +1779,7 @@ def launch_mapdl(
else:
if machine_cores < int(nproc):
raise NotEnoughResources(
f"The machine has {machine_cores} cores and PyMAPDL is asking for {nproc} cores."
f"The machine has {machine_cores} cores. PyMAPDL is asking for {nproc} cores."
)

start_parm.update(
Expand Down Expand Up @@ -2274,7 +2274,7 @@ def get_value(

except Exception as e:
LOG.info(
f"The machines list could not be obtained.\nFollowing error happened:\n{str(e)}"
f"The machines list could not be obtained.\nThis error occurred:\n{str(e)}"
)

return exec_file, jobname, nproc, ram, additional_switches
Expand Down
2 changes: 1 addition & 1 deletion tests/test_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def test_deprecate_verbose():
id="Testing NPROCS only",
),
pytest.param(
# This test does not do probably a good memory mapping between
# This test probably does not do a good memory mapping between
# MEM_PER_NODE and "ram"
{
"SLURM_NNODES": 4,
Expand Down

0 comments on commit e3a4e84

Please sign in to comment.