Skip to content

Commit f6804ee

Browse files
committed
feat(misc): reorder parameters in run_imarisconvert function
- Changed the order of parameters in the run_imarisconvert function to improve compatibility. - Updated docstring to reflect the new parameter order.
1 parent 6155edd commit f6804ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/imcflibs/imagej/misc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def locate_latest_imaris(paths_to_check=None):
669669
return imaris_paths[-1]
670670

671671

672-
def run_imarisconvert(file_path, output_folder=None, pixel_calibration=None):
672+
def run_imarisconvert(file_path, pixel_calibration=None, output_folder=None):
673673
"""Convert a given file to Imaris format using ImarisConvert.
674674
675675
Convert the input image file to Imaris format (Imaris5) using the
@@ -680,11 +680,11 @@ def run_imarisconvert(file_path, output_folder=None, pixel_calibration=None):
680680
----------
681681
file_path : str
682682
Absolute path to the input image file.
683-
output_folder : str, optional
684-
Folder where the newly created IMS file will be saved, by default None.
685683
pixel_calibration : tuple or list, optional
686684
Sequence of 3 values (x, y, z) representing voxel dimensions to be set during
687685
conversion, by default None.
686+
output_folder : str, optional
687+
Folder where the newly created IMS file will be saved, by default None.
688688
"""
689689
# in case the given file has the suffix `.ids` (meaning it is part of an
690690
# ICS-1 `.ics`+`.ids` pair), point ImarisConvert to the `.ics` file instead:

0 commit comments

Comments
 (0)