@@ -2278,8 +2278,7 @@ def __str__(self):
2278
2278
elif not len (self ):
2279
2279
return 'LArray([])'
2280
2280
else :
2281
- maxlines = OPTIONS [DISPLAY_MAXLINES ] if OPTIONS [DISPLAY_MAXLINES ] is not None else 200
2282
- table = list (self .as_table (maxlines ))
2281
+ table = list (self .as_table ())
2283
2282
return table2str (table , 'nan' , keepcols = self .ndim - 1 )
2284
2283
__repr__ = __str__
2285
2284
@@ -2296,7 +2295,7 @@ def as_table(self, maxlines=None, edgeitems=None, light=False, wide=True, value_
2296
2295
Parameters
2297
2296
----------
2298
2297
maxlines : int, optional
2299
- Maximum number of lines to show. Default behavior shows all lines.
2298
+ Maximum number of lines to show. If 0 all lines are shown .
2300
2299
edgeitems : int, optional
2301
2300
If number of lines to display is greater than `maxlines`,
2302
2301
only the first and last `edgeitems` lines are displayed.
@@ -2389,7 +2388,7 @@ def as_table(self, maxlines=None, edgeitems=None, light=False, wide=True, value_
2389
2388
other_colnames = self .axes [- 1 ].labels .tolist () if wide else [value_name ]
2390
2389
yield axes_names + other_colnames
2391
2390
# summary if needed
2392
- if maxlines is not None and height > maxlines :
2391
+ if maxlines > 0 and height > maxlines :
2393
2392
# replace middle lines of the table by '...'.
2394
2393
# We show only the first and last edgeitems lines.
2395
2394
startticks = islice (ticks , edgeitems )
@@ -2431,7 +2430,7 @@ def dump(self, header=True, wide=True, value_name='value'):
2431
2430
# flatten all dimensions except the last one
2432
2431
return self .data .reshape (- 1 , self .shape [- 1 ]).tolist ()
2433
2432
else :
2434
- return list (self .as_table (wide = wide , value_name = value_name ))
2433
+ return list (self .as_table (maxlines = 0 , wide = wide , value_name = value_name ))
2435
2434
2436
2435
# XXX: should filter(geo=['W']) return a view by default? (collapse=True)
2437
2436
# I think it would be dangerous to make it the default
0 commit comments