File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ cdef class Reservation:
7272            Name for a Reservation. 
7373        **kwargs (Any, optional=None): 
7474            All Attributes of a Reservation are eligible to be set, except 
75-             `cpus_by_node `. Although the `name` attribute can also be changed  
76-             on the instance, the change will not be taken into account by  
77-             `slurmctld` when calling `modify()`. 
75+             `cpu_ids_by_node `. Although the `name` attribute can also be 
76+             changed  on the instance, the change will not be taken into account 
77+             by  `slurmctld` when calling `modify()`. 
7878
7979    Attributes: 
8080        accounts (list[str]): 
@@ -85,7 +85,7 @@ cdef class Reservation:
8585            Arbitrary comment for the Reservation. 
8686        cpus (int): 
8787            Amount of CPUs used by the Reservation 
88-         cpus_by_node  (dict[str, int]): 
88+         cpu_ids_by_node  (dict[str, int]): 
8989            A Mapping where each key is the node-name, and the values are a 
9090            string of CPU-IDs reserved on the specific nodes. 
9191        end_time (int): 
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ cdef class Reservation:
327327        self .info.core_cnt =  self .umsg.core_cnt =  int (val)
328328
329329    @property 
330-     def  cpus_by_node (self ):
330+     def  cpu_ids_by_node (self ):
331331        out =  {}
332332        for  i in  range (self .info.core_spec_cnt):
333333            node =  cstr.to_unicode(self .info.core_spec[i].node_name)
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def test_create_instance():
3232    assert  resv .end_time  ==  None 
3333    assert  resv .duration  ==  0 
3434    assert  resv .is_active  is  False 
35-     assert  resv .cpus_by_node  ==  {}
35+     assert  resv .cpu_ids_by_node  ==  {}
3636    assert  resv .to_dict ()
3737
3838    start  =  datetime .now ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments