File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -311,14 +311,11 @@ class Custom(xr.DataArray):
311
311
print (" Custom method!" )
312
312
313
313
314
- dataoptions = DataOptions(Custom)
315
-
316
-
317
314
@dataclass
318
315
class Image (AsDataArray ):
319
316
""" Specs for a monochromatic image."""
320
317
321
- __dataoptions__ = dataoptions
318
+ __dataoptions__ = DataOptions(Custom)
322
319
323
320
data: Data[tuple[X, Y], float ]
324
321
x: Coord[X, int ] = 0
Original file line number Diff line number Diff line change @@ -32,14 +32,11 @@ class Custom(xr.DataArray):
32
32
__slots__ = ()
33
33
34
34
35
- dataoptions = DataOptions (Custom )
36
-
37
-
38
35
@dataclass
39
36
class Image (AsDataArray ):
40
37
"""Specs for a monochromatic image."""
41
38
42
- __dataoptions__ = dataoptions
39
+ __dataoptions__ = DataOptions ( Custom )
43
40
44
41
data : Data [Tuple [X , Y ], float ]
45
42
x : Coord [X , int ] = 0
Original file line number Diff line number Diff line change @@ -30,9 +30,6 @@ class Custom(xr.Dataset):
30
30
__slots__ = ()
31
31
32
32
33
- dataoptions = DataOptions (Custom )
34
-
35
-
36
33
@dataclass
37
34
class Image (AsDataArray ):
38
35
"""Specs for a monochromatic image."""
@@ -44,7 +41,7 @@ class Image(AsDataArray):
44
41
class ColorImage (AsDataset ):
45
42
"""Specs for a color image."""
46
43
47
- __dataoptions__ = dataoptions
44
+ __dataoptions__ = DataOptions ( Custom )
48
45
49
46
red : Data [Tuple [X , Y ], float ]
50
47
green : Data [Tuple [X , Y ], float ]
You can’t perform that action at this time.
0 commit comments