Skip to content

Commit a8607e9

Browse files
committed
Version 3.2.0
Added pyproject.toml, updated readme
1 parent 7fdcc68 commit a8607e9

File tree

3 files changed

+76
-22
lines changed

3 files changed

+76
-22
lines changed

Dans_Diffraction/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
July 2023 Thanks to Yves Joly for helpful suggestions on FDMNES wrapper
9696
Oct 2023 Thanks to asteppke for pointing out scaling issue in diffractometer gui
9797
Oct 2023 Thanks to Cyril Cayron for pointing out the error with plotting neutron power spectra
98+
Jan 2024 Thanks to Carmelo Prestipino for adding search_distance and plot_distance
9899
May 2024 Thanks to Innbig for spotting some errors in large liquid crystal powder patterns
99100
May 2024 Thanks to paul-cares pointing out a silly spelling error in the title!
100101

README.md

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Reads crystallographic cif files, calculates crystal properties and simulates di
44
**Version 3.2**
55

66
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8106031.svg)](https://doi.org/10.5281/zenodo.8106031)
7-
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/DanPorter/Dans_Diffraction/6be78ef800167276d61d3e73da3b74a8367dbbe7?urlpath=lab%2Ftree%2FDans_Diffraction.ipynb)
7+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/DanPorter/Dans_Diffraction/master?labpath=Dans_Diffraction.ipynb)
88
[![](https://img.shields.io/github/forks/DanPorter/Dans_Diffraction?label=GitHub%20Repo&style=social)](https://github.com/DanPorter/Dans_Diffraction)
99

1010

@@ -37,7 +37,7 @@ xtl.start_gui()
3737

3838
Full code documentation available [here](https://danporter.github.io/Dans_Diffraction/).
3939

40-
Try it out on [mybinder!](https://mybinder.org/v2/gh/DanPorter/Dans_Diffraction/6be78ef800167276d61d3e73da3b74a8367dbbe7?urlpath=lab%2Ftree%2FDans_Diffraction.ipynb)
40+
Try it out on [mybinder!](https://mybinder.org/v2/gh/DanPorter/Dans_Diffraction/master?labpath=Dans_Diffraction.ipynb)
4141

4242
For comments, queries or bugs - email [[email protected]](mailto:[email protected])
4343

@@ -61,12 +61,18 @@ $ python -m pip install git+https://github.com/DanPorter/Dans_Diffraction.git
6161
Or, Download the latest version from GitHub (with examples!):
6262
```text
6363
$ git clone https://github.com/DanPorter/Dans_Diffraction.git
64+
$ cd Dans_Diffraction
65+
$ python -m pip install .
6466
```
6567

6668

6769

6870
# Operation
69-
Dans_Diffraction is best run within an interactive python environment:
71+
From version 3.2, installing Dans_Diffraction will include a run script for the gui:
72+
```text
73+
$ dansdiffraction
74+
```
75+
Alternatively, Dans_Diffraction is best run within an interactive python environment:
7076
```text
7177
$ ipython -i -m Dans_Diffraction
7278
```
@@ -259,25 +265,26 @@ Once activated, FDMNES GUI elements become available from the main window, emula
259265

260266

261267
# Acknoledgements
262-
| Date | Thanks to... |
263-
|------------|-----------------------------------------------------------------------------------------|
264-
| 2018 | Thanks to Hepesu for help with Python3 support and ideas about breaking up calculations |
265-
| Dec 2019 | Thanks to Gareth Nisbet for allowing me to inlude his multiple scattering siumulation |
266-
| April 2020 | Thanks to ChunHai Wang for helpful suggestions in readcif! |
267-
| May 2020 | Thanks to AndreEbel for helpful suggestions on citations |
268-
| Dec 2020 | Thanks to Chris Drozdowski for suggestions about reflection families |
269-
| Jan 2021 | Thanks to aslarsen for suggestions about outputting the structure factor |
270-
| April 2021 | Thanks to Trygve Ræder for suggestions about x-ray scattering factors |
271-
| Feb 2022 | Thanks to Mirko for pointing out the error in two-theta values in Scatter.powder |
272-
| March 2022 | Thanks to yevgenyr for suggesting new peak profiles in Scatter.powder |
273-
| Jan 2023 | Thanks to Anuradha Vibhakar for pointing out the error in f0 + if'-if'' |
274-
| Jan 2023 | Thanks to Andreas Rosnes for testing the installation in jupyterlab |
275-
| May 2023 | Thanks to Carmelo Prestipino for adding electron scattering factors |
276-
| June 2023 | Thanks to Sergio I. Rincon for pointing out the rounding error in Scatter.powder |
277-
| July 2023 | Thanks to asteppke for suggested update to Arrow3D for matplotlib V>3.4 |
278-
| July 2023 | Thanks to Yves Joly for helpful suggestions on FDMNES wrapper |
279-
| April 2024 | Thanks to Innbig for pointing out an issue with liquid crystal simulations |
280-
| May 2024 | Thanks to paul-cares pointing out a silly spelling error in the title! |
268+
| Date | Thanks to... |
269+
|-------------|-----------------------------------------------------------------------------------------|
270+
| 2018 | Thanks to Hepesu for help with Python3 support and ideas about breaking up calculations |
271+
| Dec 2019 | Thanks to Gareth Nisbet for allowing me to inlude his multiple scattering siumulation |
272+
| April 2020 | Thanks to ChunHai Wang for helpful suggestions in readcif! |
273+
| May 2020 | Thanks to AndreEbel for helpful suggestions on citations |
274+
| Dec 2020 | Thanks to Chris Drozdowski for suggestions about reflection families |
275+
| Jan 2021 | Thanks to aslarsen for suggestions about outputting the structure factor |
276+
| April 2021 | Thanks to Trygve Ræder for suggestions about x-ray scattering factors |
277+
| Feb 2022 | Thanks to Mirko for pointing out the error in two-theta values in Scatter.powder |
278+
| March 2022 | Thanks to yevgenyr for suggesting new peak profiles in Scatter.powder |
279+
| Jan 2023 | Thanks to Anuradha Vibhakar for pointing out the error in f0 + if'-if'' |
280+
| Jan 2023 | Thanks to Andreas Rosnes for testing the installation in jupyterlab |
281+
| May 2023 | Thanks to Carmelo Prestipino for adding electron scattering factors |
282+
| June 2023 | Thanks to Sergio I. Rincon for pointing out the rounding error in Scatter.powder |
283+
| July 2023 | Thanks to asteppke for suggested update to Arrow3D for matplotlib V>3.4 |
284+
| July 2023 | Thanks to Yves Joly for helpful suggestions on FDMNES wrapper |
285+
| Jan 2024 | Thanks to Carmelo Prestipino for adding search_distance and plot_distance |
286+
| April 2024 | Thanks to Innbig for pointing out an issue with liquid crystal simulations |
287+
| May 2024 | Thanks to paul-cares pointing out a silly spelling error in the title! |
281288

282289
Copyright
283290
-----------------------------------------------------------------------------

pyproject.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[build-system]
2+
requires = ["setuptools >= 61.0", "wheel", "numpy", "matplotlib"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "Dans_Diffraction"
7+
version = "3.2.0"
8+
dependencies = [
9+
"numpy",
10+
"matplotlib",
11+
]
12+
requires-python = ">=3.7"
13+
authors = [
14+
{name = "Dan Porter", email = "[email protected]"},
15+
]
16+
maintainers = [
17+
{name = "Dan Porter", email = "[email protected]"},
18+
]
19+
description = "Generate diffracted intensities from crystals"
20+
readme = "README.md"
21+
license = {file = "LICENSE"}
22+
keywords = [
23+
'crystal', 'cif', 'diffraction', 'crystallography', 'science',
24+
'x-ray', 'neutron', 'resonant', 'magnetic', 'magnetism', 'multiple scattering',
25+
'fdmnes', 'super structure', 'spacegroup', 'space group', 'diffractometer'
26+
]
27+
classifiers = [
28+
'Programming Language :: Python :: 3.7',
29+
'Intended Audience :: Science/Research',
30+
'Topic :: Scientific/Engineering :: Physics',
31+
'License :: OSI Approved :: Apache Software License',
32+
'Development Status :: 3 - Alpha',
33+
]
34+
35+
[project.urls]
36+
Homepage = "https://github.com/DanPorter/Dans_Diffraction"
37+
Documentation = "https://danporter.github.io/Dans_Diffraction"
38+
Repository = "https://github.com/DanPorter/Dans_Diffraction"
39+
"Bug Tracker" = "https://github.com/DanPorter/Dans_Diffraction/issues"
40+
Changelog = "https://github.com/DanPorter/Dans_Diffraction/blob/master/README.md"
41+
42+
[project.scripts]
43+
dansdiffraction = "Dans_Diffraction:start_gui"
44+
45+
[project.gui-scripts]
46+
dansdiffraction = "Dans_Diffraction:start_gui"

0 commit comments

Comments
 (0)