We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 098867f commit 2aff1c3Copy full SHA for 2aff1c3
2 files changed
src/sed/binning/binning.py
@@ -178,7 +178,7 @@ def bin_partition(
178
ranges=ranges,
179
)
180
elif hist_mode == "numpy":
181
- hist_partition, edges = np.histogramdd(
+ hist_partition, edges = np.histogramdd( # type: ignore
182
vals,
183
bins=bins,
184
range=ranges,
src/sed/binning/numba_bin.py
@@ -195,7 +195,7 @@ def numba_histogramdd(
195
num_rows, num_cols = sample.shape # pylint: disable=unused-variable
196
197
if isinstance(bins, (int, np.int_)): # bins provided as a single number
198
- bins = num_cols * [bins]
+ bins = cast(int, num_cols) * [bins]
199
num_bins = len(bins) # Number of dimensions in bins
200
201
if num_bins != num_cols: # check number of dimensions
0 commit comments