Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tomotools
Nabu
Commits
796c3a16
Commit
796c3a16
authored
Jan 24, 2022
by
payno
Browse files
utils: get_compacted_slices: fix issue if urls are empty
parent
1eae3e11
Pipeline
#65073
failed with stage
in 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nabu/io/utils.py
View file @
796c3a16
...
...
@@ -46,6 +46,9 @@ def get_compacted_dataslices(urls, subsampling=None):
def
merge_slices
(
slice1
,
slice2
):
return
slice
(
slice1
.
start
,
slice2
.
stop
)
if
len
(
urls
)
==
0
:
return
urls
sorted_files_indices
=
sorted
(
urls
.
keys
())
idx0
=
sorted_files_indices
[
0
]
first_url
=
urls
[
idx0
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment