spacetelescope / drizzlepac

AstroDrizzle for HST images.
https://drizzlepac.readthedocs.io
BSD 3-Clause "New" or "Revised" License
50 stars 39 forks source link

drizzle error message does not print rootname #1461

Open stscijgbot-hstdp opened 1 year ago

stscijgbot-hstdp commented 1 year ago

Issue HLA-860 was created on JIRA by Lisa Sherbert:

Something that has always bothered me is the error message when runastrodriz fails.

We submit something like the following commands in a bash script

and when it errors we get

 

I originally thought the missing rootname was from our code, but now I can see it is from the SCSB code. 

The goal of this ticket is to modify in runastrodriz.py the line:

            print("ERROR: Cannot run astrodrizzle on %s." % sys.argv[1])

such that the entire command line is printed, e.g., with

' '.join(sys.argv)
stscijgbot-hstdp commented 1 year ago

Comment by Michele De La Pena on JIRA:

Straightforward change as suggested above.   This problem can be triggered for testing by not having all the necessary files available for processing.  That is to say:

runastrodriz -i  j6d511gvq_raw  ==> the FLT or FLC files are needed for this processing.  The report is now:

ERROR: Cannot run astrodrizzle on runastrodriz -i j6d511gvq_raw.fits.

OR

runastrodriz -m -i u482c701r_d0m.fits ==> The C0M files are needed for this processing.  The report is now:

ERROR: Cannot run astrodrizzle on runastrodriz -m -i u482c701r_d0m.fits.

stscijgbot-hstdp commented 1 year ago

Comment by Michele De La Pena on JIRA:

This ticket is Git PR#⁠1552.  It has been approved and merged.