File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ def create_empty(
252252    def  __setitem__ (self , chunk_coords : ChunkCoords , value : Buffer ) ->  None :
253253        chunk_start  =  len (self .buf )
254254        chunk_length  =  len (value )
255-         self .buf  =   self . buf   +  value 
255+         self .buf  +=  value 
256256        self .index .set_chunk_slice (chunk_coords , slice (chunk_start , chunk_start  +  chunk_length ))
257257
258258    def  __delitem__ (self , chunk_coords : ChunkCoords ) ->  None :
Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ def check(a: npt.NDArray[Any]) -> Order:
675675def  wraparound_indices (x : npt .NDArray [Any ], dim_len : int ) ->  None :
676676    loc_neg  =  x  <  0 
677677    if  np .any (loc_neg ):
678-         x [loc_neg ] =   x [ loc_neg ]  +  dim_len 
678+         x [loc_neg ] +=  dim_len 
679679
680680
681681def  boundscheck_indices (x : npt .NDArray [Any ], dim_len : int ) ->  None :
@@ -1000,8 +1000,8 @@ def __init__(
10001000                if  stop  <  0 :
10011001                    stop  =  dim_numchunks  +  stop 
10021002
1003-                 start  =   start   *  dim_chunk_size 
1004-                 stop  =   stop   *  dim_chunk_size 
1003+                 start  *=  dim_chunk_size 
1004+                 stop  *=  dim_chunk_size 
10051005                slice_  =  slice (start , stop )
10061006
10071007            else :
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ def test_sharding_partial_overwrite(
229229    read_data  =  a [0 :10 , 0 :10 , 0 :10 ]
230230    assert  np .array_equal (data , read_data )
231231
232-     data  =   data   +  10 
232+     data  +=  10 
233233    a [:10 , :10 , :10 ] =  data 
234234    read_data  =  a [0 :10 , 0 :10 , 0 :10 ]
235235    assert  np .array_equal (data , read_data )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments