Skip to the navigation links
Last modified: December 2009

URL: http://cxc-newtest.cfa.harvard.edu/ciao4.2/is_pha.py.html
AHELP for CIAO 4.2

is_pha

Context: py.crates

Synopsis

Determine if the crate contains a PHA file.

Syntax

is_pha(crate)

Description

  • crate - input crate

The is_pha command returns "1" if the crate contains a PHA file (type I or II) and "0" if not.

Example

>>> cr = read_pha("src.pi")
>>> is_pha(cr)
1

A file is read into the crate "cr", then is_pha is used to confirm it is a PHA file.

Bugs

See the bug pages on the CIAO website for an up-to-date listing of known bugs.

See Also

py.crates
col_exists, is_arf, is_rmf, is_virtual, key_exists, read_pha, write_pha

Last modified: December 2009