File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 9
9
pytest .importorskip ("hypothesis" )
10
10
11
11
import hypothesis .strategies as st
12
- from hypothesis import assume , note , settings
12
+ from hypothesis import note , settings
13
13
from hypothesis .stateful import (
14
14
RuleBasedStateMachine ,
15
15
invariant ,
@@ -59,9 +59,6 @@ def __init__(self):
59
59
)
60
60
)
61
61
def add_dim_coord (self , var ):
62
- # https://github.com/HypothesisWorks/hypothesis/issues/3943
63
- assume (np .all (~ np .isnat (var .data )) if var .dtype .kind in ["mM" ] else True )
64
-
65
62
(name ,) = var .dims
66
63
note (f"adding dimension coordinate { name } " )
67
64
# dim coord
@@ -73,9 +70,6 @@ def add_dim_coord(self, var):
73
70
74
71
@rule (var = xrst .index_variables (dims = DIM_NAME ))
75
72
def assign_coords (self , var ):
76
- # https://github.com/HypothesisWorks/hypothesis/issues/3943
77
- assume (np .all (~ np .isnat (var .data )) if var .dtype .kind in ["mM" ] else True )
78
-
79
73
(name ,) = var .dims
80
74
note (f"assign_coords: { name } " )
81
75
self .dataset = self .dataset .assign_coords ({name : var })
You can’t perform that action at this time.
0 commit comments