-
Notifications
You must be signed in to change notification settings - Fork 36
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 four more sources of constants data - Wikidata, NIST Webbook, Common Chemistry, and the Joback group contribution method #39
Conversation
…ts 4x less memory
Hi Caleb! The updates look great overall! I made some minor changes to prevent attempting CAS_to_int if the user passes an integer (which is an update hope to make in thermo during chemical creation). Let me know if there are any issues with my implementation. I added a "low memory" run to the github workflow, which shows some issues with the test. A few of the issues are trivial (like dataframe shapes not matching), but others may need a little more time to solve. But all the tests are passing without "low memory". I'll be flying back to the US and will be a little busy until January 7, so I won't get a chance to address the test issues until then. Wish you happy holidays and a happy new year! |
…CAS number in it (reproduced from the NTP; they have been notified of the error)
Hello Yoel! Thank you very much for the multitude of improvements. If I understand what you are after, you would like to be able to do "Tc(CASRN=64175)" and get the critical temperature? I think that is pretty doable with a few more changes if so. Updating the documentation and adding a few more tests is probably the hardest part to making that happen.
Your point about the tests not passing with that variable set was expected for me. The flag essentially removes some of the functionality of the library, so some of the tests should be expected to fail. I wish you a happy holidays and new year as well! |
Hi Caleb, OK! I like the flag and may use it myself in the near future. The points you mentioned on reducing memory use would be wonderful too. It's great that you were able to get the tests passing with low memory! I agree with not updating documentation and pointing users towards the new flag yet. If we intend to keep the CHEDL_LOW_MEMORY variable, I think keeping the flag in the CI may be better in the long run. But if there is a good chance we remove it in favor of something else, we can remove it from the CI (your call). Thinking for BioSTEAM, I might include a function to delete all the dataframes in chemicals after loading the thermodynamic property packages. The function would also set "_loaded" attributes to false. This would save almost 100% of the memory. But using the flag may be useful for more dynamic efforts to keep the dataframes. Thanks! |
Creating a PR to observe if tests pass on other platforms; not ready yet.