Commit 693778ce authored by Tomas Farago's avatar Tomas Farago
Browse files

Merge branch '0.4' of https://gitlab.esrf.fr/tomotools/nxtomomill into 0.4

parents eaed56fe 0db38286
......@@ -689,11 +689,13 @@ def change_image_key_control(
image_keys_control = h5py_read_dataset(node[image_keys_control_path])
# filter frame indexes
if isinstance(frames_indexes, slice):
frames_indexes = list(
range(
frames_indexes.start, frames_indexes.stop, frames_indexes.step or 1
)
)
step = frames_indexes.step
if step is None:
step = 1
stop = frames_indexes.stop
if stop is None:
stop = len(image_keys)
frames_indexes = list(range(frames_indexes.start, stop, step))
frames_indexes = list(
filter(lambda x: 0 <= x <= len(image_keys_control), frames_indexes)
)
......
......@@ -108,7 +108,6 @@ classifiers = [
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment