Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenv committed Nov 20, 2023
1 parent ab5712b commit 8cee72f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libtiledbsoma/test/test_soma_array.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env python

import os
import json
import os

import pyarrow as pa

import tiledbsoma.pytiledbsoma as clib

VERBOSE = False
Expand Down Expand Up @@ -51,19 +52,21 @@ def test_soma_array_obs():
assert sr.results_complete()
assert arrow_table.num_rows == 2638


def test_soma_array_stats():
"""Get query stats from an obs array."""

name = "obs"
uri = os.path.join(SOMA_URI, name)
sr = clib.SOMAArray(uri)
sr.read_next()
stats = json.loads(sr.stats())

assert "Context.StorageManager.Query.Reader.dowork.sum" in stats["timers"]
assert "Context.StorageManager.Query.Reader.dowork.avg" in stats["timers"]
assert "Context.StorageManager.Query.Reader.loop_num" in stats["counters"]


def test_soma_array_var():
"""Read all values from var array into an arrow table."""

Expand Down

0 comments on commit 8cee72f

Please sign in to comment.