This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [7]: %debug | |
> /Users/tsrice/anaconda2/lib/python2.7/site-packages/astropy/io/fits/connect.py(224)write_table_fits() | |
222 os.remove(output) | |
223 else: | |
--> 224 raise IOError("File exists: {0}".format(output)) | |
225 | |
226 # Create a new HDU object | |
ipdb> list | |
219 # Check if output file already exists | |
220 if isinstance(output, string_types) and os.path.exists(output): | |
221 if overwrite: | |
222 os.remove(output) | |
223 else: | |
--> 224 raise IOError("File exists: {0}".format(output)) | |
225 | |
226 # Create a new HDU object | |
227 if input.masked: | |
228 #float column's default mask value needs to be Nan | |
229 for column in six.itervalues(input.columns): |
No comments:
Post a Comment