From 6acb8714149b8b6114e8ad07a552f7b2ec2409fb Mon Sep 17 00:00:00 2001 From: GuyTeichman <48219633+GuyTeichman@users.noreply.github.com> Date: Mon, 13 Nov 2023 17:16:14 +0200 Subject: [PATCH] * Fixed bug where trying to load sessions created with RNAlysis version 3.10.0 would result in an error. --- HISTORY.rst | 12 ++++++++++++ rnalysis/utils/io.py | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 976fd654..41ac98a3 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,18 @@ History ======= +3.10.1 (2023-11-15) +------------------- + +Added +******* + +Changed +******** + +Fixed +******* +* Fixed bug where trying to load sessions created with RNAlysis version 3.10.0 would result in an error. 3.10.0 (2023-10-31) ------------------- diff --git a/rnalysis/utils/io.py b/rnalysis/utils/io.py index c0ae00fc..08722db4 100644 --- a/rnalysis/utils/io.py +++ b/rnalysis/utils/io.py @@ -252,7 +252,7 @@ def load_gui_session(session_filename: Union[str, Path]): def load_table(filename: Union[str, Path], index_col: int = None, drop_columns: Union[str, List[str]] = False, - squeeze=False, comment: str = None, engine: Literal['pyarrow', None] = None): + squeeze=False, comment: str = None, engine: Literal['pyarrow', 'auto'] = 'auto'): """ loads a csv/parquet table into a pandas dataframe. @@ -281,7 +281,7 @@ def load_table(filename: Union[str, Path], index_col: int = None, drop_columns: if filename.suffix.lower() == '.parquet': df = pd.read_parquet(filename, engine=engine) else: - kwargs = dict(sep=None, engine='python' if engine is None else engine, encoding='ISO-8859-1', comment=comment, + kwargs = dict(sep=None, engine='python' if engine == 'auto' else engine, encoding='ISO-8859-1', comment=comment, skipinitialspace=True) if index_col is not None: kwargs['index_col'] = index_col