@@ -54,7 +54,7 @@ def test_xaxis_attr() -> None:
54
54
assert units .tag == "attr"
55
55
assert units .type is str
56
56
assert units .value == "pixel"
57
- assert units .cast == False
57
+ assert units .cast is False
58
58
59
59
60
60
def test_xaxis_data () -> None :
@@ -64,7 +64,7 @@ def test_xaxis_data() -> None:
64
64
assert data .dims == ("x" ,)
65
65
assert data .dtype == "int"
66
66
assert data .base is None
67
- assert data .cast == True
67
+ assert data .cast is True
68
68
69
69
70
70
def test_yaxis_attr () -> None :
@@ -73,7 +73,7 @@ def test_yaxis_attr() -> None:
73
73
assert units .tag == "attr"
74
74
assert units .type is str
75
75
assert units .value == "pixel"
76
- assert units .cast == False
76
+ assert units .cast is False
77
77
78
78
79
79
def test_yaxis_data () -> None :
@@ -83,7 +83,7 @@ def test_yaxis_data() -> None:
83
83
assert data .dims == ("y" ,)
84
84
assert data .dtype == "int"
85
85
assert data .base is None
86
- assert data .cast == True
86
+ assert data .cast is True
87
87
88
88
89
89
def test_image_coord () -> None :
@@ -93,23 +93,23 @@ def test_image_coord() -> None:
93
93
assert mask .dims == ("x" , "y" )
94
94
assert mask .dtype == "bool"
95
95
assert mask .base is None
96
- assert mask .cast == True
96
+ assert mask .cast is True
97
97
98
98
x = image_model .coords [1 ]
99
99
assert x .name == "x"
100
100
assert x .tag == "coord"
101
101
assert x .dims == ("x" ,)
102
102
assert x .dtype == "int"
103
103
assert x .base is XAxis
104
- assert x .cast == True
104
+ assert x .cast is True
105
105
106
106
y = image_model .coords [2 ]
107
107
assert y .name == "y"
108
108
assert y .tag == "coord"
109
109
assert y .dims == ("y" ,)
110
110
assert y .dtype == "int"
111
111
assert y .base is YAxis
112
- assert y .cast == True
112
+ assert y .cast is True
113
113
114
114
115
115
def test_image_data () -> None :
@@ -119,7 +119,7 @@ def test_image_data() -> None:
119
119
assert data .dims == ("x" , "y" )
120
120
assert data .dtype == "float"
121
121
assert data .base is None
122
- assert data .cast == True
122
+ assert data .cast is True
123
123
124
124
125
125
def test_color_data () -> None :
@@ -129,20 +129,20 @@ def test_color_data() -> None:
129
129
assert red .dims == ("x" , "y" )
130
130
assert red .dtype == "float"
131
131
assert red .base is Image
132
- assert red .cast == True
132
+ assert red .cast is True
133
133
134
134
green = color_model .data_vars [1 ]
135
135
assert green .name == "green"
136
136
assert green .tag == "data"
137
137
assert green .dims == ("x" , "y" )
138
138
assert green .dtype == "float"
139
139
assert green .base is Image
140
- assert green .cast == True
140
+ assert green .cast is True
141
141
142
142
blue = color_model .data_vars [2 ]
143
143
assert blue .name == "blue"
144
144
assert blue .tag == "data"
145
145
assert blue .dims == ("x" , "y" )
146
146
assert blue .dtype == "float"
147
147
assert blue .base is Image
148
- assert blue .cast == True
148
+ assert blue .cast is True
0 commit comments