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

Update trace.py tests / fix some warnings #307

Merged
merged 3 commits into from
Apr 29, 2022

Conversation

bryevdv
Copy link
Contributor

@bryevdv bryevdv commented Apr 28, 2022

This PR updates and moves the trace.py test that missed #297

This PR also fixes a few warning conditions that were being reported at the end of pytest runs

@@ -97,7 +97,7 @@ def is_supported_dtype(dtype: Any) -> bool:


def calculate_volume(shape: tuple[int, ...]) -> int:
if shape == ():
if len(shape) == 0:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@magnatelee This was causing a warning because sometimes the shape passed in was a numpy array. This seems like an OK immediate fix until more in-depth typing work is started (and the proper fix in any case if arrays are valid inputs)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I noticed the same warning today and put in exactly the same fix in my local change. I'll chase down where the numpy array is being passed and fix it as well

@bryevdv bryevdv changed the title Bryanv/pytest warnings Update trace.py tests / fix some warnings Apr 28, 2022
@bryevdv bryevdv merged commit 1079027 into nv-legate:branch-22.05 Apr 29, 2022
@bryevdv bryevdv deleted the bryanv/pytest_warnings branch April 29, 2022 16:45
manopapad added a commit to manopapad/cunumeric that referenced this pull request Sep 7, 2022
* Required core changes for cunumeric#474

* Don't expose Storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants