Skip to content

Commit 0e19239

Browse files
Add example to docstring for clarity
1 parent 26f64c9 commit 0e19239

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/imcflibs/imagej/omerotools.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ def parse_url(client, omero_str):
4747
-------
4848
list(fr.igred.omero.repository.ImageWrapper)
4949
List of ImageWrappers parsed from the string.
50+
51+
Examples
52+
--------
53+
>>> from fr.igred.omero import Client
54+
>>> client = Client()
55+
>>> OMERO_LINK = "123456"
56+
>>> img_wrappers = omerotools.parse_url(client, OMERO_LINK)
57+
>>> for wrapper in img_wrappers:
58+
>>> imp = wpr.toImagePlus(client)
5059
"""
5160
image_ids = []
5261
dataset_ids = []

0 commit comments

Comments
 (0)