Skip to content

Commit

Permalink
Add javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lguerard committed Feb 8, 2023
1 parent 5d98e75 commit 47a7916
Showing 1 changed file with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,23 @@ def open_single_series_with_BF(path_to_file, series_number):
return imps[0]

def save_as(imageplus, extension, out_dir, series, pad_number, split_channels):
"""Function to save an image
Parameters
----------
imageplus : ImagePlus
ImagePlus to save
extension : str
Extension to use for the output
out_dir : str
Path for the output
series : int
Series to open
pad_number : int
Number of 0 to use for padding
split_channels : bool
Bool to split or not the channels
"""

out_ext = {}
out_ext["ImageJ-TIF"] = ".tif"
Expand Down Expand Up @@ -188,9 +205,6 @@ def save_as(imageplus, extension, out_dir, series, pad_number, split_channels):

for index, current_imp in enumerate(imp_to_use):

print(current_imp)
print(series)

basename = imageplus.getShortTitle()

out_path = os.path.join(
Expand Down

0 comments on commit 47a7916

Please sign in to comment.