GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — whitespace · numpy/numpy@3512830

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • numpy/lib
    • _function_base_impl.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎numpy/lib/_function_base_impl.py‎

Copy file name to clipboardExpand all lines: numpy/lib/_function_base_impl.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4733,15 +4733,17 @@ def _quantile(
47334733
raise ValueError(
47344734
f"{method!r} is not a valid method. Use one of: "
47354735
f"{_QuantileMethods.keys()}") from None
4736-
virtual_indexes = method_props["get_virtual_index"](values_count, quantiles)
4736+
virtual_indexes = method_props["get_virtual_index"](values_count,
4737+
quantiles)
47374738
virtual_indexes = np.asanyarray(virtual_indexes)
47384739

47394740
supports_nans = (
47404741
np.issubdtype(arr.dtype, np.inexact) or arr.dtype.kind in 'Mm')
47414742

47424743
int_virtual_indices = np.issubdtype(virtual_indexes.dtype, np.integer)
47434744
supports_integers = method_props["fix_gamma"] is None
4744-
supports_integers = supports_integers or method == 'linear' and int_virtual_indices
4745+
supports_integers = supports_integers or \
4746+
(method == 'linear' and int_virtual_indices)
47454747

47464748
if supports_integers:
47474749
# No interpolation needed, take the points along axis

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.