Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

254 unit tests for hotregion #482

Merged
merged 7 commits into from
Dec 6, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
removed | notation
  • Loading branch information
Basdorsman committed Dec 6, 2024
commit 7dcd565fccc09c5aecb83c3dd3cc5f8ac2e5a081
2 changes: 1 addition & 1 deletion xpsi/tests/test_hotregion.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_set_num_rays(self, num_rays):
test_hotregion=HotRegion(bounds=self.hot_bounds, values=self.hot_values)

fast_num_rays = 50
if isinstance(num_rays, float | int):
if isinstance(num_rays, (float, int)):
test_hotregion.set_num_rays(num_rays, fast_num_rays)
assert test_hotregion.num_rays == int(num_rays), f"Expected num_rays to be {num_rays}, got {test_hotregion.num_rays}"
assert test_hotregion._fast_num_rays == fast_num_rays, f"Expected _fast_num_rays to be {fast_num_rays}, got {test_hotregion._fast_num_rays}"
Expand Down
Loading