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 — pass type instead of dtype instance · numpy/numpy@0f8b04d

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
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4580,7 +4580,7 @@ def _lerp(a, b, t, out=None):
45804580
# asanyarray is a stop-gap until gh-13105
45814581
lerp_interpolation = asanyarray(add(a, diff_b_a * t, out=out))
45824582
subtract(b, diff_b_a * (1 - t), out=lerp_interpolation, where=t >= 0.5,
4583-
casting='unsafe', dtype=lerp_interpolation.dtype)
4583+
casting='unsafe', dtype=type(lerp_interpolation.dtype))
45844584
if lerp_interpolation.ndim == 0 and out is None:
45854585
lerp_interpolation = lerp_interpolation[()] # unpack 0d arrays
45864586
return lerp_interpolation

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.