Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: '23.10.1'
- repo: https://github.com/psf/black-pre-commit-mirror
rev: '26.3.1'
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 8.0.1
hooks:
- id: isort
name: isort (python)
Expand Down
1 change: 1 addition & 0 deletions cell2location/distributions/NegativeBinomial.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class NegativeBinomial(Distribution):
one parameterization to another.

"""

arg_constraints = {
"mu": constraints.greater_than_eq(0),
"theta": constraints.greater_than_eq(0),
Expand Down
1 change: 1 addition & 0 deletions cell2location/distributions/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class SoftplusTransform(Transform):
r"""
Transform via the mapping :math:`\text{Softplus}(x) = \log(1 + \exp(x))`.
"""

domain = constraints.real_vector
codomain = constraints.positive

Expand Down
1 change: 1 addition & 0 deletions cell2location/plt/RotateCrop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
r"""Class for rotating and cropping images."""

import cv2 as cv
import numpy as np

Expand Down
Loading