Benchmarking visualization - #399
Conversation
diffusion_coefficient function change
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #399 +/- ##
==========================================
- Coverage 87.54% 85.20% -2.34%
==========================================
Files 14 15 +1
Lines 1951 2048 +97
Branches 340 353 +13
==========================================
+ Hits 1708 1745 +37
- Misses 192 252 +60
Partials 51 51 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rkingsbury
left a comment
There was a problem hiding this comment.
Thank you @YitongPan1 , it will be great to have a built-in way to generate these types of plots. Please modify a few things:
- create a new folder
benchmarksunder/src/pyEQLand move all your data files into it - rename
Benchmarking_plotbenchmark(.py) and keep it in thesrc/pyEQLdirectory. (another python convention - module names are always lowercase) - Include bibliographic information for the specific CRC tables you used in the data files. You can probably do this as the first line of your .CSVs, which you can then tell
pandasto skip when loading the file - Add a docstring for the user-facing function
benchmark - prefix any private functions (not intended for direct use by end user) with a
_. Sofilter_df->_filter_df. (Yet another python convention) - Add a page under
docsthat shows plots for each of the salts you have and includes the reference information. Make a separate subfolder calledplotsunder docs to save the images. (This item can be a separate PR if you prefer)
|
Also remember to lint by running |
|
Thank you @rkingsbury, I have made changes accordingly, and will add additional features in separate PRs. Please let me know if the current version looks good. Thank you! |
Summary
Major changes:
supports #252
Example usage:
Todos
If this is work in progress, what else needs to be done?
NaCl,KCl,CaCl2,MgCl2,Na2SO4,K2SO4, andMgSO4;Checklist
ruff. (For guidance in fixing rule violates, see rule list)mypy.Tip: Install
pre-commithooks to auto-check types and linting before every commit: