Skip to content

Commit

Permalink
DOC #172
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jul 15, 2019
1 parent 6740515 commit 0e05cf9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/spec2nexus/plugins/apstools_specwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class MD_apstools(ControlLineHandler):
key = '#MD\w*'

def process(self, text, scan, *args, **kws):
"""read #MD lines from SPEC data file"""
if not hasattr(scan, 'MD'):
scan.MD = OrderedDict()

Expand Down
20 changes: 19 additions & 1 deletion src/spec2nexus/plugins/uxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,23 @@ class UXML_metadata(ControlLineHandler):
* various items below the *NXentry* parent group,
as indicated in the UXML
.. rubric:: Public methods
.. autosummary::
~process
.. rubric:: Internal methods
.. autosummary::
~walk_xml_tree
~make_NeXus_links
~prune_dict
~dataset
~group
~hardlink
"""

key = '#UXML'
Expand All @@ -58,6 +75,7 @@ class UXML_metadata(ControlLineHandler):
converters = dict(int=int, float=float, str=str)

def process(self, text, scan, *args, **kws):
"""read #UXML lines from SPEC data file into ``scan.UXML``"""
if not hasattr(scan, 'UXML'):
scan.UXML = []

Expand All @@ -67,7 +85,7 @@ def process(self, text, scan, *args, **kws):

def postprocess(self, scan, *args, **kws):
"""
convert the list of UXML text into a single text block
convert the UXML text into an XML object (``scan.UXML_root``)
:param SpecDataFileScan scan: data from a single SPEC scan
"""
Expand Down

0 comments on commit 0e05cf9

Please sign in to comment.