Skip to content

Commit

Permalink
Convert to int when number of rows is guessed (#96).
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche authored Jan 23, 2024
1 parent 84777a0 commit 72abd38
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/biocframe/BiocFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,12 @@ def __init__(
if row_names is not None and not isinstance(row_names, ut.Names):
row_names = ut.Names(row_names)
self._row_names = row_names
self._number_of_rows = _guess_number_of_rows(
number_of_rows,
self._data,
self._row_names,
self._number_of_rows = int(
_guess_number_of_rows(
number_of_rows,
self._data,
self._row_names,
)
)

if column_names is None:
Expand Down

0 comments on commit 72abd38

Please sign in to comment.