diffpy.structure 3.2.1rc0__py3-none-any.whl → 3.2.2__py3-none-any.whl
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/atom.py +1 -1
- diffpy/structure/structure.py +6 -4
- {diffpy.structure-3.2.1rc0.dist-info → diffpy.structure-3.2.2.dist-info}/AUTHORS.rst +1 -0
- {diffpy.structure-3.2.1rc0.dist-info → diffpy.structure-3.2.2.dist-info}/LICENSE.rst +1 -1
- {diffpy.structure-3.2.1rc0.dist-info → diffpy.structure-3.2.2.dist-info}/LICENSE_DANSE.rst +2 -2
- {diffpy.structure-3.2.1rc0.dist-info → diffpy.structure-3.2.2.dist-info}/LICENSE_pymmlib.rst +1 -1
- {diffpy.structure-3.2.1rc0.dist-info → diffpy.structure-3.2.2.dist-info}/METADATA +8 -9
- {diffpy.structure-3.2.1rc0.dist-info → diffpy.structure-3.2.2.dist-info}/RECORD +10 -11
- {diffpy.structure-3.2.1rc0.dist-info → diffpy.structure-3.2.2.dist-info}/WHEEL +1 -1
- diffpy/Structure.py +0 -35
- {diffpy.structure-3.2.1rc0.dist-info → diffpy.structure-3.2.2.dist-info}/top_level.txt +0 -0
diffpy/structure/atom.py
CHANGED
|
@@ -536,7 +536,7 @@ class _AtomCartesianCoordinates(numpy.ndarray):
|
|
|
536
536
|
self._atom.xyz[:] = self._atom.lattice.fractional(self)
|
|
537
537
|
return
|
|
538
538
|
|
|
539
|
-
def __array_wrap__(self, out_arr, context=None):
|
|
539
|
+
def __array_wrap__(self, out_arr, context=None, return_scalar=None):
|
|
540
540
|
"""Ensure math operations on this type yield standard numpy array."""
|
|
541
541
|
return out_arr.view(numpy.ndarray)
|
|
542
542
|
|
diffpy/structure/structure.py
CHANGED
|
@@ -711,8 +711,9 @@ class Structure(list):
|
|
|
711
711
|
element = _linkAtomAttribute(
|
|
712
712
|
"element",
|
|
713
713
|
"""Character array of `Atom` types. Assignment updates
|
|
714
|
-
the element attribute of the respective `Atoms`.
|
|
715
|
-
|
|
714
|
+
the element attribute of the respective `Atoms`.
|
|
715
|
+
Set the maximum length of the element string to 5 characters.""",
|
|
716
|
+
toarray=lambda items: numpy.char.array(items, itemsize=5),
|
|
716
717
|
)
|
|
717
718
|
|
|
718
719
|
xyz = _linkAtomAttribute(
|
|
@@ -742,8 +743,9 @@ class Structure(list):
|
|
|
742
743
|
label = _linkAtomAttribute(
|
|
743
744
|
"label",
|
|
744
745
|
"""Character array of `Atom` names. Assignment updates
|
|
745
|
-
the label attribute of all `Atoms`.
|
|
746
|
-
|
|
746
|
+
the label attribute of all `Atoms`.
|
|
747
|
+
Set the maximum length of the label string to 5 characters.""",
|
|
748
|
+
toarray=lambda items: numpy.char.array(items, itemsize=5),
|
|
747
749
|
)
|
|
748
750
|
|
|
749
751
|
occupancy = _linkAtomAttribute(
|
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: diffpy.structure
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.2
|
|
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>
|
|
@@ -27,6 +27,8 @@ License-File: LICENSE.rst
|
|
|
27
27
|
License-File: LICENSE_DANSE.rst
|
|
28
28
|
License-File: LICENSE_pymmlib.rst
|
|
29
29
|
License-File: AUTHORS.rst
|
|
30
|
+
Requires-Dist: numpy
|
|
31
|
+
Requires-Dist: pycifrw
|
|
30
32
|
|
|
31
33
|
|Icon| |title|_
|
|
32
34
|
===============
|
|
@@ -45,8 +47,8 @@ License-File: AUTHORS.rst
|
|
|
45
47
|
.. |Black| image:: https://img.shields.io/badge/code_style-black-black
|
|
46
48
|
:target: https://github.com/psf/black
|
|
47
49
|
|
|
48
|
-
.. |CI| image:: https://github.com/diffpy/diffpy.structure/actions/workflows/main.yml/badge.svg
|
|
49
|
-
:target: https://github.com/diffpy/diffpy.structure/actions/workflows/main.yml
|
|
50
|
+
.. |CI| image:: https://github.com/diffpy/diffpy.structure/actions/workflows/matrix-and-codecov-on-merge-to-main.yml/badge.svg
|
|
51
|
+
:target: https://github.com/diffpy/diffpy.structure/actions/workflows/matrix-and-codecov-on-merge-to-main.yml
|
|
50
52
|
|
|
51
53
|
.. |Codecov| image:: https://codecov.io/gh/diffpy/diffpy.structure/branch/main/graph/badge.svg
|
|
52
54
|
:target: https://codecov.io/gh/diffpy/diffpy.structure
|
|
@@ -77,6 +79,7 @@ of symmetry constraints for atom positions and displacement parameters.
|
|
|
77
79
|
diffpy.structure includes definitions of all space groups in over 500
|
|
78
80
|
symmetry settings.
|
|
79
81
|
|
|
82
|
+
|
|
80
83
|
For more information about the diffpy.structure library, please consult our `online documentation <https://diffpy.github.io/diffpy.structure>`_.
|
|
81
84
|
|
|
82
85
|
Citation
|
|
@@ -116,11 +119,7 @@ Then, to fully install ``diffpy.structure`` in our active environment, run ::
|
|
|
116
119
|
|
|
117
120
|
Another option is to use ``pip`` to download and install the latest release from
|
|
118
121
|
`Python Package Index <https://pypi.python.org>`_.
|
|
119
|
-
To install using ``pip`` into your ``diffpy.structure_env`` environment,
|
|
120
|
-
|
|
121
|
-
pip install -r https://raw.githubusercontent.com/diffpy/diffpy.structure/main/requirements/run.txt
|
|
122
|
-
|
|
123
|
-
and then install the package ::
|
|
122
|
+
To install using ``pip`` into your ``diffpy.structure_env`` environment, type ::
|
|
124
123
|
|
|
125
124
|
pip install diffpy.structure
|
|
126
125
|
|
|
@@ -135,7 +134,7 @@ Support and Contribute
|
|
|
135
134
|
|
|
136
135
|
`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!
|
|
137
136
|
|
|
138
|
-
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>`_.
|
|
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>`_.
|
|
139
138
|
|
|
140
139
|
Feel free to fork the project and contribute. To install diffpy.structure
|
|
141
140
|
in a development mode, with its sources being directly used by Python
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
diffpy/Structure.py,sha256=qBWWvx2GV65SJqgS6qK933SDfZc1yUQCBtJpW_wFqj8,1005
|
|
2
1
|
diffpy/__init__.py,sha256=WntnKrzS4hxw7YDYxwU-2hCJYNSFBf3gvjbPOrci0dk,673
|
|
3
2
|
diffpy/structure/__init__.py,sha256=EPy-CMdt1GkwzPmFs6vBPFjxygb-xMCsrxZMEEnrODo,2600
|
|
4
3
|
diffpy/structure/_legacy_importer.py,sha256=IXoPovMWIEY7tQTp1prTjICudfiVsR_Blmae-zDcHKA,2574
|
|
5
|
-
diffpy/structure/atom.py,sha256=
|
|
4
|
+
diffpy/structure/atom.py,sha256=hB7ZbJgSe2RvHeu7HcnPGeJpopSs17xXLHdv-G93kE4,17722
|
|
6
5
|
diffpy/structure/lattice.py,sha256=NhSYxFMyfPRJYwiLCyObEPC7vlZBAsP0x9PYSzJ1O7U,22499
|
|
7
6
|
diffpy/structure/mmlibspacegroups.py,sha256=J4F8nbcZ2OmjhzxtOnFVKLQpzXgyQ-S8wh3EnNxqz-w,245608
|
|
8
7
|
diffpy/structure/pdffitstructure.py,sha256=lzARAIDN-FiuMnQJIeFbfRMdRXCGgv2J2qPmOctkN_I,3202
|
|
9
8
|
diffpy/structure/sgtbxspacegroups.py,sha256=9Mz_vVfC3CYpKBYFeYc2Un0VdsqNIx8e9KdZ-Szhw3Y,135078
|
|
10
9
|
diffpy/structure/spacegroupmod.py,sha256=xMeWjiODk21koPQo7aQnwdWf4wzZ82PnVl3MmlTj5yU,15176
|
|
11
10
|
diffpy/structure/spacegroups.py,sha256=BPKW75UNGqDlfi6lkntrjAJiqyxcKmIAeaUScrKA7LA,23359
|
|
12
|
-
diffpy/structure/structure.py,sha256=
|
|
11
|
+
diffpy/structure/structure.py,sha256=r8_Z3MyevqlU5EEsQ5G4Xzji_8AwLAUOp6_M3hwq-K8,27541
|
|
13
12
|
diffpy/structure/structureerrors.py,sha256=9T4Fwy-_dafyiMRGeK0qAmZ6TXBpRqlhSnOxIfV5mxM,880
|
|
14
13
|
diffpy/structure/symmetryutilities.py,sha256=jxR8Sxp7Fw8seSX_8y8GgrbfpVadj4_leXFukTkDPKQ,37377
|
|
15
14
|
diffpy/structure/utils.py,sha256=IMgzeIPg0WOIVeACpg2YZX4wL0NZhu_tZRuGctSmLuM,3320
|
|
@@ -32,11 +31,11 @@ diffpy/structure/parsers/p_xcfg.py,sha256=QIaaq30FoRnZwYIlAsLUMVRWGPoQaivRwMPWqX
|
|
|
32
31
|
diffpy/structure/parsers/p_xyz.py,sha256=PDmkc_MyHRP5wqJsHxxa7W4bce60YHhkurUrmrhU8Ks,5017
|
|
33
32
|
diffpy/structure/parsers/parser_index_mod.py,sha256=QWwV0tPpbIlk2i-gwR6MlKkUF0H05lGzO0yBq5nPOxk,3045
|
|
34
33
|
diffpy/structure/parsers/structureparser.py,sha256=p6eXkziF0sBOR6p9tyfvs8O6D9oRqETrr_v54h3C5mg,2254
|
|
35
|
-
diffpy.structure-3.2.
|
|
36
|
-
diffpy.structure-3.2.
|
|
37
|
-
diffpy.structure-3.2.
|
|
38
|
-
diffpy.structure-3.2.
|
|
39
|
-
diffpy.structure-3.2.
|
|
40
|
-
diffpy.structure-3.2.
|
|
41
|
-
diffpy.structure-3.2.
|
|
42
|
-
diffpy.structure-3.2.
|
|
34
|
+
diffpy.structure-3.2.2.dist-info/AUTHORS.rst,sha256=PH7xKOE6eZ60_LSn4IugF1w-9O2TWHJBBBC6WuiBXIg,255
|
|
35
|
+
diffpy.structure-3.2.2.dist-info/LICENSE.rst,sha256=cewTuMX5-lzPdcCj6s5_YeJvPbc3ZyUHZJg5FB7nlIs,6006
|
|
36
|
+
diffpy.structure-3.2.2.dist-info/LICENSE_DANSE.rst,sha256=O0_g4iEt4vJzr3XfLnqISKgR6bBXXE1EWDGXZUMkgGM,2277
|
|
37
|
+
diffpy.structure-3.2.2.dist-info/LICENSE_pymmlib.rst,sha256=9RJGn2ZWB4NaWRh8AE8nefdlKDEENs0EBFBk3D2YAas,9591
|
|
38
|
+
diffpy.structure-3.2.2.dist-info/METADATA,sha256=WMTIbLk4KdhtEYBaBgCrBWWw38pwXlqHIdGDOGJl2c0,7670
|
|
39
|
+
diffpy.structure-3.2.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
40
|
+
diffpy.structure-3.2.2.dist-info/top_level.txt,sha256=34qLZyi9mxikpHepVDTMHrrNbe8VoOuz3ShYeiWA7KA,7
|
|
41
|
+
diffpy.structure-3.2.2.dist-info/RECORD,,
|
diffpy/Structure.py
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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
|
|
File without changes
|