Skip to content

Commit

Permalink
* Fixed bug where trying to load sessions created with RNAlysis versi…
Browse files Browse the repository at this point in the history
…on 3.10.0 would result in an error.
  • Loading branch information
GuyTeichman committed Nov 13, 2023
1 parent 6f920fd commit 6acb871
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
-------------------
Expand Down
4 changes: 2 additions & 2 deletions rnalysis/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6acb871

Please sign in to comment.