Title: test_huge_range_log is failing... · Issue #20487 · matplotlib/matplotlib · GitHub
Open Graph Title: test_huge_range_log is failing... · Issue #20487 · matplotlib/matplotlib
X Title: test_huge_range_log is failing... · Issue #20487 · matplotlib/matplotlib
Description: Bug report lib/matplotlib/tests/test_image.py::test_huge_range_log is failing quite a few of the CI runs with a Value Error. I cannot reproduce locally, so I assume there was a numpy change somewhere... This test came in #18458 lib/matpl...
Open Graph Description: Bug report lib/matplotlib/tests/test_image.py::test_huge_range_log is failing quite a few of the CI runs with a Value Error. I cannot reproduce locally, so I assume there was a numpy change somewhe...
X Description: Bug report lib/matplotlib/tests/test_image.py::test_huge_range_log is failing quite a few of the CI runs with a Value Error. I cannot reproduce locally, so I assume there was a numpy change somewhe...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20487
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_huge_range_log is failing...","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n`lib/matplotlib/tests/test_image.py::test_huge_range_log` is failing quite a few of the CI runs with a Value Error. \r\n\r\nI cannot reproduce locally, so I assume there was a numpy change somewhere...\r\n\r\nThis test came in #18458\r\n\r\n\r\n```\r\nlib/matplotlib/image.py:638: in draw\r\n im, l, b, trans = self.make_image(\r\nlib/matplotlib/image.py:924: in make_image\r\n return self._make_image(self._A, bbox, transformed_bbox, clip,\r\nlib/matplotlib/image.py:542: in _make_image\r\n output = self.norm(resampled_masked)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\nself = \u003cmatplotlib.colors.LogNorm object at 0x7f057193f430\u003e\r\nvalue = masked_array(\r\n data=[[--, --, --, ..., --, --, --],\r\n [--, --, --, ..., --, --, --],\r\n [--, --, --, ..., ... False, False, ..., False, False, False],\r\n [False, False, False, ..., False, False, False]],\r\n fill_value=1e+20)\r\nclip = False\r\n\r\n def __call__(self, value, clip=None):\r\n value, is_scalar = self.process_value(value)\r\n self.autoscale_None(value)\r\n if self.vmin \u003e self.vmax:\r\n raise ValueError(\"vmin must be less or equal to vmax\")\r\n if self.vmin == self.vmax:\r\n return np.full_like(value, 0)\r\n if clip is None:\r\n clip = self.clip\r\n if clip:\r\n value = np.clip(value, self.vmin, self.vmax)\r\n t_value = self._trf.transform(value).reshape(np.shape(value))\r\n t_vmin, t_vmax = self._trf.transform([self.vmin, self.vmax])\r\n if not np.isfinite([t_vmin, t_vmax]).all():\r\n\u003e raise ValueError(\"Invalid vmin or vmax\")\r\nE ValueError: Invalid vmin or vmax\r\nlib/matplotlib/colors.py:1477: ValueError\r\n```\r\n\r\n","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2021-06-22T21:55:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/20487/matplotlib/issues/20487"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ae2c5d92-5325-5b3b-3153-53796c8ab44b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C104:191DCC:2CDF3A0:3C48E18:6A53B9D2 |
| html-safe-nonce | eb3d806b5b0cbb4872d0a6b421f6996c7b9cd2854deced78129dae420093f260 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTA0OjE5MURDQzoyQ0RGM0EwOjNDNDhFMTg6NkE1M0I5RDIiLCJ2aXNpdG9yX2lkIjoiNTE4NjI5MDM0NTkxNTQzMTM3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a893f73da340f5cbe8ee0d6bf572cf0ba5f4e35f1fef17c0efbae74ded38fa08 |
| hovercard-subject-tag | issue:927664403 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/20487/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06291c65a1e6dc9ccbd201ef7bf598466f4767b8ff8b63f0568cc7ac9bf15029/matplotlib/matplotlib/issues/20487 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06291c65a1e6dc9ccbd201ef7bf598466f4767b8ff8b63f0568cc7ac9bf15029/matplotlib/matplotlib/issues/20487 |
| og:image:alt | Bug report lib/matplotlib/tests/test_image.py::test_huge_range_log is failing quite a few of the CI runs with a Value Error. I cannot reproduce locally, so I assume there was a numpy change somewhe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jklymak |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width