obspy.core.stream._is_pickle

_is_pickle(filename)[source]

Check whether a file is a pickled ObsPy Stream file.

Parameters

filename (str) – Name of the pickled ObsPy Stream file to be checked.

Return type

bool

Returns

True if pickled file.

Example

>>> _is_pickle('/path/to/pickle.file')  
True