Skip to content

Commit 91c64a1

Browse files
fix: align parameter formatting in multiple usage documentation files for consistency
1 parent 9025b86 commit 91c64a1

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

docs/source/usage_batch_conversion.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ default), no folder-stack discovery is performed.
174174
folder_stacks = ("FOV1",),
175175
merge_along_axis = "T",
176176
zeropadding = True,
177-
output_folder_name = "omio_converted_FOV1",
177+
output_folder_name= "omio_converted_FOV1",
178178
verbose = True)
179179
180180
In this example, OMIO searches each final ``TP005`` folder for child folders whose
@@ -248,10 +248,10 @@ the root error report contains an editable Python dictionary named
248248
.. code-block:: python
249249
250250
result = om.batch_create_thorlabs_raw_yaml_templates(
251-
project_root="my_project",
252-
report_name="omio_batch_error_report_2026-08-20_12-00-00.txt",
253-
overwrite_existing=False,
254-
verbose=True)
251+
project_root = "my_project",
252+
report_name = "omio_batch_error_report_2026-08-20_12-00-00.txt",
253+
overwrite_existing = False,
254+
verbose = True)
255255
256256
print(f"Created YAML templates: {len(result.created)}")
257257
print(f"Skipped RAW files: {len(result.skipped)}")

docs/source/usage_core_functions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ You can also specify custom layer names for each channel in the image:
229229
.. code-block:: python
230230
231231
om.open_in_napari(image, metadata,
232-
image_name="my image",
233-
layer_names=["channel 0", "channel 1", "channel 2"],
234-
blending="additive")
232+
image_name = "my image",
233+
layer_names = ["channel 0", "channel 1", "channel 2"],
234+
blending = "additive")
235235
236236
For demonstration purposes, we change the ``PhysicalSizeZ`` metadata entry to an
237237
incorrect value and re-open the image in Napari to see that Napari correctly rescales

docs/source/usage_large_files.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ creates ``.omio_cache``:
8383
8484
image_local_cache, metadata_local_cache = om.imread(
8585
fname,
86-
zarr_store="disk",
87-
zarr_store_path=local_cache_root)
86+
zarr_store = "disk",
87+
zarr_store_path = local_cache_root)
8888
8989
print(metadata_local_cache["omio_cache_folder"])
9090
print(metadata_local_cache["omio_zarr_store_path"])

docs/source/usage_template_functions.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ as arguments:
3434
.. code-block:: python
3535
3636
my_image, my_metadata = om.create_empty_image(
37-
shape=(5, 10, 512, 512),
38-
dtype=np.uint16,
39-
return_metadata=True)
37+
shape = (5, 10, 512, 512),
38+
dtype = np.uint16,
39+
return_metadata = True)
4040
4141
print(f"Failed to create empty image. Type of my_image is {type(my_image)} "
4242
f"and of my_metadata {type(my_metadata)}.")
@@ -53,9 +53,9 @@ and return ``None`` for both image and metadata.
5353
.. code-block:: python
5454
5555
my_image, my_metadata = om.create_empty_image(
56-
shape=(5, 20, 2, 512, 512),
57-
dtype=np.uint16,
58-
return_metadata=True)
56+
shape = (5, 20, 2, 512, 512),
57+
dtype = np.uint16,
58+
return_metadata = True)
5959
6060
print(f"Created empty image with shape: {my_image.shape}, "
6161
f"dtype {my_image.dtype} and axes {my_metadata.get('axes', 'N/A')}.")
@@ -152,12 +152,12 @@ paths in the returned metadata.
152152
zarr_parent = "example_data/custom_created_images/"
153153
154154
my_zarr_image, my_zarr_metadata = om.create_empty_image(
155-
shape=(5, 20, 2, 512, 512),
156-
dtype=np.uint16,
157-
zarr_store="disk",
158-
zarr_store_path=zarr_parent,
159-
zarr_store_name="my_empty_image_zarr",
160-
return_metadata=True)
155+
shape = (5, 20, 2, 512, 512),
156+
dtype = np.uint16,
157+
zarr_store = "disk",
158+
zarr_store_path = zarr_parent,
159+
zarr_store_name = "my_empty_image_zarr",
160+
return_metadata = True)
161161
162162
print(f"Created disk-backed Zarr image with shape: {my_zarr_image.shape}")
163163
print(f"Zarr store path: {my_zarr_metadata['omio_zarr_store_path']}")

0 commit comments

Comments
 (0)