MCPcopy Create free account
hub / github.com/NVIDIA/DALI / OpenFile

Function OpenFile

dali/util/fits.h:104–113  ·  view source on GitHub ↗

@brief Opens the FITS file with fits_open_file*/

Source from the content-addressed store, hash-verified

102
103 /** @brief Opens the FITS file with fits_open_file*/
104 static FitsHandle OpenFile(const char *path, int mode) {
105 int status = 0;
106 fitsfile *ff = nullptr;
107
108 FITS_CALL(fits_open_file(&ff, path, mode, &status));
109 DALI_ENFORCE(status == 0,
110 make_string("Failed to open a file: ", path, " Make sure it exists!"));
111
112 return FitsHandle(ff);
113 }
114
115
116 /** @brief Calls fits_close_file on the file handle */

Callers 4

ReadSampleMethod · 0.85
FramesDecoderBaseMethod · 0.85
ResetMethod · 0.85
TESTFunction · 0.85

Calls 2

FitsHandleFunction · 0.85
make_stringFunction · 0.50

Tested by 1

TESTFunction · 0.68