skrf.util.get_fid

skrf.util.get_fid(file, *args, **kwargs)

Returns a file object, given a filename or file object

Useful when you want to allow the arguments of a function to be either files or filenames

Parameters :

file : str or file-object

file to open

*args, **kwargs : arguments and keyword arguments

passed through to pickle.load

Previous topic

skrf.util.find_nearest_index

Next topic

skrf.util.get_extn

This Page