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 3, 2022
1 parent 7447d8e commit 5820757
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)
t = tbl.schema
a = 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 5820757

Please sign in to comment.