Skip to content

Commit

Permalink
debug unit-test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Oct 4, 2022
1 parent 9215877 commit be5349f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apis/python/tests/test_soma_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,23 @@ def _check_tbl(tbl, col_names, ids):
len(schema.names) if col_names is None else len(col_names)
)
assert tbl.num_rows == (n_data if ids is None else len(ids))
print("")
print("COL_NAMES", col_names)
r = tbl.schema
i = pa.schema(
[
schema.field(f)
for f in (col_names if col_names is not None else schema.names)
]
)
print("READBACK SCHEMA", type(tbl))
print(r)
print("INPUT SCHEMA")
print(i)
print("CMP", r==i)

print("")

assert tbl.schema == pa.schema(
[
schema.field(f)
Expand Down

0 comments on commit be5349f

Please sign in to comment.