Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating tutorial #41

Merged
merged 6 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions doc/source/tutorial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.. _tutorial:

Tutorial
########

Input files:

**download test data ``gofr_.h5`` at https://github.com/diffpy/diffpy.fourigui/tree/main/tests/testdata**

Procedure:

1. After installation, open a terminal and type ``fourigui`` to start the program.

2. In ``filename``, input the file path to ``gofr_.h5`` and click load.

3. Select which axis you want to view (0, 1, or 2) and use the slider to explore slices of reciprocal space images.

4. Alter the colorbar range and click ``set range`` to create desired contrast.

5. The options directly below the image will allow you to save or move the plot to your liking.

6. Under ``Space Selection``, switch between real and reciprocal space to visualize the differences.

7. ``qmin`` and ``qmax`` can be changed to set your cutoff values. Click ``new cuttoff`` to set the values.

8. Set your animation frame rate and click ``animation`` to create an animation through the slider.
23 changes: 23 additions & 0 deletions news/tutorial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* tutorial added to documentation

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* added [project.scripts] to pyproject.toml

**Security:**

* <news item>
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ maintainers = [
description = "Tool for visualizing 3D diffraction and PDF Images."
keywords = ['diffraction', 'pdf', 'pair distribution function', 'gui']
readme = "README.rst"
requires-python = ">=3.10, <3.13"
requires-python = ">=3.10, <3.14"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
Expand All @@ -32,6 +32,9 @@ classifiers = [
'Topic :: Scientific/Engineering :: Chemistry',
]

[project.scripts]
fourigui = "diffpy.fourigui.fourigui:main"

[project.urls]
Homepage = "https://github.com/diffpy/diffpy.fourigui/"
Issues = "https://github.com/diffpy/diffpy.fourigui/issues/"
Expand Down