Skip to content

Commit

Permalink
fix syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubelMozumder committed Jul 24, 2024
1 parent 0a23f1b commit b766d12
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
19 changes: 7 additions & 12 deletions contributed_definitions/NXxrd_pan.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -219,56 +219,51 @@ defracted_beam(NXbeam):-->
</doc>
<dimensions rank="1">
<dim index="1" value="nDet"/>
<dim index="2" value=""/>
</dimensions>
</field>
<field name="two_theta" type="NX_FLOAT">
<field name="two_theta" type="NX_FLOAT" units="NX_ANGLE">
<doc>
Axis scale represeting the 2-theta range of the difractogram.
</doc>
<dimensions rank="1">
<dim index="1" value="nDet"/>
<dim index="2" value=""/>
</dimensions>
</field>
<field name="omega" type="NX_FLOAT" optional="true">
<field name="omega" type="NX_FLOAT" optional="true" units="NX_ANGLE">
<doc>
The omega range of the difractogram.
</doc>
<dimensions rank="1">
<dim index="1" value="nDet"/>
<dim index="2" value=""/>
</dimensions>
</field>
<field name="phi" type="NX_FLOAT" optional="true">
<field name="phi" type="NX_FLOAT" optional="true" units="NX_ANGLE">
<doc>
The phi range of the diffractogram.
</doc>
<dimensions rank="1">
<dim index="1" value="nDet"/>
<dim index="2" value=""/>
</dimensions>
</field>
<field name="chi" type="NX_FLOAT" optional="true">
<field name="chi" type="NX_FLOAT" optional="true" units="NX_ANGLE">
<doc>
The chi range of the difractogram
</doc>
<dimensions rank="1">
<dim index="1" value="nDet"/>
<dim index="2" value=""/>
</dimensions>
</field>
<field name="q_parallel" type="NX_FLOAT">
<field name="q_parallel" type="NX_FLOAT" optional="true" units="NX_ANY">
<doc>
The scattering vector component parallel to the sample surface.
</doc>
</field>
<field name="q_perpendicular" type="NX_FLOAT">
<field name="q_perpendicular" type="NX_FLOAT" optional="true" units="NX_ANY">
<doc>
The scattering vector component perpendicular to the sample surface.
</doc>
</field>
<field name="q_norm" type="NX_FLOAT">
<field name="q_norm" type="NX_FLOAT" optional="true" units="NX_ANY">
<doc>
The norm of scattering vector q.
</doc>
Expand Down
41 changes: 23 additions & 18 deletions contributed_definitions/nyaml/NXxrd_pan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,41 +144,51 @@ NXxrd_pan(NXxrd):
Number of scattered electrons per unit time.
dimensions:
rank: 1
dim: (nDet, )
dim: (nDet,)
two_theta(NX_FLOAT):
unit: NX_ANGLE
doc: |
Axis scale represeting the 2-theta range of the difractogram.
dimensions:
rank: 1
dim: (nDet, )
dim: (nDet,)
omega(NX_FLOAT):
exists: optional
unit: NX_ANGLE
doc: |
The omega range of the difractogram.
dimensions:
rank: 1
dim: (nDet, )
dim: (nDet,)
phi(NX_FLOAT):
exists: optional
unit: NX_ANGLE
doc: |
The phi range of the diffractogram.
dimensions:
rank: 1
dim: (nDet, )
dim: (nDet,)
chi(NX_FLOAT):
exists: optional
unit: NX_ANGLE
doc: |
The chi range of the difractogram
dimensions:
rank: 1
dim: (nDet, )
dim: (nDet,)
q_parallel(NX_FLOAT):
exists: optional
unit: NX_ANY
doc: |
The scattering vector component parallel to the sample surface.
q_perpendicular(NX_FLOAT):
exists: optional
unit: NX_ANY
doc: |
The scattering vector component perpendicular to the sample surface.
q_norm(NX_FLOAT):
exists: optional
unit: NX_ANY
doc: |
The norm of scattering vector q.
q_data(NXdata):
Expand Down Expand Up @@ -221,7 +231,7 @@ NXxrd_pan(NXxrd):
assumed name or given name.
# ++++++++++++++++++++++++++++++++++ SHA HASH ++++++++++++++++++++++++++++++++++
# 65dca2debe2927470e97f766afd7e9df192130efc4b365371a01f8f7612d9418
# 46e9b0702fad863af7c50e045bde449e069f04f693a1541fa9155c4baf74a460
# <?xml version='1.0' encoding='UTF-8'?>
# <?xml-stylesheet type="text/xsl" href="nxdlformat.xsl"?>
# <!--
Expand Down Expand Up @@ -443,56 +453,51 @@ NXxrd_pan(NXxrd):
# </doc>
# <dimensions rank="1">
# <dim index="1" value="nDet"/>
# <dim index="2" value=""/>
# </dimensions>
# </field>
# <field name="two_theta" type="NX_FLOAT">
# <field name="two_theta" type="NX_FLOAT" units="NX_ANGLE">
# <doc>
# Axis scale represeting the 2-theta range of the difractogram.
# </doc>
# <dimensions rank="1">
# <dim index="1" value="nDet"/>
# <dim index="2" value=""/>
# </dimensions>
# </field>
# <field name="omega" type="NX_FLOAT" optional="true">
# <field name="omega" type="NX_FLOAT" optional="true" units="NX_ANGLE">
# <doc>
# The omega range of the difractogram.
# </doc>
# <dimensions rank="1">
# <dim index="1" value="nDet"/>
# <dim index="2" value=""/>
# </dimensions>
# </field>
# <field name="phi" type="NX_FLOAT" optional="true">
# <field name="phi" type="NX_FLOAT" optional="true" units="NX_ANGLE">
# <doc>
# The phi range of the diffractogram.
# </doc>
# <dimensions rank="1">
# <dim index="1" value="nDet"/>
# <dim index="2" value=""/>
# </dimensions>
# </field>
# <field name="chi" type="NX_FLOAT" optional="true">
# <field name="chi" type="NX_FLOAT" optional="true" units="NX_ANGLE">
# <doc>
# The chi range of the difractogram
# </doc>
# <dimensions rank="1">
# <dim index="1" value="nDet"/>
# <dim index="2" value=""/>
# </dimensions>
# </field>
# <field name="q_parallel" type="NX_FLOAT">
# <field name="q_parallel" type="NX_FLOAT" optional="true" units="NX_ANY">
# <doc>
# The scattering vector component parallel to the sample surface.
# </doc>
# </field>
# <field name="q_perpendicular" type="NX_FLOAT">
# <field name="q_perpendicular" type="NX_FLOAT" optional="true" units="NX_ANY">
# <doc>
# The scattering vector component perpendicular to the sample surface.
# </doc>
# </field>
# <field name="q_norm" type="NX_FLOAT">
# <field name="q_norm" type="NX_FLOAT" optional="true" units="NX_ANY">
# <doc>
# The norm of scattering vector q.
# </doc>
Expand Down

0 comments on commit b766d12

Please sign in to comment.