Skip to content

Commit

Permalink
Make deprecated fields in some application definitions optional
Browse files Browse the repository at this point in the history
Fixes #1175
  • Loading branch information
PeterC-DLS committed Aug 1, 2022
1 parent 6d31114 commit e69806d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion applications/NXcanSAS.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@
Description of the radiation source.
</doc>

<field name="radiation" maxOccurs="1"
<field name="radiation" maxOccurs="1" optional="true"
deprecated="Use either (or both) ``probe`` or ``type`` fields from ``NXsource`` (issue #765)">
<doc>
Name of the radiation used.
Expand Down
4 changes: 2 additions & 2 deletions contributed_definitions/NXsnsevent.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</doc>
<group type="NXlog" minOccurs="1">
<field name="average_value" type="NX_FLOAT"/>
<field name="average_value_error" type="NX_FLOAT"
<field name="average_value_error" type="NX_FLOAT" optional="true"
deprecated="see https://github.com/nexusformat/definitions/issues/821"/>
<field name="average_value_errors" type="NX_FLOAT"/>
<field name="description"/>
Expand All @@ -39,7 +39,7 @@
Motor logs from cvinfo file.
</doc>
<field name="average_value" type="NX_FLOAT"/>
<field name="average_value_error" type="NX_FLOAT"
<field name="average_value_error" type="NX_FLOAT" optional="true"
deprecated="see https://github.com/nexusformat/definitions/issues/821"/>
<field name="average_value_errors" type="NX_FLOAT"/>
<field name="description"/>
Expand Down
4 changes: 2 additions & 2 deletions contributed_definitions/NXsnshisto.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</doc>
<group type="NXlog" minOccurs="1">
<field name="average_value" type="NX_FLOAT"/>
<field name="average_value_error" type="NX_FLOAT"
<field name="average_value_error" type="NX_FLOAT" optional="true"
deprecated="see https://github.com/nexusformat/definitions/issues/821"/>
<field name="average_value_errors" type="NX_FLOAT"/>
<field name="description"/>
Expand All @@ -39,7 +39,7 @@
Motor logs from cvinfo file.
</doc>
<field name="average_value" type="NX_FLOAT"/>
<field name="average_value_error" type="NX_FLOAT"
<field name="average_value_error" type="NX_FLOAT" optional="true"
deprecated="see https://github.com/nexusformat/definitions/issues/821"/>
<field name="average_value_errors" type="NX_FLOAT"/>
<field name="description"/>
Expand Down

0 comments on commit e69806d

Please sign in to comment.