Skip to content

Commit

Permalink
Fixed pandas group by operation for validation checks (BiocPy#10)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.286 → v0.0.287](astral-sh/ruff-pre-commit@v0.0.286...v0.0.287)

* fix tuple on pandas group by operation

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jayaram Kancherla <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and jkanche authored Sep 5, 2023
1 parent d936213 commit e0bb280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.286
rev: v0.0.287
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
5 changes: 2 additions & 3 deletions src/multiassayexperiment/MultiAssayExperiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ class MultiAssayExperiment:
Each sample in ``col_data`` may map to one or more columns per assay.
This table can be created automatically in simple usecases, Checkout the
:py:class:`~multiassayexperiment.io.interface.make_mae`, or import functions to
read data as ``MultiAssayExperiment`` like
read data as ``MultiAssayExperiment`` from
:py:class:`~multiassayexperiment.io.mudata.from_mudata` and
:py:class:`~multiassayexperiment.io.anndata.from_anndata`.
Expand Down Expand Up @@ -168,7 +167,7 @@ def _validate_sample_map_with_Expts(
)

# check if colnames exist
agroups = sample_map.groupby(["assay"])
agroups = sample_map.groupby("assay")
for group, rows in agroups:
if group not in experiments:
raise ValueError(
Expand Down

0 comments on commit e0bb280

Please sign in to comment.