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

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  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:  Mohammad Akhlaghi <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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.


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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    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.7