Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More type hinting for the codebase #265

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
6 changes: 5 additions & 1 deletion dclab/features/bright.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
RT-DC event image mask.
"""
import numpy as np
import numpy.typing as npt


def get_bright(mask, image, ret_data="avg,sd"):
def get_bright(
mask: npt.NDArray[np.bool] | list[npt.NDArray[np.bool]],
PinkShnack marked this conversation as resolved.
Show resolved Hide resolved
image: npt.NDArray | list[npt.NDArray],
ret_data: str = "avg,sd"):
"""Compute avg and/or std of the event brightness

The event brightness is defined by the gray-scale values of the
Expand Down
Loading