Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Merlijn Wajer
Python Derivermodule
Commits
35cb5af5
Commit
35cb5af5
authored
Apr 16, 2022
by
Merlijn Wajer
Browse files
imagestack: document validate_imagestack
parent
bb36b373
Changes
1
Hide whitespace changes
Inline
Side-by-side
derivermodule/imagestack.py
View file @
35cb5af5
...
...
@@ -147,6 +147,19 @@ def iterate_imagestack(imagestack_path, imagestack_info, sort=True):
def
validate_imagestack
(
imagestack_path
,
imagestack_info
):
"""
Validate an imagestack given a path. An imagestack is valid if it contains
at least image with a supported image type.
Args:
* imagestack_path (``str``): The imagestack archive path
* imagestack_info (``dict``)::
>>> {'archive_type': ..., 'image_type': ...}
If the method does not raise an Exception, the image stack is valid.
"""
image_count
=
0
for
img_path
,
_
in
iterate_imagestack
(
imagestack_path
,
imagestack_info
):
...
...
Write
Preview
Supports
Markdown
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