File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -307,18 +307,6 @@ def __init__(
307
307
self .load_general_features ()
308
308
self .load ()
309
309
310
- def get_slice (self , ** kwargs ):
311
- """
312
- Get slice for each axes specified
313
-
314
- :param dict kwargs:
315
- :return: A dict of slice
316
- :rtype: dict[slice]
317
- """
318
- for k , v in kwargs .items ():
319
- with Dataset (self .filename ) as h :
320
- print (k , v )
321
-
322
310
@property
323
311
def is_centered (self ):
324
312
"""Give True if pixel is described with its center's position or
Original file line number Diff line number Diff line change @@ -278,7 +278,14 @@ def flatten_line_matrix(l_matrix):
278
278
"""
279
279
nb_line , sampling = l_matrix .shape
280
280
final_size = (nb_line - 1 ) + nb_line * sampling
281
+ empty_dataset = False
282
+ if final_size < 1 :
283
+ empty_dataset = True
284
+ final_size = 1
281
285
out = empty (final_size , dtype = l_matrix .dtype )
286
+ if empty_dataset :
287
+ out [:] = nan
288
+ return out
282
289
inc = 0
283
290
for i in range (nb_line ):
284
291
for j in range (sampling ):
You can’t perform that action at this time.
0 commit comments