File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -2124,9 +2124,7 @@ def serialize(x, axis):
2124
2124
# array we can loop through.
2125
2125
work_array = np .moveaxis (x , axis , range (- len (axis ), 0 ))
2126
2126
out_shape = work_array .shape [: - len (axis )]
2127
- work_array = work_array .reshape (
2128
- np .prod (out_shape , dtype = int ), - 1
2129
- )
2127
+ work_array = work_array .reshape (np .prod (out_shape , dtype = int ), - 1 )
2130
2128
2131
2129
joined = []
2132
2130
for arr_slice in work_array :
Original file line number Diff line number Diff line change @@ -581,9 +581,7 @@ def test_string_nd_second(self):
581
581
582
582
def test_string_nd_bounds_first (self ):
583
583
self .setupTestArrays ((3 , 4 ))
584
- coord = AuxCoord (
585
- self .pts_real .astype (str ), bounds = self .bds_real .astype (str )
586
- )
584
+ coord = AuxCoord (self .pts_real .astype (str ), bounds = self .bds_real .astype (str ))
587
585
588
586
collapsed_coord = coord .collapsed (0 )
589
587
@@ -607,9 +605,7 @@ def test_string_nd_bounds_first(self):
607
605
608
606
def test_string_nd_bounds_second (self ):
609
607
self .setupTestArrays ((3 , 4 ))
610
- coord = AuxCoord (
611
- self .pts_real .astype (str ), bounds = self .bds_real .astype (str )
612
- )
608
+ coord = AuxCoord (self .pts_real .astype (str ), bounds = self .bds_real .astype (str ))
613
609
614
610
collapsed_coord = coord .collapsed (1 )
615
611
You can’t perform that action at this time.
0 commit comments