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

Small cleanup in mesh datatype #484

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

brownbaerchen
Copy link
Contributor

@brownbaerchen brownbaerchen commented Sep 16, 2024

I got confused looking at the implementation of __abs__ in mesh and just want to spare the next person reading it from the same confusion.

numpy.amax is just an alias for numpy.max. I was wondering what the a is doing and it's doing nothing. So I removed it. Also, taking the maximum between a positive or zero number and zero will be the first number, so that's just superfluous.

@brownbaerchen brownbaerchen added the girl scout rule All you did was leave the campground slightly cleaner than you found it. label Sep 16, 2024
@pancetta pancetta merged commit 1708ab2 into Parallel-in-Time:master Sep 16, 2024
89 checks passed
@brownbaerchen brownbaerchen deleted the campground_cleanup branch September 16, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
girl scout rule All you did was leave the campground slightly cleaner than you found it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants