goalie.has_ram

goalie.has_ram(n: float) bool

Check whether the machine has at least n GB of RAM.

Parameters:

n (float) – Minimum RAM in gigabytes required.

Returns:

True if the machine has at least n GB of RAM.

Return type:

bool

Raises:

RuntimeError – If the available RAM cannot be determined.

Examples

>>> has_ram(1)
True