Skip to content

Commit f89407d

Browse files
committed
Fix factory default dtype
1 parent 5b183c7 commit f89407d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mdio/core/v1/factory.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def __init__(self):
3333
self._dim_names = ["inline", "crossline", "sample"]
3434
self._chunks = [128, 128, 128] # 8 mb
3535
self._coords = {
36-
"cdp-x": ("float32", {"unitsV1": {"length": "m"}}, self._dim_names[:-1]),
37-
"cdp-y": ("float32", {"unitsV1": {"length": "m"}}, self._dim_names[:-1]),
36+
"cdp-x": ("float64", {"unitsV1": {"length": "m"}}, self._dim_names[:-1]),
37+
"cdp-y": ("float64", {"unitsV1": {"length": "m"}}, self._dim_names[:-1]),
3838
}
3939

4040
def create(
@@ -186,8 +186,8 @@ def __init__(self, domain: str):
186186
self._dim_names = ["inline", "crossline", "offset", domain]
187187
self._chunks = [1, 1, 512, 4096] # 8 mb
188188
self._coords = {
189-
"cdp-x": ("float32", {"length": "m"}, self._dim_names[:-2]),
190-
"cdp-y": ("float32", {"length": "m"}, self._dim_names[:-2]),
189+
"cdp-x": ("float64", {"length": "m"}, self._dim_names[:-2]),
190+
"cdp-y": ("float64", {"length": "m"}, self._dim_names[:-2]),
191191
}
192192

193193
def create(

0 commit comments

Comments
 (0)