Skip to content

Commit

Permalink
Fixed xls processing of cell values
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 19, 2024
1 parent e1cb536 commit 5e555ad
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions pypath/inputs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,7 @@ def read_xls(
warnings.simplefilter('ignore')

table = [
[
(
cell
if isinstance(cell, str) else
cell.value
if cell is not None else
''
)
for cell in row
]
[getattr(cell, 'value', cell or '') for cell in row]
for row in (sheet[cell_range] if cell_range else sheet.values)
]

Expand Down

0 comments on commit 5e555ad

Please sign in to comment.