Your message dated Tue, 08 Dec 2020 15:37:22 +0000
with message-id <e1kmf3k-0004i6...@fasolo.debian.org>
and subject line Bug#975470: fixed in python-meshplex 0.15.5-1
has caused the Debian Bug report #975470,
regarding python-meshplex: autopkgtest regression on 32 bit archs: TypeError: 
Cannot cast array data from dtype('int64') to dtype('int32') according to the 
rule 'safe'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
975470: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975470
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-meshplex
Version: 0.15.3-1
X-Debbugs-CC: debian...@lists.debian.org
Severity: serious
User: debian...@lists.debian.org
Usertags: regression

Dear maintainer(s),

With a recent upload of python-meshplex the autopkgtest of
python-meshplex fails in testing when that autopkgtest is run with the
binary packages of python-meshplex from unstable on armhf and i386. It
passes when run with only packages from testing. In tabular form:

                       pass            fail
python-meshplex        from testing    0.15.3-1
all others             from testing    from testing

I copied some of the output at the bottom of this report. Seems like the
(test)code is written for 64 bit architectures.

Currently this regression is blocking the migration to testing [1]. Can
you please investigate the situation and fix it?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=python-meshplex

https://ci.debian.net/data/autopkgtest/testing/armhf/p/python-meshplex/8342685/log.gz

autopkgtest [23:10:36]: test command1: [-----------------------
============================= test session starts
==============================
platform linux -- Python 3.8.6, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
rootdir: /tmp/autopkgtest-lxc.2ukelk92/downtmp/build.2mK/src
collected 52 items

test/test_curl.py .
[  1%]
test/test_mesh_io.py F
[  3%]
test/test_mesh_line.py .
[  5%]
test/test_mesh_tetra.py ..........s
[ 26%]
test/test_mesh_tri.py F.................................
[ 92%]
test/test_readme.py s
[ 94%]
test/test_subdomain.py ...
[100%]

=================================== FAILURES
===================================
__________________________________ test_io_2d
__________________________________

    def test_io_2d():
>       vertices, cells = dmsh.generate(dmsh.Rectangle(0.0, 1.0, 0.0,
1.0), 0.5)

test/test_mesh_io.py:9:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/dmsh/main.py:173: in generate
    mesh = distmesh_smoothing(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

mesh = <meshplex triangle mesh, 11 cells, 14 points>
edges = array([[ 0,  1],
       [ 0,  4],
       [ 0,  5],
       [ 0,  6],
       [ 1,  5],
       [ 1,  8],
       [ 2,  3],...7],
       [ 6,  9],
       [ 7,  8],
       [ 7,  9],
       [ 7, 10],
       [ 8, 10],
       [ 9, 10]], dtype=int32)
geo = <dmsh.geometry.rectangle.Rectangle object at 0xf5036928>
num_feature_points = 4
edge_size_function = <function generate.<locals>.edge_size_function at
0xf4f79cd0>
max_steps = 10000, tol = 1e-05, verbose = False, show = False, delta_t = 0.2
f_scale = 1.2

    def distmesh_smoothing(
        mesh,
        edges,
        geo,
        num_feature_points,
        edge_size_function,
        max_steps,
        tol,
        verbose,
        show,
        delta_t,
        f_scale,
    ):
        k = 0
        # is_boundary_node = mesh.is_boundary_node.copy()
>       pts_old_last_recell = mesh.node_coords.copy()
E       AttributeError: 'MeshTri' object has no attribute 'node_coords'

/usr/lib/python3/dist-packages/dmsh/main.py:207: AttributeError
__________________________ test_unit_triangle[int64]
___________________________

cells_dtype = <class 'numpy.int64'>

    @pytest.mark.parametrize(
        "cells_dtype",
        [
            numpy.int64
            # depends on <https://github.com/numpy/numpy/issues/17760>
            # numpy.uint64
        ],
    )
    def test_unit_triangle(cells_dtype):
        points = numpy.array([[0.0, 0.0], [1.0, 0.0], [0.0, 1.0]])
        cells = numpy.array([[0, 1, 2]], dtype=cells_dtype)
        mesh = meshplex.MeshTri(points, cells)

        tol = 1.0e-14

        assert (mesh.local_idx.T == [[1, 2], [2, 0], [0, 1]]).all()
        assert mesh.local_idx_inv == [[(0, 2), (1, 1)], [(0, 0), (1,
2)], [(0, 1), (1, 0)]]

        # ce_ratios
        assert near_equal(mesh.ce_ratios.T, [0.0, 0.5, 0.5], tol)

        # control volumes
>       assert near_equal(mesh.control_volumes, [0.25, 0.125, 0.125], tol)

test/test_mesh_tri.py:38:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/meshplex/mesh_tri.py:348: in control_volumes
    return self.get_control_volumes()
/usr/lib/python3/dist-packages/meshplex/mesh_tri.py:337: in
get_control_volumes
    self._control_volumes = numpy.bincount(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

args = (array([0, 1, 2], dtype=int64),)
kwargs = {'minlength': 3, 'weights': array([0.25 , 0.125, 0.125])}
relevant_args = (array([0, 1, 2], dtype=int64), array([0.25 , 0.125,
0.125]))

>   ???
E   TypeError: Cannot cast array data from dtype('int64') to
dtype('int32') according to the rule 'safe'

<__array_function__ internals>:5: TypeError
=============================== warnings summary
===============================
test/test_mesh_tri.py::test_regular_tri_additional_points
  /usr/lib/python3/dist-packages/meshplex/mesh_tri.py:399:
RuntimeWarning: invalid value encountered in true_divide
    self._cv_centroids /= cv

-- Docs: https://docs.pytest.org/en/latest/warnings.html
========== 2 failed, 48 passed, 2 skipped, 1 warnings in 4.35 seconds
==========
autopkgtest [23:10:42]: test command1: -----------------------]

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: python-meshplex
Source-Version: 0.15.5-1
Done: Drew Parsons <dpars...@debian.org>

We believe that the bug you reported is fixed in the latest version of
python-meshplex, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 975...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Drew Parsons <dpars...@debian.org> (supplier of updated python-meshplex package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 08 Dec 2020 23:02:16 +0800
Source: python-meshplex
Architecture: source
Version: 0.15.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Drew Parsons <dpars...@debian.org>
Closes: 975470
Changes:
 python-meshplex (0.15.5-1) unstable; urgency=medium
 .
   * New upstream release
     - fixes 32-bit and edge tests. Closes: #975470.
   * Build-Depends: python3-pytest to run build-time tests
     - skip test_io at build-time since it's patched to use dmsh
Checksums-Sha1:
 53f95472ac51a4fef4ae59e33ec781bbfb019ef1 2438 python-meshplex_0.15.5-1.dsc
 f1530291a5c64a89ec5bfd1b885ef2b1820eeed0 63711 
python-meshplex_0.15.5.orig.tar.gz
 f83287a6cd61f7f9019b3ca1f1f42dd3989f3c55 122036 
python-meshplex_0.15.5-1.debian.tar.xz
Checksums-Sha256:
 f6ed4b12d2eea99655b09c2bc95bf5188ee8d61c73d5e9f74b42d79505dab771 2438 
python-meshplex_0.15.5-1.dsc
 d1dbc8bf6bf17d380769d7e4c5e63e796dc21c8c03c36efbaa54c29f9856e3d1 63711 
python-meshplex_0.15.5.orig.tar.gz
 5ae0b86b116b386cc0c0cf7c8219e3c3afa78ae83da1db089b1ff5b1a1843366 122036 
python-meshplex_0.15.5-1.debian.tar.xz
Files:
 cc2b42a500bf0f0d037ffeef8182212d 2438 python optional 
python-meshplex_0.15.5-1.dsc
 569c457e6c389be71de7c854d83ce638 63711 python optional 
python-meshplex_0.15.5.orig.tar.gz
 bc076a642ce6a8816ed7aecee89be687 122036 python optional 
python-meshplex_0.15.5-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEI8mpPlhYGekSbQo2Vz7x5L1aAfoFAl/PlmsACgkQVz7x5L1a
AfpmBBAAsNPr7uHx67/ng09Km5YSMq7MS0yUIzgXrNnRJ9yE6282aD4+VI8iOC9x
myf/sAxzr+T/uozTMD0LseQKIE70nb+ItFxWXqoNFaNSDzh2pXJXlBdfgvDeR2DI
C0BCK2CIuVX8LKzs9sJ2enIisp+OBlk17TrrOBoZBk9Y0llEvNYwfXxnKvgKsF/I
8+yEOyzmNS81QPj1Mv6/l5+fWScx70Ql/EtlUoniNEz3g/aZ019Xgb4VLPCAmRr4
qsk/jcfRU9ulNyacbf5al8Wux0Wmlte9i+qYBjejtNqzvRLLcP7YIWYxUqi0bbST
yZgNSkhh/XNdcv+eE/2TZqpFu69KuLa7R7Basds9ed/0QYNMZcdftblEAq2DmPfG
G6ex4DA/GGnCTwpWBcHfjP0gantCvwTPxOhX5P7xMsL0itUBXLiL16fjAPF+Mz6R
Pbv007dmT8KjuhYFpeliUDJbnF0jDxYOQsIa7kHtZIKF8+YU+Fwy+na9IqerJ9LA
NpnGgEs5YiW/zhQ9tNqo6qzk+NthTeo/KpElJk1bzcDCRLwP4IyANiZa339B3xEM
vKUhinzeXlz/fuAjRKzznhxOFvxZWF5VmGXRwSjDrEzm7VMyFXgsNjqWPEaXVuS8
sESOMOd1KXBu04QPAR2YQMybYtz1uC2U4WyM9IdE2d3apLpyuQU=
=xehE
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to