spacetelescope / spherical_geometry

A Python package for handling spherical polygons that represent arbitrary regions of the sky
http://spherical-geometry.readthedocs.io/
61 stars 31 forks source link

win32: test_almost_identical_polygons_multi_union fails #244

Open pllim opened 11 months ago

pllim commented 11 months ago

Seen in https://github.com/spacetelescope/spherical_geometry/pull/243 when I tried.

  _________________ test_almost_identical_polygons_multi_union __________________

      def test_almost_identical_polygons_multi_union():
          filename = resolve_imagename(ROOT_DIR,'almost_same_polygons.npz')
          polygon_data = np.load(filename)

          polygons = []
          for k in range(len(polygon_data.files) // 2):
              polygons.append(
                  polygon.SphericalPolygon(
                      polygon_data[f'p{k:02d}_points'],
                      inside=polygon_data[f'p{k:02d}_inside']
                  )
              )

          p = polygon.SphericalPolygon.multi_union(polygons)
  >       assert np.shape(list(p.points)[0]) == (66, 3)
  E       assert (68, 3) == (66, 3)
  E         At index 0 diff: 68 != 66
  E         Full diff:
  E         - (66, 3)
  E         ?   ^
  E         + (68, 3)
  E         ?   ^

spherical_geometry\tests\test_union.py:342: AssertionError