Skip to content
Snippets Groups Projects
Commit ec9c95d4 authored by Valerio Mariani's avatar Valerio Mariani
Browse files

Added function to recover the number of slices already written to a file

parent c2767704
No related branches found
No related tags found
No related merge requests found
......@@ -505,6 +505,20 @@ class CXIWriter:
return self._curr_slice >= self._max_num_slices
def num_slices_in_file(selfself):
"""Returns the number of slices already written in the file
Returns the number of slices that have already been written in the file.
Returns:
status (num_slices): number of writter slices
"""
num_slices = self._curr_slice - 1
return num_slices
def close_file(self):
"""Closes the file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment