Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
CorticalParcellationStats.read: exclude block depending on pandas ver…
Browse files Browse the repository at this point in the history
…sion from coverage check
  • Loading branch information
fphammerle committed May 30, 2020
1 parent a6925fd commit 6be0b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freesurfer_stats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ def read(cls, path: typing.Union[str, pathlib.Path]) -> "CorticalParcellationSta
) = pandas.io.common.get_filepath_or_buffer(path)
# https://github.com/pandas-dev/pandas/blob/v0.25.3/pandas/io/common.py#L171
# https://github.com/pandas-dev/pandas/blob/v0.21.0/pandas/io/common.py#L171
if instructions:
if instructions: # pragma: no cover
assert len(instructions) == 1, instructions
should_close = instructions[0]
else:
else: # pragma: no cover
should_close = hasattr(path_or_buffer, "close")
stats = cls()
if hasattr(path_or_buffer, "readline"):
Expand Down

0 comments on commit 6be0b68

Please sign in to comment.