Skip to contentSkip to conversation

rteval: Add missing docstrings in SysTopology

PATCH In review [email protected] 2 participants 2 messages Jul 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rteval: Add missing docstrings in SysTopology

From: Tomas Glozar <[email protected]>

Add docstrings for isolated_cpus_str and default_cpus_str.

---
 rteval/systopology.py | 2 ++
 1 file changed, 2 insertions(+)
rteval/systopology.py +2 -0
index 19443f9..a991e70 100644
@@ -407,10 +407,12 @@ class SysTopology:
         return cpulist
 
     def isolated_cpus_str(self):
+        """ return a list of strings of numbers of all isolated cpus """
         cpulist = [str(cpu) for cpu in self.isolated_cpus()]
         return cpulist
 
     def default_cpus_str(self):
+        """ return a list of strings of numbers of all default schedulable cpus """
         cpulist = [str(cpu) for cpu in self.default_cpus()]
         return cpulist
 
Signature · 1 line
2.39.3
#1 lore raw
Quoted 30 lines · On Wed, 26 Jul 2023, [email protected] wrote:

From: Tomas Glozar <[email protected]>

Add docstrings for isolated_cpus_str and default_cpus_str.

---
 rteval/systopology.py | 2 ++
 1 file changed, 2 insertions(+)
rteval/systopology.py +2 -0
index 19443f9..a991e70 100644
@@ -407,10 +407,12 @@ class SysTopology:
         return cpulist
 
     def isolated_cpus_str(self):
+        """ return a list of strings of numbers of all isolated cpus """
         cpulist = [str(cpu) for cpu in self.isolated_cpus()]
         return cpulist
 
     def default_cpus_str(self):
+        """ return a list of strings of numbers of all default schedulable cpus """
         cpulist = [str(cpu) for cpu in self.default_cpus()]
         return cpulist
 
Signature · 1 line
2.39.3