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

Change get default from empty list ([]) to False when used as bool or condition check for Outcar parsing methods #4196

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DanielYang59
Copy link
Contributor

@DanielYang59 DanielYang59 commented Nov 25, 2024

Summary

  • Change get default from empty list ([]) to False when used as bool or condition check for Outcar parsing methods

This is slightly more readable as bool([]) is False, also this would not be breaking as the evaluation result is not assigned (condition check only)

@DanielYang59 DanielYang59 marked this pull request as ready for review November 25, 2024 07:21
@DanielYang59 DanielYang59 changed the title Change get default from empty list ([]) to False when used as bool or condition check Change get default from empty list ([]) to False when used as bool or condition check for Outcar parsing methods Nov 25, 2024
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