ulisesrey / imutils

0 stars 6 forks source link

with tiff.TiffWriter() as tif_writer, with tiff.TiffFile() as tif #1

Open ulisesrey opened 3 years ago

ulisesrey commented 3 years ago

This:

    with tiff.TiffWriter(stack_output_filepath, bigtiff=True) as tif_writer:
        with tiff.TiffFile(stack_input_filepath, multifile=False) as tif:

can be substituted by this:

    with tiff.TiffWriter(stack_output_filepath, bigtiff=True) as tif_writer, tiff.TiffFile(stack_input_filepath, multifile=False) as tif:

It makes it more clear so it should be prefered for many of my codes: