File: complex128

package info (click to toggle)
python-pyorick 1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: python: 1,781; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 904 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: replace np.complex_ with np.complex128
 `np.complex_` was removed in the NumPy 2.0 release. Use
 `np.complex128` instead.
Author: Thibaut Paumard <thibaut@debian.org>
Origin: vendor
Bug: https://github.com/LLNL/pyorick/issues/7
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1095374
Last-Update: 2025-02-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/pyorick/pyorick.py
+++ b/pyorick/pyorick.py
@@ -822,7 +822,7 @@
 id_types = [c_byte, c_short, c_int, c_long, c_longlong,
             c_float, c_double, c_longdouble,
             c_ubyte, c_ushort, c_uint, c_ulong, c_ulonglong,
-            np.csingle, np.complex_, None]  # no portable complex long double
+            np.csingle, np.complex128, None]  # no portable complex long double
 
 # other passive messages (reply prohibited):
 ID_STRING, ID_SLICE, ID_NIL, ID_LST, ID_DCT, ID_EOL =\