Cleaned up xs_label usage and updated rnc/rng files

This commit is contained in:
Adam Nelson 2016-08-23 20:28:34 -04:00
parent 766c93e4f7
commit 3e83ee6767
5 changed files with 30 additions and 119 deletions

View file

@ -1264,10 +1264,6 @@ class ResonanceScattering(object):
if self.method is not None:
subelement = ET.SubElement(scatterer, 'method')
subelement.text = self.method
subelement = ET.SubElement(scatterer, 'xs_label')
subelement.text = self.nuclide.name
subelement = ET.SubElement(scatterer, 'xs_label_0K')
subelement.text = self.nuclide_0K.name
if self.E_min is not None:
subelement = ET.SubElement(scatterer, 'E_min')
subelement.text = str(self.E_min)

View file

@ -4,6 +4,8 @@ element materials {
(element name { xsd:string { maxLength="52" } } |
attribute name { xsd:string { maxLength="52" } })? &
element temperature { xsd:string { maxLength = "6" } }? &
element density {
(element value { xsd:double } | attribute value { xsd:double })? &
(element units { xsd:string { maxLength = "10" } } |
@ -12,8 +14,6 @@ element materials {
element nuclide {
(element name { xsd:string } | attribute name { xsd:string }) &
(element xs { xsd:string { maxLength = "5" } } |
attribute xs { xsd:string { maxLength = "5" } })? &
(element scattering { ( "data" | "iso-in-lab" ) } |
attribute scattering { ( "data" | "iso-in-lab" ) })? &
(
@ -24,16 +24,12 @@ element materials {
element macroscopic {
(element name { xsd:string } |
attribute name { xsd:string }) &
(element xs { xsd:string { maxLength = "5" } } |
attribute xs { xsd:string { maxLength = "5" } })
attribute name { xsd:string })
}* &
element element {
(element name { xsd:string { maxLength = "2" } } |
attribute name { xsd:string { maxLength = "2" } }) &
(element xs { xsd:string { maxLength = "5" } } |
attribute xs { xsd:string { maxLength = "5" } })? &
(element scattering { ( "data" | "iso-in-lab" ) } |
attribute scattering { ( "data" | "iso-in-lab" ) })? &
(
@ -43,11 +39,9 @@ element materials {
}* &
element sab {
(element name { xsd:string } | attribute name { xsd:string }) &
(element xs { xsd:string { maxLength = "5" } } |
attribute xs { xsd:string { maxLength = "5" } })?
(element name { xsd:string } | attribute name { xsd:string })
}*
}+ &
element default_xs { xsd:string { maxLength = "5" } }?
element default_temperature { xsd:string { maxLength = "6" } }?
}

View file

@ -26,6 +26,13 @@
</attribute>
</choice>
</optional>
<optional>
<element name="temperature">
<data type="string">
<param name="maxLength">6</param>
</data>
</element>
</optional>
<element name="density">
<interleave>
<optional>
@ -63,20 +70,6 @@
<data type="string"/>
</attribute>
</choice>
<optional>
<choice>
<element name="xs">
<data type="string">
<param name="maxLength">5</param>
</data>
</element>
<attribute name="xs">
<data type="string">
<param name="maxLength">5</param>
</data>
</attribute>
</choice>
</optional>
<optional>
<choice>
<element name="scattering">
@ -116,28 +109,14 @@
</zeroOrMore>
<zeroOrMore>
<element name="macroscopic">
<interleave>
<choice>
<element name="name">
<data type="string"/>
</element>
<attribute name="name">
<data type="string"/>
</attribute>
</choice>
<choice>
<element name="xs">
<data type="string">
<param name="maxLength">5</param>
</data>
</element>
<attribute name="xs">
<data type="string">
<param name="maxLength">5</param>
</data>
</attribute>
</choice>
</interleave>
<choice>
<element name="name">
<data type="string"/>
</element>
<attribute name="name">
<data type="string"/>
</attribute>
</choice>
</element>
</zeroOrMore>
<zeroOrMore>
@ -155,20 +134,6 @@
</data>
</attribute>
</choice>
<optional>
<choice>
<element name="xs">
<data type="string">
<param name="maxLength">5</param>
</data>
</element>
<attribute name="xs">
<data type="string">
<param name="maxLength">5</param>
</data>
</attribute>
</choice>
</optional>
<optional>
<choice>
<element name="scattering">
@ -208,39 +173,23 @@
</zeroOrMore>
<zeroOrMore>
<element name="sab">
<interleave>
<choice>
<element name="name">
<data type="string"/>
</element>
<attribute name="name">
<data type="string"/>
</attribute>
</choice>
<optional>
<choice>
<element name="xs">
<data type="string">
<param name="maxLength">5</param>
</data>
</element>
<attribute name="xs">
<data type="string">
<param name="maxLength">5</param>
</data>
</attribute>
</choice>
</optional>
</interleave>
<choice>
<element name="name">
<data type="string"/>
</element>
<attribute name="name">
<data type="string"/>
</attribute>
</choice>
</element>
</zeroOrMore>
</interleave>
</element>
</oneOrMore>
<optional>
<element name="default_xs">
<element name="default_temperature">
<data type="string">
<param name="maxLength">5</param>
<param name="maxLength">6</param>
</data>
</element>
</optional>

View file

@ -170,10 +170,6 @@ element settings {
attribute nuclide { xsd:string { maxLength = "12" } }) &
(element method { xsd:string { maxLength = "16" } } |
attribute method { xsd:string { maxLength = "16" } }) &
(element xs_label { xsd:string { maxLength = "12" } } |
attribute xs_label { xsd:string { maxLength = "12" } }) &
(element xs_label_0K { xsd:string { maxLength = "12" } } |
attribute xs_label_0K { xsd:string { maxLength = "12" } }) &
(element E_min { xsd:double } |
attribute E_min { xsd:double }) &
(element E_max { xsd:double } |

View file

@ -778,30 +778,6 @@
</data>
</attribute>
</choice>
<choice>
<element name="xs_label">
<data type="string">
<param name="maxLength">12</param>
</data>
</element>
<attribute name="xs_label">
<data type="string">
<param name="maxLength">12</param>
</data>
</attribute>
</choice>
<choice>
<element name="xs_label_0K">
<data type="string">
<param name="maxLength">12</param>
</data>
</element>
<attribute name="xs_label_0K">
<data type="string">
<param name="maxLength">12</param>
</data>
</attribute>
</choice>
<choice>
<element name="E_min">
<data type="double"/>