From ba9d324739628d5a06e69b5a1ef7517970b28849 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:25:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cell2location/distributions/NegativeBinomial.py | 1 + cell2location/distributions/transforms.py | 1 + cell2location/plt/RotateCrop.py | 1 + 3 files changed, 3 insertions(+) diff --git a/cell2location/distributions/NegativeBinomial.py b/cell2location/distributions/NegativeBinomial.py index 8d42ce0a..772c3a9c 100755 --- a/cell2location/distributions/NegativeBinomial.py +++ b/cell2location/distributions/NegativeBinomial.py @@ -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), diff --git a/cell2location/distributions/transforms.py b/cell2location/distributions/transforms.py index 77b00f63..4ae68a29 100644 --- a/cell2location/distributions/transforms.py +++ b/cell2location/distributions/transforms.py @@ -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 diff --git a/cell2location/plt/RotateCrop.py b/cell2location/plt/RotateCrop.py index 8d61ef9b..fb69d1b6 100644 --- a/cell2location/plt/RotateCrop.py +++ b/cell2location/plt/RotateCrop.py @@ -1,4 +1,5 @@ r"""Class for rotating and cropping images.""" + import cv2 as cv import numpy as np