cherab.inversion.data.get_sample_dataΒΆ
-
cherab.inversion.data.get_sample_data(fname: str, asfileobj=
True, *, np_load=True)SourceΒΆ Retrieve a sample data file.
Sample data files are stored in the
cherab/inversion/datadirectory within the cherab-inversion package.If the filename ends in .gz, the file is implicitly ungzipped. If the filename ends with .npy or .npz, and asfileobj is
True, the file is loaded withnumpy.load.- Parameters:
- Returns:
str or file object β Path to the file or file object.
Examples
>>> data = get_sample_data("bolo.npz")