[NeXus-code-tickets] [NeXusCode] #157: Possible problem in python openpath()

NeXus Data Format Library and Applications noreply at nexusformat.org
Fri Jan 30 15:58:05 GMT 2009


#157: Possible problem in python openpath()
------------------------------+---------------------------------------------
  Reporter:  Stuart Campbell  |       Owner:  Paul Kienzle   
      Type:  defect           |      Status:  reopened       
  Priority:  major            |   Milestone:  NeXus 4.2 Ready
 Component:  bindings         |     Version:  trunk          
Resolution:                   |    Keywords:  python         
------------------------------+---------------------------------------------
Changes (by Peter Peterson):

  * status:  closed => reopened
  * resolution:  invalid =>

Comment:

 The documentation in [source:trunk/include/napi.h at 1042 napi.h] disagrees
 with you. Quoting that directly lines 501-511.
 {{{
   /**
    * Retrieve information about the currently open group.
    * \param handle A NeXus file handle as initialized by NXopen.
    * \param no_items A pointer to an integer which will be set to the
 count of group attributes
    * available.
    * \param name The name of the group.
    * \param nxclass The NeXus class name of the group.
    * \return NX_OK on success, NX_ERROR in the case of an error.
    */
 extern  NXstatus  NXgetgroupinfo(NXhandle handle, int* no_items, NXname
 name, NXname nxclass);
 }}}
 The integer is the number of attributes on the group. {{{NXgetattrinfo}}}
 returns the number of attributes for the current field. I don't believe it
 returns any information for group attributes.

 To get all of the groups/fields at the current level you should use
 {{{NXgetnextentry}}} until {{{NX_EOD}}} is returned.

-- 
Ticket URL: <http://trac.nexusformat.org/code/ticket/157#comment:2>
NeXus Data Format Library and Applications <http://www.nexusformat.org/>
NeXus Data Format Library and Applications



More information about the NeXus-code-tickets mailing list