Bug#982471: python3-openems: SmoothMeshLines.py does not work with recent versions of numpy

g.l. gragnani gianluigi.gragnani at unige.it
Wed Feb 10 15:29:06 GMT 2021


Package: python3-openems
Version: 0.0.35+git20190103.6a75e98+dfsg.1-2+b6
Severity: grave
Justification: renders package unusable

Dear Maintainer,

the version of the CSXCAD python interface is a little bit outdated and the function
SmoothMeshLines.py raises the following error:

File "/usr/lib/python3/dist-packages/CSXCAD/SmoothMeshLines.py", line 66, in SmoothRange
    return np.linspace(start, stop, N+1)
  File "<__array_function__ internals>", line 5, in linspace
  File "/usr/lib/python3/dist-packages/numpy/core/function_base.py", line 113, in linspace
    num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer

This has been fixed upstream and is due to line 65, which should read
N = np.ceil(rng/max_res).astype('int')
instead of
N = np.ceil(rng/max_res)

I have just now begun to use the python interface to OpenEMS and CSXCAD, instead of the Octave one, but I guess
that this error could affect most (if not all) of the simulations.
Best regards.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-openems depends on:
ii  libc6               2.31-9
ii  libcsxcad0          0.0.35+git20190103.6a75e98+dfsg.1-2+b6
ii  libgcc-s1           10.2.1-6
ii  libnf2ff0           0.0.35+git20190103.6a75e98+dfsg.1-2+b6
ii  libopenems0         0.0.35+git20190103.6a75e98+dfsg.1-2+b6
ii  libstdc++6          10.2.1-6
ii  openems             0.0.35+git20190103.6a75e98+dfsg.1-2+b6
ii  python3             3.9.1-1
ii  python3-h5py        2.10.0-9
ii  python3-matplotlib  3.3.4-1

python3-openems recommends no packages.

python3-openems suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list