-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# tests for gh issues. to be cleaned up and moved to the right place eventually | ||
from scida import load | ||
from tests.testdata_properties import require_testdata_path | ||
|
||
|
||
@require_testdata_path("interface", only=["TNG50-4_snapshot"]) | ||
def test_issue_59(testdatapath): | ||
# current testing of interface did not include units=True yet. | ||
obj = load(testdatapath, units=False) | ||
_ = obj.return_data(haloID=42) | ||
# for units=True, this would be a pint.Quantity, so we need to check for that | ||
# in the Selector | ||
obj = load(testdatapath, units=True) | ||
_ = obj.return_data(haloID=42) |