Passing a pathlib.Path object to fits.open leads to an empty HDUList object
See original GitHub issuewith fits.open(pathlib.Path("/...")) as hdul:
print(hdul)
[]
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
File Handling and Convenience Functions — Astropy v5.2
Factory function to open a FITS file and return an HDUList object. Parameters. name str , file-like object or pathlib.Path.
Read more >pathlib — Object-oriented filesystem paths — Python 3.11.1 ...
PEP 428: The pathlib module – object-oriented filesystem paths. ... Opening a file: ... When pathsegments is empty, the current directory is assumed:....
Read more >File Handling and Convenience Functions - Read the Docs
Factory function to open a FITS file and return an HDUList object. Parameters: name : file path, file object, file-like object or pathlib.Path...
Read more >Python 3's pathlib Module: Taming the File System
In this tutorial, you will see how to work with file paths—names of directories and files—in Python. You will learn new ways to...
Read more >Full Changelog — SunPy 4.1.0 documentation
Trying to download an empty search response from the JSOC now results in an empty results object. Previously the results object contained the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pllim : https://github.com/saimn/dotfiles/blob/master/ipython/profile_default/startup/10-mystartup.py#L27-L37
@pllim - you can define custom ipython magics in e.g. ~/.ipython/profile_default/startup/ e.g mine looks like: