Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused PresenceResult attributes and types
Browse files Browse the repository at this point in the history
ivirshup committed Jan 28, 2025
1 parent 66224f5 commit 0c71b92
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -52,10 +52,8 @@

@attrs.define
class PresenceResult:
dataset_id: str
dataset_soma_joinid: int
eb_name: str
data: npt.NDArray[np.bool_]
cols: npt.NDArray[np.int64]


@@ -67,10 +65,6 @@ class AxisStats:
var_stats: pd.DataFrame


AccumulateXResult = tuple[PresenceResult, AxisStats]
AccumulateXResults = Sequence[AccumulateXResult]


def _assert_open_for_write(obj: somacore.SOMAObject | None) -> None:
assert obj is not None
assert obj.exists(obj.uri)
@@ -460,10 +454,8 @@ def compute_X_file_stats(
var_stats["n_measured_obs"] = n_obs
res["presence"].append(
PresenceResult(
dataset_id,
dataset_soma_joinid,
eb_name,
(var_stats.nnz > 0).to_numpy(),
var_stats.index.to_numpy(),
),
)

0 comments on commit 0c71b92

Please sign in to comment.