Skip to content

Commit

Permalink
DOC #262 re-organize
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Mar 16, 2022
1 parent 258574b commit 2973487
Show file tree
Hide file tree
Showing 15 changed files with 95 additions and 35 deletions.
17 changes: 17 additions & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
API
##############

The **spec2nexus** package application-programmer interface includes these modules:

.. toctree::
:maxdepth: 2
:glob:

charts
control_lines
diffractometers
plugin_core
scanf
singletons
utils
writer
13 changes: 13 additions & 0 deletions docs/source/applications.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Applications
##############

The **spec2nexus** package provides these applications:

.. toctree::
:maxdepth: 2
:glob:

spec2nexus
extractSpecScan
specplot
specplot_gallery
19 changes: 5 additions & 14 deletions docs/source/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,13 @@ Contents
:maxdepth: 2
:glob:

spec2nexus
extractSpecScan
specplot
specplot_gallery
spec
charts
specplot_custom_scan_macro
eznx
plugin_core
utils
scanf
singletons
writer
install
unit_testing
example_data
applications
libraries
howto
api
unit_testing
changes
license

Expand Down
11 changes: 11 additions & 0 deletions docs/source/control_lines.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. index:: ! plugin

:mod:`spec2nexus.control_lines`
################################################

source code documentation
*************************

.. automodule:: spec2nexus.control_lines
:members:
:synopsis: Use the plugin system to manage the SPEC control key plugins.
11 changes: 11 additions & 0 deletions docs/source/diffractometers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. index:: ! plugin

:mod:`spec2nexus.diffractometers`
################################################

source code documentation
*************************

.. automodule:: spec2nexus.diffractometers
:members:
:synopsis: Describe SPEC diffractometer geometry #G control lines.
3 changes: 3 additions & 0 deletions docs/source/example_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
Example data
############

In addition to the example data files below, see the :ref:`example.1d.ascan`
section an example of the NeXus HDF5 file written by **spec2nexus**.

.. include:: ../../src/spec2nexus/data/README.txt

Downloads
Expand Down
4 changes: 2 additions & 2 deletions docs/source/how_to_write_plugin.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

.. _how_to_write_plugin:

How to write a custom plugin module
###################################
How to write a custom control line handling plugin module for *spec*
######################################################################

.. sidebar:: The code to write plugins has changed with release 2021.0.0.

Expand Down
9 changes: 9 additions & 0 deletions docs/source/howto.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
How-to guides
#############

.. toctree::
:maxdepth: 2
:glob:

how_to_write_plugin
specplot_custom_scan_macro
11 changes: 11 additions & 0 deletions docs/source/libraries.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Libraries
##############

The **spec2nexus** package provides these libraries:

.. toctree::
:maxdepth: 2
:glob:

spec
eznx
1 change: 1 addition & 0 deletions docs/source/nexus_layout/example_1d_scan.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. _example.1d.ascan:

Example 1-D scan
++++++++++++++++
Expand Down
16 changes: 5 additions & 11 deletions docs/source/plugin_core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,11 @@ These plugin modules are supplied:
Writing a custom plugin
***********************

While **spec2nexus** provides a comprehensive set of plugins
to handle the common SPEC :index:`control line` control lines, custom control lines
are used at many facilities to write additional scan data
and scan metadata into the SPEC data file. Custom plugins
are written to process these additions.

.. toctree::
:maxdepth: 2
:glob:

how_to_write_plugin
While **spec2nexus** provides a comprehensive set of plugins to handle the
common SPEC :index:`control line` control lines, custom control lines are used
at many facilities to write additional scan data and scan metadata into the SPEC
data file. Custom plugins are written to process these additions. See the
:ref:`how_to_write_plugin` section for details.

.. _control_line_table:

Expand Down
2 changes: 1 addition & 1 deletion docs/source/spec2nexus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Describe the NeXus File

The NeXus file could be simple or complex, depending on the data available in
the SPEC data file. The content of the NeXus file is described in the following
sections.
sections. See the :ref:`example.1d.ascan` section for an example.

.. toctree::
:maxdepth: 2
Expand Down
4 changes: 2 additions & 2 deletions docs/source/specplot_custom_scan_macro.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

.. _how_to_write_custom_scan_macro_handling:

How to write a custom scan handling for *specplot*
##################################################
How to write a custom scan handling class for *specplot*
#########################################################

Sometimes, it will be obvious that a certain scan macro never generates
any plot images, or that the default handling creates a plot that
Expand Down
4 changes: 3 additions & 1 deletion docs/source/utils.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.. _utils:

Common Methods: :mod:`spec2nexus.utils`
:mod:`spec2nexus.utils`
##########################################

Common methods used throughout the package.

source code documentation
*************************

Expand Down
5 changes: 1 addition & 4 deletions src/spec2nexus/diffractometers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Describe SPEC #G control lines
Describe SPEC diffractometer geometry #G control lines.
#G0 ... G[] array (geo mode, sector, etc)
#G1 ... U[] array (lattice constants, orientation reflections)
Expand Down

0 comments on commit 2973487

Please sign in to comment.