issues: 1974681146
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1974681146 | PR_kwDOAMm_X85edMm- | 8404 | Hypothesis strategy for generating Variable objects | 35968931 | closed | 0 | 6 | 2023-11-02T17:04:03Z | 2023-12-05T22:45:57Z | 2023-12-05T22:45:57Z | MEMBER | 0 | pydata/xarray/pulls/8404 | Breaks out just the part of #6908 needed for generating arbitrary EDIT: Check out this test which performs a mean on any subset of any Variable object! ```python In [36]: from xarray.testing.strategies import variables In [37]: variables().example() <xarray.Variable (ĭ: 3)> array([-2.22507386e-313-6.62447795e+016j, nan-6.46207519e+185j, -2.22507386e-309+3.33333333e-001j]) ``` @andersy005 @maxrjones @jhamman I thought this might be useful for the @keewis and @Zac-HD sorry for letting that PR languish for literally a year :sweat_smile: This PR addresses your feedback about accepting a callable that returns a strategy generating arrays. That suggestion makes some things a bit more complex in user code but actually allows me to simplify the internals of the
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/8404/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
13221727 | pull |