2.4.1. utils

scisalt.utils.githubtunnel(user1, server1, user2, server2, port, verbose, stanford=False)[source]

Opens a nested tunnel, first to user1*@*server1, then to user2*@*server2, for accessing on port.

If verbose is true, prints various ssh commands.

If stanford is true, shifts ports up by 1.

Attempts to get user1, user2 from environment variable USER_NAME if called from the command line.

class scisalt.utils.progressbar(total, length=20)[source]

New in version 1.3.

Creates a progress bar with a number of steps total and a length of length.

step

The current step.

2.4.1.1. h5

Utility functions designed to work with h5py.

scisalt.utils.h5.get(f, key, default=None)[source]

New in version 1.4.

Gets an array from datasets.

scisalt.utils.h5.keys(f)[source]

New in version 1.4.

Returns an array of strings of the keys like Python 2 used to do.