human2bytes#

pybrops.core.util.subroutines.human2bytes(s)[source]#

Convert a human readable string representing a memory size to an integer number of bytes.

Parameters:

s (str) – Human readable string representing a memory size. (e.g. 10 MB)

Returns:

out – Number of bytes that the human readable string represents.

Return type:

int