79555314

Date: 2025-04-04 12:37:56
Score: 1.5
Natty:
Report link

Appending @Nikolaj's answer, please make sure that the path is a proper string

In my case, it was erroring out due to the comma because of incorrect commenting

file_name = 'dir/something.fits', # zshift = 1.738
hdus = fits.open(file_name)

Simply making it

file_name = 'dir/something.fits' # zshift = 1.738
hdus = fits.open(file_name)

solved the problem.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Nikolaj's
  • Low reputation (1):
Posted by: Gurarmaan Panjeta