diffpy.structure 3.2.2__tar.gz → 3.2.2rc0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/AUTHORS.rst +0 -1
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/LICENSE.rst +1 -1
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/LICENSE_DANSE.rst +2 -2
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/LICENSE_pymmlib.rst +1 -1
- diffpy_structure-3.2.2rc0/MANIFEST.in +14 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/PKG-INFO +9 -6
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/README.rst +8 -5
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/pyproject.toml +1 -1
- diffpy_structure-3.2.2/requirements/conda.txt → diffpy_structure-3.2.2rc0/requirements/run.txt +2 -2
- diffpy_structure-3.2.2rc0/src/diffpy/Structure.py +35 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy.structure.egg-info/PKG-INFO +9 -6
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy.structure.egg-info/SOURCES.txt +4 -34
- diffpy_structure-3.2.2rc0/tests/test_oldimports.py +77 -0
- diffpy_structure-3.2.2/MANIFEST.in +0 -12
- diffpy_structure-3.2.2/requirements/build.txt +0 -0
- diffpy_structure-3.2.2/requirements/docs.txt +0 -4
- diffpy_structure-3.2.2/requirements/pip.txt +0 -2
- diffpy_structure-3.2.2/requirements/test.txt +0 -6
- diffpy_structure-3.2.2/tests/conftest.py +0 -29
- diffpy_structure-3.2.2/tests/testdata/BubbleRaftShort.xcfg +0 -523
- diffpy_structure-3.2.2/tests/testdata/CdSe_bulk.stru +0 -33
- diffpy_structure-3.2.2/tests/testdata/LiCl-bad.cif +0 -231
- diffpy_structure-3.2.2/tests/testdata/Ni-bad.stru +0 -32
- diffpy_structure-3.2.2/tests/testdata/Ni-discus.stru +0 -9
- diffpy_structure-3.2.2/tests/testdata/Ni.stru +0 -33
- diffpy_structure-3.2.2/tests/testdata/Ni_prim123.stru +0 -45
- diffpy_structure-3.2.2/tests/testdata/Ni_ref.cif +0 -20
- diffpy_structure-3.2.2/tests/testdata/PbTe.cif +0 -227
- diffpy_structure-3.2.2/tests/testdata/TeI-unkocc.cif +0 -37
- diffpy_structure-3.2.2/tests/testdata/TeI.cif +0 -37
- diffpy_structure-3.2.2/tests/testdata/ZnSb_RT_Q28X_VM_20_fxiso.rstr +0 -405
- diffpy_structure-3.2.2/tests/testdata/arginine.pdb +0 -28
- diffpy_structure-3.2.2/tests/testdata/badspacegroup.cif +0 -49
- diffpy_structure-3.2.2/tests/testdata/bucky-bad1.xyz +0 -61
- diffpy_structure-3.2.2/tests/testdata/bucky-bad2.xyz +0 -62
- diffpy_structure-3.2.2/tests/testdata/bucky-plain-bad.xyz +0 -60
- diffpy_structure-3.2.2/tests/testdata/bucky-plain.xyz +0 -60
- diffpy_structure-3.2.2/tests/testdata/bucky-raw.xyz +0 -60
- diffpy_structure-3.2.2/tests/testdata/bucky.xyz +0 -65
- diffpy_structure-3.2.2/tests/testdata/curlybrackets.cif +0 -120
- diffpy_structure-3.2.2/tests/testdata/customsg.cif +0 -44
- diffpy_structure-3.2.2/tests/testdata/graphite.cif +0 -44
- diffpy_structure-3.2.2/tests/testdata/hexagon-raw-bad.xyz +0 -6
- diffpy_structure-3.2.2/tests/testdata/hexagon-raw.xy +0 -6
- diffpy_structure-3.2.2/tests/testdata/hexagon-raw.xyz +0 -6
- diffpy_structure-3.2.2/tests/testdata/nosites.cif +0 -44
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/setup.cfg +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/__init__.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/__init__.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/_legacy_importer.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/apps/__init__.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/apps/anyeye.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/apps/transtru.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/atom.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/expansion/__init__.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/expansion/makeellipsoid.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/expansion/shapeutils.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/expansion/supercell_mod.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/lattice.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/mmlibspacegroups.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/__init__.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/p_auto.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/p_cif.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/p_discus.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/p_pdb.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/p_pdffit.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/p_rawxyz.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/p_xcfg.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/p_xyz.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/parser_index_mod.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/parsers/structureparser.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/pdffitstructure.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/sgtbxspacegroups.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/spacegroupmod.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/spacegroups.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/structure.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/structureerrors.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/symmetryutilities.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/utils.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy/structure/version.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy.structure.egg-info/dependency_links.txt +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy.structure.egg-info/requires.txt +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy.structure.egg-info/top_level.txt +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_atom.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_lattice.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_loadstructure.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_p_cif.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_p_discus.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_p_pdffit.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_parsers.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_spacegroups.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_structure.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_supercell.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_symmetryutilities.py +0 -0
- {diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/tests/test_version.py +0 -0
|
@@ -15,7 +15,7 @@ Copyright (c) 2014, Australian Synchrotron Research Program Inc., ("ASRP")
|
|
|
15
15
|
|
|
16
16
|
Copyright (c) 2014-2019, Brookhaven Science Associates, Brookhaven National Laboratory
|
|
17
17
|
|
|
18
|
-
Copyright (c) 2024, The Trustees of Columbia University in the City of New York.
|
|
18
|
+
Copyright (c) 2024, The Trustees of Columbia University in the City of New York.
|
|
19
19
|
All rights reserved.
|
|
20
20
|
|
|
21
21
|
The "DiffPy-CMI" is distributed subject to the following license conditions:
|
|
@@ -9,13 +9,13 @@ Copyright 2006-2007, Board of Trustees of Michigan State University,
|
|
|
9
9
|
Copyright 2008-2012, The Trustees of Columbia University in the
|
|
10
10
|
City of New York. (Copyright holder indicated in each source file).
|
|
11
11
|
|
|
12
|
-
Copyright (c) 2024, The Trustees of Columbia University in the City of New York.
|
|
12
|
+
Copyright (c) 2024, The Trustees of Columbia University in the City of New York.
|
|
13
13
|
All rights reserved.
|
|
14
14
|
|
|
15
15
|
For more information please visit the project web-page:
|
|
16
16
|
|
|
17
17
|
http://www.diffpy.org/
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
or email Prof. Simon Billinge at sb2896@columbia.edu
|
|
20
20
|
|
|
21
21
|
Redistribution and use in source and binary forms, with or without
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
include AUTHORS.rst
|
|
2
|
+
include LICENSE
|
|
3
|
+
include README.rst
|
|
4
|
+
include requirements.txt
|
|
5
|
+
|
|
6
|
+
recursive-exclude * __pycache__
|
|
7
|
+
recursive-exclude * *.py[co]
|
|
8
|
+
|
|
9
|
+
recursive-include docs *.rst conf.py Makefile make.bat
|
|
10
|
+
|
|
11
|
+
include diffpy.structure/version.py
|
|
12
|
+
|
|
13
|
+
# If including data files in the package, add them like:
|
|
14
|
+
# include path/to/data_file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: diffpy.structure
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.2rc0
|
|
4
4
|
Summary: Crystal structure container and parsers for structure formats.
|
|
5
5
|
Author-email: "Simon J.L. Billinge group" <simon.billinge@gmail.com>
|
|
6
6
|
Maintainer-email: "Simon J.L. Billinge group" <simon.billinge@gmail.com>
|
|
@@ -47,8 +47,8 @@ Requires-Dist: pycifrw
|
|
|
47
47
|
.. |Black| image:: https://img.shields.io/badge/code_style-black-black
|
|
48
48
|
:target: https://github.com/psf/black
|
|
49
49
|
|
|
50
|
-
.. |CI| image:: https://github.com/diffpy/diffpy.structure/actions/workflows/
|
|
51
|
-
:target: https://github.com/diffpy/diffpy.structure/actions/workflows/
|
|
50
|
+
.. |CI| image:: https://github.com/diffpy/diffpy.structure/actions/workflows/main.yml/badge.svg
|
|
51
|
+
:target: https://github.com/diffpy/diffpy.structure/actions/workflows/main.yml
|
|
52
52
|
|
|
53
53
|
.. |Codecov| image:: https://codecov.io/gh/diffpy/diffpy.structure/branch/main/graph/badge.svg
|
|
54
54
|
:target: https://codecov.io/gh/diffpy/diffpy.structure
|
|
@@ -79,7 +79,6 @@ of symmetry constraints for atom positions and displacement parameters.
|
|
|
79
79
|
diffpy.structure includes definitions of all space groups in over 500
|
|
80
80
|
symmetry settings.
|
|
81
81
|
|
|
82
|
-
|
|
83
82
|
For more information about the diffpy.structure library, please consult our `online documentation <https://diffpy.github.io/diffpy.structure>`_.
|
|
84
83
|
|
|
85
84
|
Citation
|
|
@@ -119,7 +118,11 @@ Then, to fully install ``diffpy.structure`` in our active environment, run ::
|
|
|
119
118
|
|
|
120
119
|
Another option is to use ``pip`` to download and install the latest release from
|
|
121
120
|
`Python Package Index <https://pypi.python.org>`_.
|
|
122
|
-
To install using ``pip`` into your ``diffpy.structure_env`` environment,
|
|
121
|
+
To install using ``pip`` into your ``diffpy.structure_env`` environment, we will also have to install dependencies ::
|
|
122
|
+
|
|
123
|
+
pip install -r https://raw.githubusercontent.com/diffpy/diffpy.structure/main/requirements/run.txt
|
|
124
|
+
|
|
125
|
+
and then install the package ::
|
|
123
126
|
|
|
124
127
|
pip install diffpy.structure
|
|
125
128
|
|
|
@@ -134,7 +137,7 @@ Support and Contribute
|
|
|
134
137
|
|
|
135
138
|
`Diffpy user group <https://groups.google.com/g/diffpy-users>`_ is the discussion forum for general questions and discussions about the use of diffpy.structure. Please join the diffpy.structure users community by joining the Google group. The diffpy.structure project welcomes your expertise and enthusiasm!
|
|
136
139
|
|
|
137
|
-
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.structure/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.structure/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
|
|
140
|
+
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.structure/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.structure/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
|
|
138
141
|
|
|
139
142
|
Feel free to fork the project and contribute. To install diffpy.structure
|
|
140
143
|
in a development mode, with its sources being directly used by Python
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
.. |Black| image:: https://img.shields.io/badge/code_style-black-black
|
|
16
16
|
:target: https://github.com/psf/black
|
|
17
17
|
|
|
18
|
-
.. |CI| image:: https://github.com/diffpy/diffpy.structure/actions/workflows/
|
|
19
|
-
:target: https://github.com/diffpy/diffpy.structure/actions/workflows/
|
|
18
|
+
.. |CI| image:: https://github.com/diffpy/diffpy.structure/actions/workflows/main.yml/badge.svg
|
|
19
|
+
:target: https://github.com/diffpy/diffpy.structure/actions/workflows/main.yml
|
|
20
20
|
|
|
21
21
|
.. |Codecov| image:: https://codecov.io/gh/diffpy/diffpy.structure/branch/main/graph/badge.svg
|
|
22
22
|
:target: https://codecov.io/gh/diffpy/diffpy.structure
|
|
@@ -47,7 +47,6 @@ of symmetry constraints for atom positions and displacement parameters.
|
|
|
47
47
|
diffpy.structure includes definitions of all space groups in over 500
|
|
48
48
|
symmetry settings.
|
|
49
49
|
|
|
50
|
-
|
|
51
50
|
For more information about the diffpy.structure library, please consult our `online documentation <https://diffpy.github.io/diffpy.structure>`_.
|
|
52
51
|
|
|
53
52
|
Citation
|
|
@@ -87,7 +86,11 @@ Then, to fully install ``diffpy.structure`` in our active environment, run ::
|
|
|
87
86
|
|
|
88
87
|
Another option is to use ``pip`` to download and install the latest release from
|
|
89
88
|
`Python Package Index <https://pypi.python.org>`_.
|
|
90
|
-
To install using ``pip`` into your ``diffpy.structure_env`` environment,
|
|
89
|
+
To install using ``pip`` into your ``diffpy.structure_env`` environment, we will also have to install dependencies ::
|
|
90
|
+
|
|
91
|
+
pip install -r https://raw.githubusercontent.com/diffpy/diffpy.structure/main/requirements/run.txt
|
|
92
|
+
|
|
93
|
+
and then install the package ::
|
|
91
94
|
|
|
92
95
|
pip install diffpy.structure
|
|
93
96
|
|
|
@@ -102,7 +105,7 @@ Support and Contribute
|
|
|
102
105
|
|
|
103
106
|
`Diffpy user group <https://groups.google.com/g/diffpy-users>`_ is the discussion forum for general questions and discussions about the use of diffpy.structure. Please join the diffpy.structure users community by joining the Google group. The diffpy.structure project welcomes your expertise and enthusiasm!
|
|
104
107
|
|
|
105
|
-
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.structure/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.structure/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
|
|
108
|
+
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.structure/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.structure/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
|
|
106
109
|
|
|
107
110
|
Feel free to fork the project and contribute. To install diffpy.structure
|
|
108
111
|
in a development mode, with its sources being directly used by Python
|
|
@@ -49,7 +49,7 @@ exclude = [] # exclude packages matching these glob patterns (empty by default)
|
|
|
49
49
|
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
|
|
50
50
|
|
|
51
51
|
[tool.setuptools.dynamic]
|
|
52
|
-
dependencies = {file = ["requirements/
|
|
52
|
+
dependencies = {file = ["requirements/run.txt"]}
|
|
53
53
|
|
|
54
54
|
[tool.black]
|
|
55
55
|
line-length = 115
|
diffpy_structure-3.2.2/requirements/conda.txt → diffpy_structure-3.2.2rc0/requirements/run.txt
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
numpy
|
|
2
|
-
pycifrw
|
|
1
|
+
numpy
|
|
2
|
+
pycifrw
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
##############################################################################
|
|
3
|
+
#
|
|
4
|
+
# diffpy.structure Complex Modeling Initiative
|
|
5
|
+
# (c) 2017 Brookhaven Science Associates,
|
|
6
|
+
# Brookhaven National Laboratory.
|
|
7
|
+
# All rights reserved.
|
|
8
|
+
#
|
|
9
|
+
# File coded by: Pavol Juhas
|
|
10
|
+
#
|
|
11
|
+
# See AUTHORS.txt for a list of people who contributed.
|
|
12
|
+
# See LICENSE.txt for license information.
|
|
13
|
+
#
|
|
14
|
+
##############################################################################
|
|
15
|
+
|
|
16
|
+
"""Support import of old camel-case module names with `DeprecationWarning`.
|
|
17
|
+
|
|
18
|
+
The imported camel-case modules are aliases for the current module
|
|
19
|
+
instances. Their `__name__` attributes are thus all in lower-case.
|
|
20
|
+
|
|
21
|
+
Warning
|
|
22
|
+
-------
|
|
23
|
+
This module is deprecated and will be removed in the future.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
import sys
|
|
28
|
+
|
|
29
|
+
# install legacy import hooks
|
|
30
|
+
import diffpy.structure._legacy_importer
|
|
31
|
+
|
|
32
|
+
# replace this module with the new one
|
|
33
|
+
sys.modules["diffpy.Structure"] = diffpy.structure
|
|
34
|
+
|
|
35
|
+
# End of file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: diffpy.structure
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.2rc0
|
|
4
4
|
Summary: Crystal structure container and parsers for structure formats.
|
|
5
5
|
Author-email: "Simon J.L. Billinge group" <simon.billinge@gmail.com>
|
|
6
6
|
Maintainer-email: "Simon J.L. Billinge group" <simon.billinge@gmail.com>
|
|
@@ -47,8 +47,8 @@ Requires-Dist: pycifrw
|
|
|
47
47
|
.. |Black| image:: https://img.shields.io/badge/code_style-black-black
|
|
48
48
|
:target: https://github.com/psf/black
|
|
49
49
|
|
|
50
|
-
.. |CI| image:: https://github.com/diffpy/diffpy.structure/actions/workflows/
|
|
51
|
-
:target: https://github.com/diffpy/diffpy.structure/actions/workflows/
|
|
50
|
+
.. |CI| image:: https://github.com/diffpy/diffpy.structure/actions/workflows/main.yml/badge.svg
|
|
51
|
+
:target: https://github.com/diffpy/diffpy.structure/actions/workflows/main.yml
|
|
52
52
|
|
|
53
53
|
.. |Codecov| image:: https://codecov.io/gh/diffpy/diffpy.structure/branch/main/graph/badge.svg
|
|
54
54
|
:target: https://codecov.io/gh/diffpy/diffpy.structure
|
|
@@ -79,7 +79,6 @@ of symmetry constraints for atom positions and displacement parameters.
|
|
|
79
79
|
diffpy.structure includes definitions of all space groups in over 500
|
|
80
80
|
symmetry settings.
|
|
81
81
|
|
|
82
|
-
|
|
83
82
|
For more information about the diffpy.structure library, please consult our `online documentation <https://diffpy.github.io/diffpy.structure>`_.
|
|
84
83
|
|
|
85
84
|
Citation
|
|
@@ -119,7 +118,11 @@ Then, to fully install ``diffpy.structure`` in our active environment, run ::
|
|
|
119
118
|
|
|
120
119
|
Another option is to use ``pip`` to download and install the latest release from
|
|
121
120
|
`Python Package Index <https://pypi.python.org>`_.
|
|
122
|
-
To install using ``pip`` into your ``diffpy.structure_env`` environment,
|
|
121
|
+
To install using ``pip`` into your ``diffpy.structure_env`` environment, we will also have to install dependencies ::
|
|
122
|
+
|
|
123
|
+
pip install -r https://raw.githubusercontent.com/diffpy/diffpy.structure/main/requirements/run.txt
|
|
124
|
+
|
|
125
|
+
and then install the package ::
|
|
123
126
|
|
|
124
127
|
pip install diffpy.structure
|
|
125
128
|
|
|
@@ -134,7 +137,7 @@ Support and Contribute
|
|
|
134
137
|
|
|
135
138
|
`Diffpy user group <https://groups.google.com/g/diffpy-users>`_ is the discussion forum for general questions and discussions about the use of diffpy.structure. Please join the diffpy.structure users community by joining the Google group. The diffpy.structure project welcomes your expertise and enthusiasm!
|
|
136
139
|
|
|
137
|
-
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.structure/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.structure/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
|
|
140
|
+
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.structure/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.structure/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
|
|
138
141
|
|
|
139
142
|
Feel free to fork the project and contribute. To install diffpy.structure
|
|
140
143
|
in a development mode, with its sources being directly used by Python
|
{diffpy_structure-3.2.2 → diffpy_structure-3.2.2rc0}/src/diffpy.structure.egg-info/SOURCES.txt
RENAMED
|
@@ -5,11 +5,8 @@ LICENSE_pymmlib.rst
|
|
|
5
5
|
MANIFEST.in
|
|
6
6
|
README.rst
|
|
7
7
|
pyproject.toml
|
|
8
|
-
requirements/
|
|
9
|
-
|
|
10
|
-
requirements/docs.txt
|
|
11
|
-
requirements/pip.txt
|
|
12
|
-
requirements/test.txt
|
|
8
|
+
requirements/run.txt
|
|
9
|
+
src/diffpy/Structure.py
|
|
13
10
|
src/diffpy/__init__.py
|
|
14
11
|
src/diffpy.structure.egg-info/PKG-INFO
|
|
15
12
|
src/diffpy.structure.egg-info/SOURCES.txt
|
|
@@ -48,10 +45,10 @@ src/diffpy/structure/parsers/p_xcfg.py
|
|
|
48
45
|
src/diffpy/structure/parsers/p_xyz.py
|
|
49
46
|
src/diffpy/structure/parsers/parser_index_mod.py
|
|
50
47
|
src/diffpy/structure/parsers/structureparser.py
|
|
51
|
-
tests/conftest.py
|
|
52
48
|
tests/test_atom.py
|
|
53
49
|
tests/test_lattice.py
|
|
54
50
|
tests/test_loadstructure.py
|
|
51
|
+
tests/test_oldimports.py
|
|
55
52
|
tests/test_p_cif.py
|
|
56
53
|
tests/test_p_discus.py
|
|
57
54
|
tests/test_p_pdffit.py
|
|
@@ -60,31 +57,4 @@ tests/test_spacegroups.py
|
|
|
60
57
|
tests/test_structure.py
|
|
61
58
|
tests/test_supercell.py
|
|
62
59
|
tests/test_symmetryutilities.py
|
|
63
|
-
tests/test_version.py
|
|
64
|
-
tests/testdata/BubbleRaftShort.xcfg
|
|
65
|
-
tests/testdata/CdSe_bulk.stru
|
|
66
|
-
tests/testdata/LiCl-bad.cif
|
|
67
|
-
tests/testdata/Ni-bad.stru
|
|
68
|
-
tests/testdata/Ni-discus.stru
|
|
69
|
-
tests/testdata/Ni.stru
|
|
70
|
-
tests/testdata/Ni_prim123.stru
|
|
71
|
-
tests/testdata/Ni_ref.cif
|
|
72
|
-
tests/testdata/PbTe.cif
|
|
73
|
-
tests/testdata/TeI-unkocc.cif
|
|
74
|
-
tests/testdata/TeI.cif
|
|
75
|
-
tests/testdata/ZnSb_RT_Q28X_VM_20_fxiso.rstr
|
|
76
|
-
tests/testdata/arginine.pdb
|
|
77
|
-
tests/testdata/badspacegroup.cif
|
|
78
|
-
tests/testdata/bucky-bad1.xyz
|
|
79
|
-
tests/testdata/bucky-bad2.xyz
|
|
80
|
-
tests/testdata/bucky-plain-bad.xyz
|
|
81
|
-
tests/testdata/bucky-plain.xyz
|
|
82
|
-
tests/testdata/bucky-raw.xyz
|
|
83
|
-
tests/testdata/bucky.xyz
|
|
84
|
-
tests/testdata/curlybrackets.cif
|
|
85
|
-
tests/testdata/customsg.cif
|
|
86
|
-
tests/testdata/graphite.cif
|
|
87
|
-
tests/testdata/hexagon-raw-bad.xyz
|
|
88
|
-
tests/testdata/hexagon-raw.xy
|
|
89
|
-
tests/testdata/hexagon-raw.xyz
|
|
90
|
-
tests/testdata/nosites.cif
|
|
60
|
+
tests/test_version.py
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
##############################################################################
|
|
3
|
+
#
|
|
4
|
+
# diffpy.structure Complex Modeling Initiative
|
|
5
|
+
# (c) 2017 Brookhaven Science Associates,
|
|
6
|
+
# Brookhaven National Laboratory.
|
|
7
|
+
# All rights reserved.
|
|
8
|
+
#
|
|
9
|
+
# File coded by: Pavol Juhas
|
|
10
|
+
#
|
|
11
|
+
# See AUTHORS.txt for a list of people who contributed.
|
|
12
|
+
# See LICENSE.txt for license information.
|
|
13
|
+
#
|
|
14
|
+
##############################################################################
|
|
15
|
+
|
|
16
|
+
"""
|
|
17
|
+
Unit tests for imports of old camel-case names.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
import importlib
|
|
22
|
+
import sys
|
|
23
|
+
import unittest
|
|
24
|
+
import warnings
|
|
25
|
+
|
|
26
|
+
import diffpy
|
|
27
|
+
|
|
28
|
+
# ----------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class TestOldImports(unittest.TestCase):
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def setUpClass(cls):
|
|
35
|
+
"Uncache any already-imported old modules."
|
|
36
|
+
for modname in tuple(sys.modules):
|
|
37
|
+
if modname.startswith("diffpy.Structure"):
|
|
38
|
+
del sys.modules[modname] # pragma: no cover
|
|
39
|
+
return
|
|
40
|
+
|
|
41
|
+
def test_00TopImport(self):
|
|
42
|
+
"""check import of diffpy.Structure"""
|
|
43
|
+
with warnings.catch_warnings():
|
|
44
|
+
warnings.simplefilter("ignore", category=DeprecationWarning)
|
|
45
|
+
import diffpy.Structure as m0
|
|
46
|
+
self.assertIs(diffpy.structure, m0)
|
|
47
|
+
# second import should raise no warning
|
|
48
|
+
with warnings.catch_warnings():
|
|
49
|
+
warnings.simplefilter("error")
|
|
50
|
+
import diffpy.Structure as m1
|
|
51
|
+
self.assertIs(diffpy.structure, m1)
|
|
52
|
+
return
|
|
53
|
+
|
|
54
|
+
def test_O1SubmoduleImport(self):
|
|
55
|
+
"""check import of diffpy.Structure submodules."""
|
|
56
|
+
with warnings.catch_warnings(record=True) as w:
|
|
57
|
+
warnings.simplefilter("always", category=DeprecationWarning)
|
|
58
|
+
import diffpy.Structure.SymmetryUtilities as symutil
|
|
59
|
+
|
|
60
|
+
self.assertIs(DeprecationWarning, w[0].category)
|
|
61
|
+
self.assertIs(diffpy.structure.symmetryutilities, symutil)
|
|
62
|
+
with warnings.catch_warnings(record=True) as w:
|
|
63
|
+
warnings.simplefilter("always", category=DeprecationWarning)
|
|
64
|
+
import diffpy.Structure.Parsers.P_cif as pcif
|
|
65
|
+
|
|
66
|
+
self.assertIs(DeprecationWarning, w[0].category)
|
|
67
|
+
self.assertIs(diffpy.structure.parsers.p_cif, pcif)
|
|
68
|
+
self.assertRaises(ImportError, importlib.import_module, "diffpy.Structure.SSpaceGroups")
|
|
69
|
+
return
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
# End of class TestOldImports
|
|
73
|
+
|
|
74
|
+
# ----------------------------------------------------------------------------
|
|
75
|
+
|
|
76
|
+
if __name__ == "__main__":
|
|
77
|
+
unittest.main()
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
graft src
|
|
2
|
-
graft tests
|
|
3
|
-
graft requirements
|
|
4
|
-
|
|
5
|
-
include AUTHORS.rst LICENSE*.rst README.rst
|
|
6
|
-
|
|
7
|
-
# Exclude all bytecode files and __pycache__ directories
|
|
8
|
-
global-exclude *.py[cod] # Exclude all .pyc, .pyo, and .pyd files.
|
|
9
|
-
global-exclude .DS_Store # Exclude Mac filesystem artifacts.
|
|
10
|
-
global-exclude __pycache__ # Exclude Python cache directories.
|
|
11
|
-
global-exclude .git* # Exclude git files and directories.
|
|
12
|
-
global-exclude .idea # Exclude PyCharm project settings.
|
|
File without changes
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from pathlib import Path
|
|
3
|
-
|
|
4
|
-
import pytest
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@pytest.fixture
|
|
8
|
-
def user_filesystem(tmp_path):
|
|
9
|
-
base_dir = Path(tmp_path)
|
|
10
|
-
home_dir = base_dir / "home_dir"
|
|
11
|
-
home_dir.mkdir(parents=True, exist_ok=True)
|
|
12
|
-
cwd_dir = base_dir / "cwd_dir"
|
|
13
|
-
cwd_dir.mkdir(parents=True, exist_ok=True)
|
|
14
|
-
|
|
15
|
-
home_config_data = {"username": "home_username", "email": "home@email.com"}
|
|
16
|
-
with open(home_dir / "diffpyconfig.json", "w") as f:
|
|
17
|
-
json.dump(home_config_data, f)
|
|
18
|
-
|
|
19
|
-
yield tmp_path
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@pytest.fixture
|
|
23
|
-
def datafile():
|
|
24
|
-
"""Fixture to dynamically load any test file."""
|
|
25
|
-
|
|
26
|
-
def _load(filename):
|
|
27
|
-
return "tests/testdata/" + filename
|
|
28
|
-
|
|
29
|
-
return _load
|