Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Bugfix/fix tests on i386 #249

Merged
merged 5 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions datatree/tests/test_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ def test_diff_node_names(self):
assert actual == expected

def test_diff_node_data(self):
ds1 = Dataset({"u": 0, "v": 1})
ds3 = Dataset({"w": 5})
import numpy as np

ds1 = Dataset({"u": np.int64(0), "v": np.int64(1)})
TomNicholas marked this conversation as resolved.
Show resolved Hide resolved
ds3 = Dataset({"w": np.int64(5)})
dt_1 = DataTree.from_dict({"a": ds1, "a/b": ds3})
ds2 = Dataset({"u": 0})
ds4 = Dataset({"w": 6})
ds2 = Dataset({"u": np.int64(0)})
ds4 = Dataset({"w": np.int64(6)})
dt_2 = DataTree.from_dict({"a": ds2, "a/b": ds4})

expected = dedent(
Expand Down
2 changes: 2 additions & 0 deletions docs/source/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Deprecations
Bug fixes
~~~~~~~~~

- Fix unittests on i386. (:pull:`249`)
By `Antonio Valentino <https://github.com/avalentino>`_.
- Ensure nodepath class is compatible with python 3.12 (:pull:`260`)
By `Max Grover <https://github.com/mgrover1>`_.

Expand Down
Loading