[NeXus-code-tickets] [NeXusCode] #67: Conditional including with NXtranslate

NeXus Data Format Library and Applications noreply at nexusformat.org
Wed May 16 16:18:15 BST 2007


#67: Conditional including with NXtranslate
----------------------------+-----------------------------------------------
Reporter:  Freddie Akeroyd  |        Owner:  Peter Peterson
    Type:  enhancement      |       Status:  new           
Priority:  minor            |    Milestone:  NeXus 4.1     
 Version:  trunk            |   Resolution:                
Keywords:                   |  
----------------------------+-----------------------------------------------
Old description:

> We are using NXtranslate to convert version 1 muon files into the
> proposed version 2 files (which are more TOFRAW like in structure). It
> would be really useful if we could follow a different path through the
> translation file depending on the value of a variable in the external
> file i.e. something along the lines of
>
> <nxs:condition nxs:location="/path/to/avalue" nxs:test="gt"
> nxs:value="1">
> <something>value if greater than 1</something>
> ...
> </nxs:condition>
> <nxs:condition nxs:location="/path/to/avalue" nxs:test="le"
> nxs:value="1">
> <something>value if less than or equal to 1</something>
> ...
> </nxs:condition>
>
> to selectively include only parts of the translation file in the output.

New description:

 We are using NXtranslate to convert version 1 muon files into the proposed
 version 2 files (which are more TOFRAW like in structure). It would be
 really useful if we could follow a different path through the translation
 file depending on the value of a variable in the external file i.e.
 something along the lines of
 <pre>
 <nxs:condition nxs:location="/path/to/avalue" nxs:test="gt" nxs:value="1">
 <something>value if greater than 1</something>
 ...
 </nxs:condition>
 <nxs:condition nxs:location="/path/to/avalue" nxs:test="le" nxs:value="1">
 <something>value if less than or equal to 1</something>
 ...
 </nxs:condition>
 </pre>
 to selectively include only parts of the translation file in the output.

-- 
Ticket URL: <http://trac.nexusformat.org/code/ticket/67#comment:1>
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