pyeeg.utils.mem_check

pyeeg.utils.mem_check(units='Gb')

Get available RAM.

Parameters:

units (str, optional) – Unit in which to report the available memory. Valid choices are ‘GB’, ‘MB’ and ‘KB’ (case-insensitive). If an unrecognised unit is passed, the available memory is returned in bytes and a message is printed (default ‘Gb’).

Returns:

available – Available memory expressed in the requested unit.

Return type:

float