4.2. from_path¶
Creates a Fits object from the given file path as string
- Fits.from_path(path) Self¶
Creates a Fits object from the given file path as a string.
Parameters
pathstrPath of the file as a string.
Returns
FitsA Fits object.
Raises
FileNotFoundErrorRaised when the file does not exist.
4.2.1. Example:¶
from myraflib import Fits
fits = Fits.from_path("PATH/TO/FILE")