Ticket #62 (closed defect: fixed)

Opened 2 years ago

Last modified 8 months ago

cl has an internal readonly variable 'epsilon', used for testing equality of floats

Reported by: rij Assigned to: hodge
Priority: highest Milestone: PyRAF 1.4 stsci_python 2.5
Component: none Version:
Severity: critical Keywords:
Cc:

Description

A variable 'epsilon' can be used in a cl script without being declared or initialized. It is an internal, readonly variable with a value of 1.192e-7 (on RH Linux). It is defined as the smallest float such that 1.0+epsilon != 1.0.

PyRAF doesn't know about this. Some Gemini scripts in the gnirs package (nssky, nsslitfunction) use epsilon.

Change History

05/04/07 16:06:48 changed by rij

  • milestone set to stsci_python 2.5 release.

07/20/07 20:31:43 changed by rij

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

Fixed in r783 and r784 by Phil Hodge

02/28/08 08:59:52 changed by sontag

  • milestone changed from stsci_python 2.5 release to PyRAF 1.4 stsci_python 2.5.

Milestone stsci_python 2.5 release deleted