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

Add test_elements.py #778

Merged
merged 4 commits into from
Jan 30, 2024
Merged

Add test_elements.py #778

merged 4 commits into from
Jan 30, 2024

Conversation

mscroggs
Copy link
Member


def random_point(cell):
vertices = basix.geometry(basix.cell.string_to_type(cell))
w = np.random.random(len(vertices))

Check notice

Code scanning / SonarCloud

numpy.random.Generator should be preferred to numpy.random.RandomState Low test

Use a "numpy.random.Generator" here instead of this legacy function. See more on SonarCloud
@mscroggs mscroggs added this pull request to the merge queue Jan 30, 2024
Merged via the queue into main with commit 949f6e8 Jan 30, 2024
19 checks passed
@mscroggs mscroggs deleted the mscroggs/test_elements.py branch January 30, 2024 10:13
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.

1 participant