From d58c330b448151e1ced06e01b241cba30a79aebf Mon Sep 17 00:00:00 2001 From: Laura Murgatroyd <60604372+lauramurgatroyd@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:39:22 +0000 Subject: [PATCH] Fix issues with TIFF docs (#2018) --- Wrappers/Python/cil/io/TIFF.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Wrappers/Python/cil/io/TIFF.py b/Wrappers/Python/cil/io/TIFF.py index 35177d9846..bab00fe26b 100644 --- a/Wrappers/Python/cil/io/TIFF.py +++ b/Wrappers/Python/cil/io/TIFF.py @@ -191,7 +191,7 @@ class TIFFStackReader(object): ''' Basic TIFF reader which loops through all tiff files in a specific - folder and loads them in alphabetic order + folder and loads them in alphabetical order Parameters ---------- @@ -202,8 +202,8 @@ class TIFFStackReader(object): roi : dictionary, default `None` dictionary with roi to load: ``{'axis_0': (start, end, step), - 'axis_1': (start, end, step), - 'axis_2': (start, end, step)}`` + 'axis_1': (start, end, step), + 'axis_2': (start, end, step)}`` roi is specified for axes before transpose. transpose : bool, default False @@ -256,8 +256,8 @@ class TIFFStackReader(object): Alternatively, if TIFFWriter has been used to save data with lossy compression, then you can rescale the read data to approximately the original data with the following code: - >>> writer = TIFFWriter(file_name = '/path/to/folder', compression='uint8') - >>> writer.write(original_data) + >>> writer = TIFFWriter(file_name = '/path/to/folder', data=original_data, compression='uint8') + >>> writer.write() >>> reader = TIFFStackReader(file_name = '/path/to/folder') >>> about_original_data = reader.read_rescaled() '''