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

pathstr

Path of the file as a string.

Returns

Fits

A Fits object.

Raises

FileNotFoundError

Raised when the file does not exist.


4.2.1. Example:

from myraflib import Fits

fits = Fits.from_path("PATH/TO/FILE")