Ticket #72 (closed defect: fixed)

Opened 10 months ago

Last modified 6 months ago

PyRAF doesn't handle plots appended to gki files

Reported by: rij Assigned to: rij
Priority: normal Milestone: PyRAF 1.5 stsci_python 2.6
Component: none Version:
Severity: normal Keywords:
Cc:

Description

When you try to append a plot to another plot that has been redirected to a gki file, PyRAF hangs.

--> prow dev$pix 256 >G test.gki
--> prow dev$pix 250 append+ >>G test.gki
(PyRAF hangs, must be ^C'd)

This arises because the graphics kernel that handles graphics redirection does not handle WCS gets and sets. PyRAF hangs because the prow task is waiting for PyRAF to send it some WCS information, and PyRAF doesn't have any to send.

The solution is to add control_getwcs and control_setwcs methods to the GkiRedirection? class. When the WCS is set using control_setwcs, it needs to be saved so that the next plot can use it. It is saved in the wcs attribute of the GkiController? object that is instantiated when the gki module is imported (and is persistent over a session).

The IrafExecute? function needs to copy over this wcs to the GkiRedirection? object that is instantiated from scratch every time PyRAF detects that it has to redirect a plot to a gki file.

Change History

10/22/07 09:24:32 changed by rij

  • status changed from new to assigned.
  • owner changed from somebody to rij.

10/25/07 08:13:45 changed by rij

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in r804.

12/11/07 11:47:49 changed by rij

  • milestone set to stsci_python 2.6 release.

02/28/08 09:03:05 changed by sontag

  • milestone changed from stsci_python 2.6 release to PyRAF 1.5 stsci_python 2.6.

Milestone stsci_python 2.6 release deleted