misc

Miscellaneous utilities.

cneuromax.utils.misc.get_path(clb)[source]

Returns the path to the input callable.

Parameters:

clb (Callable[..., Any]) – The callable to retrieve the path for.

Return type:

str

Returns:

The full module path to clb.

cneuromax.utils.misc.seed_all(seed)[source]

Sets the random seed for all relevant libraries.

Parameters:

seed (int | uint32) – The random seed.

Return type:

None

cneuromax.utils.misc.can_connect_to_internet()[source]

Checks whether an internet connection is available.

Return type:

bool