cctbx / cctbx_project

Computational Crystallography Toolbox
https://cci.lbl.gov/docs/cctbx
Other
216 stars 114 forks source link

Adding psutil as a dependency #239

Closed bkpoon closed 5 years ago

bkpoon commented 5 years ago

We would like to add psutil (https://github.com/giampaolo/psutil) as a new dependency for CCTBX. The package is available through conda and pip. This package provides cross-platform tools for getting information about processes and the system. This would make some of the tools in libtbx/introspection.py and libtbx/utils.py more robust and consistent across platforms.

The functionality that is most relevant right now is the ability to get memory usage and the amount of available memory. For some cryo-EM tools, we would like to do this before trying to do certain tasks.

Thoughts and comments?

graeme-winter commented 5 years ago

I can see this being useful

bkpoon commented 5 years ago

Added dependency via 124d025497f2a882ac2603feaaab34a7b5929e04. Future commits can use psutil.