cellpy.readers.instruments.processors.pre_processors

cellpy.readers.instruments.processors.pre_processors#

Pre-processing methods for instrument loaders.

All methods must implement the following parameters/arguments:

- filename: Union[str, pathlib.Path]
- *args and **kwargs: Any additional parameters/arguments should be supported.

All methods should return None (i.e. nothing).

Module Contents#

Functions#

remove_empty_lines(→ pathlib.Path)

Remove all the empty lines in the file.

remove_empty_lines(filename: str | pathlib.Path, *args, **kwargs) pathlib.Path[source]#

Remove all the empty lines in the file.

The method saves to the same name as the original file, so it is recommended to work on a temporary copy of the file instead of the original file.

Parameters:
  • filename – path to the file.

  • *args – None supported.

  • **kwargs – None supported.

Returns:

pathlib.Path of modified file