Skip to content

Commit

Permalink
Merge pull request #29 from rs-station/docupdate
Browse files Browse the repository at this point in the history
add new CLI and instructions for dev install
  • Loading branch information
PrinceWalnut authored Oct 26, 2023
2 parents c779bc9 + e48c022 commit a8c3a0b
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 8 deletions.
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,18 @@ To install ``laue-dials``, the DIALS code must first be installed using
conda install -c conda-forge dials
Then, using the DIALS python environment, run the following:
Then, using the same python environment, run the following to install ``laue-dials`` from ``pip``:

.. code:: python
pip install laue-dials
or alternatively, install the development version of ``laue-dials`` from GitHub:

.. code:: python
pip install git+https://github.com/rs-station/laue-dials.git
``laue-dials`` consists of several command-line scripts for the processing of Laue diffraction data, which are

.. code:: python
Expand Down
24 changes: 24 additions & 0 deletions docs/cli/find_spots.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. _find_spots:

laue_dials.find_spots
=====================

Introduction
------------

.. python_string:: laue_dials.command_line.find_spots.help_message

Basic parameters
----------------

.. phil:: laue_dials.command_line.find_spots.working_phil
:expert-level: 0
:attributes-level: 0


Full parameter definitions
--------------------------

.. phil:: laue_dials.command_line.find_spots.working_phil
:expert-level: 2
:attributes-level: 2
4 changes: 3 additions & 1 deletion docs/cli/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
.. toctree::
:maxdepth: 1
initial_solution
find_spots
index
sequence_to_stills
optimize_indexing
refine
predict
integrate
plot_wavelengths
```
24 changes: 24 additions & 0 deletions docs/cli/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. _index:

laue_dials.index
================

Introduction
------------

.. python_string:: laue_dials.command_line.index.help_message

Basic parameters
----------------

.. phil:: laue_dials.command_line.index.working_phil
:expert-level: 0
:attributes-level: 0


Full parameter definitions
--------------------------

.. phil:: laue_dials.command_line.index.working_phil
:expert-level: 2
:attributes-level: 2
24 changes: 24 additions & 0 deletions docs/cli/plot_wavelengths.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. _plot_wavelengths:

laue_dials.plot_wavelengths
===========================

Introduction
------------

.. python_string:: laue_dials.command_line.plot_wavelengths.help_message

Basic parameters
----------------

.. phil:: laue_dials.command_line.plot_wavelengths.working_phil
:expert-level: 0
:attributes-level: 0


Full parameter definitions
--------------------------

.. phil:: laue_dials.command_line.plot_wavelengths.working_phil
:expert-level: 2
:attributes-level: 2
4 changes: 2 additions & 2 deletions src/laue_dials/command_line/find_spots.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
This program takes a DIALS imported experiment list (generated with
dials.import) and generates a reflection table of strong spots
for the remainder of the pipeline. The output is a strong.refl file
that contains all the found strong spots for the experiment.
for the remainder of the pipeline. The output is a strong.refl file
that contains all the found strong spots for the experiment.
Examples:
Expand Down
8 changes: 4 additions & 4 deletions src/laue_dials/command_line/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
help_message = """
This program takes a DIALS imported experiment list (generated with
dials.import) and a strong reflection table and generates an initial
monochromatic indexing solution to feed into the remainder of the pipeline.
The outputs are a pair of files (monochromatic.expt, monochromatic.refl)
dials.import) and a strong reflection table and generates an initial
monochromatic indexing solution to feed into the remainder of the pipeline.
The outputs are a pair of files (monochromatic.expt, monochromatic.refl)
that constitute a monochromatic estimate of a geometric solution for the
experiment.
experiment.
Examples:
Expand Down

0 comments on commit a8c3a0b

Please sign in to comment.