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

Seeking Clarification on Key Existence in PyBox Dictionary #5

Open
hidonkey2018 opened this issue Jan 17, 2024 · 0 comments
Open

Seeking Clarification on Key Existence in PyBox Dictionary #5

hidonkey2018 opened this issue Jan 17, 2024 · 0 comments

Comments

@hidonkey2018
Copy link

@douglowe
I am a bit confused by this line of code: if value in dict[react].
https://github.com/loftytopping/PyBox/blob/3efd0a69e15dc9ba8f965342ea47d295c7033f40/Parse_eqn_file.py#L282C1-L282C65

This line of code is located within a 'product' looping block. From my understanding of this block of code, I presume that the if statement should check the key existence in gain_dict[product] instead of gain_dict[reactant]. However, I am not sure if my assumption is correct. I have tried using both dict[product] and dict[react], and they returned slightly different results.

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

No branches or pull requests

1 participant