Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jun 16, 2016
1 parent 2541e1e commit 5b3cf4e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
34 changes: 18 additions & 16 deletions src/spec2nexus/plugins/spec_common_spec2nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
import re
from spec2nexus.eznx import write_dataset, makeGroup, openGroup
from spec2nexus.plugin import ControlLineHandler
from spec2nexus.scanf import scanf
from spec2nexus.spec import SpecDataFileHeader, SpecDataFileScan, DuplicateSpecScanNumber
from spec2nexus.utils import strip_first_word, iso8601
from spec2nexus.scanf import scanf
from spec2nexus.writer import CONTAINER_CLASS


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down Expand Up @@ -202,7 +204,7 @@ class SPEC_Geometry(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **G** in the *NXentry* group, such as */S1/G*
* *NXnote* group named **G** in the *NXentry* group, such as */S1/G*
* Datasets created from dictionary <scan>.G
(indexed by number from the scan block, such as ``G0``, ``G1``, ...).
Expand Down Expand Up @@ -265,7 +267,7 @@ class SPEC_CounterNames(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **counter_cross_reference** in the *NXentry* group, such as */S1/counter_cross_reference*
* *NXnote* group named **counter_cross_reference** in the *NXentry* group, such as */S1/counter_cross_reference*
* datasets with names supplied as SPEC counter mnemonics, string values supplied as SPEC counter names
Expand All @@ -290,7 +292,7 @@ def writer(self, h5parent, writer, header, nxclass=None, *args, **kws):
desc = 'cross-reference SPEC counter mnemonics and names'
comment = 'keys are SPEC counter mnemonics, values are SPEC counter names'
if nxclass is None:
nxclass = 'NXcollection'
nxclass = CONTAINER_CLASS
group = makeGroup(h5parent, "counter_cross_reference", nxclass,
description=desc, comment=comment)
for key, value in sorted(header.counter_xref.items()):
Expand All @@ -307,7 +309,7 @@ class SPEC_CounterMnemonics(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **counter_cross_reference** in the *NXentry* group, such as */S1/counter_cross_reference*
* *NXnote* group named **counter_cross_reference** in the *NXentry* group, such as */S1/counter_cross_reference*
* datasets with names supplied as SPEC counter mnemonics, string values supplied as SPEC counter names
Expand All @@ -332,7 +334,7 @@ def writer(self, h5parent, writer, header, nxclass=None, *args, **kws):
desc = 'cross-reference SPEC counter mnemonics and names'
comment = 'keys are SPEC counter mnemonics, values are SPEC counter names'
if nxclass is None:
nxclass = 'NXcollection'
nxclass = CONTAINER_CLASS
group = makeGroup(h5parent, "counter_cross_reference", nxclass,
description=desc, comment=comment)
for key, value in sorted(header.counter_xref.items()):
Expand Down Expand Up @@ -446,11 +448,11 @@ class SPEC_PositionerNames(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **positioners** in the *NXentry* group, such as */S1/positioners*
* *NXnote* group named **positioners** in the *NXentry* group, such as */S1/positioners*
* datasets created from dictionary <scan>.positioner
* *NXcollection* group named **positioner_cross_reference** in the *NXentry* group, such as */S1/positioner_cross_reference*
* *NXnote* group named **positioner_cross_reference** in the *NXentry* group, such as */S1/positioner_cross_reference*
* datasets with names supplied as SPEC positioner mnemonics, string values supplied as SPEC positioner names
Expand All @@ -472,7 +474,7 @@ class SPEC_PositionerMnemonics(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **positioner_cross_reference** in the *NXentry* group, such as */S1/positioner_cross_reference*
* *NXnote* group named **positioner_cross_reference** in the *NXentry* group, such as */S1/positioner_cross_reference*
* datasets with names supplied as SPEC positioner mnemonics, string values supplied as SPEC positioner names
Expand All @@ -497,7 +499,7 @@ def writer(self, h5parent, writer, header, nxclass=None, *args, **kws):
desc = 'cross-reference SPEC positioner mnemonics and names'
comment = 'keys are SPEC positioner mnemonics, values are SPEC positioner names'
if nxclass is None:
nxclass = 'NXcollection'
nxclass = CONTAINER_CLASS
group = makeGroup(h5parent, "positioner_cross_reference", nxclass,
description=desc, comment=comment)
for key, value in sorted(header.positioner_xref.items()):
Expand Down Expand Up @@ -526,7 +528,7 @@ class SPEC_Positioners(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **positioners** in the *NXentry* group, such as */S1/positioners*
* *NXnote* group named **positioners** in the *NXentry* group, such as */S1/positioners*
* datasets created from dictionary <scan>.positioner
Expand Down Expand Up @@ -811,7 +813,7 @@ class SPEC_MCA_Calibration(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* defines a dimension scale for MCA data
* *NXcollection* group named **MCA** in the *NXentry* group, such as */S1/MCA*
* *NXnote* group named **MCA** in the *NXentry* group, such as */S1/MCA*
* Dataset **calib_a** : *float*
* Dataset **calib_b** : *float*
Expand Down Expand Up @@ -859,7 +861,7 @@ class SPEC_MCA_ChannelInformation(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **MCA** in the *NXentry* group, such as */S1/MCA*
* *NXnote* group named **MCA** in the *NXentry* group, such as */S1/MCA*
* Dataset **number_saved** : *int* number of channels saved
* Dataset **first_saved** : *int* first channel saved
Expand Down Expand Up @@ -907,7 +909,7 @@ class SPEC_MCA_CountTime(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **MCA** in the *NXentry* group, such as */S1/MCA*
* *NXnote* group named **MCA** in the *NXentry* group, such as */S1/MCA*
* Dataset **preset_time** : *float*
* Dataset **elapsed_live_time** : *float*
Expand Down Expand Up @@ -951,8 +953,8 @@ class SPEC_MCA_RegionOfInterest(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group **ROI** in
in *NXcollection* group named **MCA**
* *NXnote* group **ROI** in
in *NXnote* group named **MCA**
in the *NXentry* group, such as */S1/MCA/ROI*
* Dataset **{ROI_name}** : *int* [first_chan, last_chan]
Expand Down
4 changes: 2 additions & 2 deletions src/spec2nexus/plugins/unicat_spec2nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class UNICAT_MetadataMnemonics(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **metadata** below the
* *NXnote* group named **metadata** below the
*NXentry* group, such as **/entry/metadata**
* datasets created from dictionary <scan>.metadata
Expand All @@ -58,7 +58,7 @@ class UNICAT_MetadataValues(ControlLineHandler):
HDF5/NeXus REPRESENTATION
* *NXcollection* group named **metadata** below the
* *NXnote* group named **metadata** below the
*NXentry* group, such as **/entry/metadata**
* datasets created from dictionary <scan>.metadata
Expand Down

0 comments on commit 5b3cf4e

Please sign in to comment.