bugGNU Astronomy Utilities - Bugs: bug #60989, MakeProfiles deletes input fits...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #60989: MakeProfiles deletes input fits catalog if no output specified

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Thu 29 Jul 2021 02:13:02 AM UTC
   
 
Category:  MakeProfiles Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Sun 01 Aug 2021 07:04:54 PM UTC, comment #1: 

This bug was fixed in Commit 7d2633ce3.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 29 Jul 2021 02:13:02 AM UTC, original submission:  

Currently, when no '--output' name is given to MakeProfiles, it will simply use the input name and make its suffix '.fits'. This is fine for plain-text tables, but if the input is a FITS file, this behavior results in deleting the input because it has the same name as the output (as part of preparations for writing the output).

As a result, the user is confronted with a CFITSIO error, saying that the input doesn't exist! Also, when they do an 'ls', they won't see their input (it is deleted unless '--dontdelete' is given).

This is a bug! To fix it, MakeProfiles should add a certain suffix like '_profiles.fits', not just '.fits'!

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-08-01 makhlaghi StatusNone Fixed
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code