Skip to content

Commit 2f92c60

Browse files
committed
fix: minor typo fixes
1 parent 1d94303 commit 2f92c60

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/DIRAC/Interfaces/API/Job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ def setTag(self, tags):
740740
Example usage:
741741
742742
>>> job = Job()
743-
>>> job.setTag( ['WholeNode','8GBMemory'] )
743+
>>> job.setTag( ['WholeNode','8GB'] )
744744
745745
:param tags: single tag string or a list of tags
746746
:type tags: str or python:list

src/DIRAC/WorkloadManagementSystem/Utilities/JobParameters.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
""" DIRAC Workload Management System utility module to get available memory and processors from mjf
22
"""
3-
import os
43
import multiprocessing
4+
import os
55
from urllib.request import urlopen
66

7-
from DIRAC import gLogger, gConfig
7+
from DIRAC import gConfig, gLogger
88
from DIRAC.Core.Utilities.List import fromChar
99

1010

@@ -116,8 +116,8 @@ def getNumberOfProcessors(siteName=None, gridCE=None, queue=None):
116116
if numberOfProcessors:
117117
return numberOfProcessors
118118

119-
# 4) looks in CS for tags
120-
gLogger.info(f"Getting tagsfor {siteName}: {gridCE}: {queue}")
119+
# 3) looks in CS for tags
120+
gLogger.info(f"Getting tags for {siteName}: {gridCE}: {queue}")
121121
# Tags of the CE
122122
tags = fromChar(
123123
gConfig.getValue(f"/Resources/Sites/{siteName.split('.')[0]}/{siteName}/CEs/{gridCE}/Tag", "")

src/DIRAC/tests/Utilities/testJobDefinitions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ def mpJob():
232232

233233

234234
def mp3Job():
235-
"""simple hello world job, with 2 to 4 processors"""
235+
"""simple hello world job, with 3 processors"""
236236

237-
J = baseToAllJobs("min2max4Job")
237+
J = baseToAllJobs("min3Job")
238238
try:
239239
J.setInputSandbox([find_all("mpTest.py", rootPath, "DIRAC/tests/Utilities")[0]])
240240
except IndexError:

0 commit comments

Comments
 (0)