diffpy.utils 3.6.1rc0__py3-none-any.whl → 3.6.1rc1__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/utils/diffraction_objects.py +10 -7
- {diffpy_utils-3.6.1rc0.dist-info → diffpy_utils-3.6.1rc1.dist-info}/METADATA +2 -2
- {diffpy_utils-3.6.1rc0.dist-info → diffpy_utils-3.6.1rc1.dist-info}/RECORD +8 -8
- {diffpy_utils-3.6.1rc0.dist-info → diffpy_utils-3.6.1rc1.dist-info}/WHEEL +0 -0
- {diffpy_utils-3.6.1rc0.dist-info → diffpy_utils-3.6.1rc1.dist-info}/licenses/AUTHORS.rst +0 -0
- {diffpy_utils-3.6.1rc0.dist-info → diffpy_utils-3.6.1rc1.dist-info}/licenses/LICENSE.rst +0 -0
- {diffpy_utils-3.6.1rc0.dist-info → diffpy_utils-3.6.1rc1.dist-info}/licenses/LICENSE_DANSE.txt +0 -0
- {diffpy_utils-3.6.1rc0.dist-info → diffpy_utils-3.6.1rc1.dist-info}/top_level.txt +0 -0
|
@@ -409,17 +409,17 @@ class DiffractionObject:
|
|
|
409
409
|
def uuid(self, _):
|
|
410
410
|
raise AttributeError(_setter_wmsg("uuid"))
|
|
411
411
|
|
|
412
|
-
def get_array_index(self,
|
|
413
|
-
"""Return the index of the closest value in the array associated with
|
|
412
|
+
def get_array_index(self, xvalue, xtype=None):
|
|
413
|
+
f"""Return the index of the closest value in the array associated with
|
|
414
414
|
the specified xtype and the value provided.
|
|
415
415
|
|
|
416
416
|
Parameters
|
|
417
417
|
----------
|
|
418
|
-
xtype : str
|
|
419
|
-
The type of the independent variable in `xarray`. Must be one
|
|
420
|
-
of {*XQUANTITIES}.
|
|
421
418
|
xvalue : float
|
|
422
419
|
The value of the xtype to find the closest index for.
|
|
420
|
+
xtype : str, optional
|
|
421
|
+
The type of the independent variable in `xarray`. Must be one
|
|
422
|
+
of {*XQUANTITIES, }. Default is {self._input_xtype}
|
|
423
423
|
|
|
424
424
|
Returns
|
|
425
425
|
-------
|
|
@@ -427,8 +427,11 @@ class DiffractionObject:
|
|
|
427
427
|
The index of the closest value in the array associated with the
|
|
428
428
|
specified xtype and the value provided.
|
|
429
429
|
"""
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
if xtype is None:
|
|
431
|
+
xtype = self._input_xtype
|
|
432
|
+
else:
|
|
433
|
+
if xtype not in XQUANTITIES:
|
|
434
|
+
raise ValueError(_xtype_wmsg(xtype))
|
|
432
435
|
xarray = self.on_xtype(xtype)[0]
|
|
433
436
|
if len(xarray) == 0:
|
|
434
437
|
raise ValueError(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: diffpy.utils
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.1rc1
|
|
4
4
|
Summary: General utilities for analyzing diffraction data
|
|
5
5
|
Author-email: Simon Billinge <sb2896@columbia.edu>
|
|
6
6
|
Maintainer-email: Simon Billinge <sb2896@columbia.edu>
|
|
@@ -169,7 +169,7 @@ trying to commit again.
|
|
|
169
169
|
|
|
170
170
|
Improvements and fixes are always appreciated.
|
|
171
171
|
|
|
172
|
-
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.utils/blob/main/
|
|
172
|
+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.utils/blob/main/CODE-OF-CONDUCT.rst>`_.
|
|
173
173
|
|
|
174
174
|
Contact
|
|
175
175
|
-------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
diffpy/__init__.py,sha256=PLQx_UmkmhCTu5bPeYdp9nQBx-OJGP0s4Pz-lLQhKsU,926
|
|
2
2
|
diffpy/utils/__init__.py,sha256=CtxZ5VpVDjhWlvoGLIEjkBGtXn1Pnb4lrdhpIfzmYYc,704
|
|
3
|
-
diffpy/utils/diffraction_objects.py,sha256=
|
|
3
|
+
diffpy/utils/diffraction_objects.py,sha256=Qj3ka5DE-XswAo1jI3FhRYwyFrfCOWvkhBhrcBdrgj8,23294
|
|
4
4
|
diffpy/utils/resampler.py,sha256=7M5VfH9Wddpy4j3SzSiCp1txUQwLPfwC1GcdYLdjyzE,5948
|
|
5
5
|
diffpy/utils/tools.py,sha256=rAxjUrcnkQReT6uSu2X7GzqqLiEsaNArKkr-cfdkCTA,15161
|
|
6
6
|
diffpy/utils/transforms.py,sha256=FW8vJB8Ft8TM4_vwRPMwTLZBiTxgZnLn9sbW8Nz0Ef4,6145
|
|
@@ -12,10 +12,10 @@ diffpy/utils/parsers/loaddata.py,sha256=YQ7bAMHx0sGuE123BYNpg8npfruNEd4P8ZBma7Jm
|
|
|
12
12
|
diffpy/utils/parsers/serialization.py,sha256=6huTN8R4zkF2V30DeQxs-knHn7ZwotKaVN5kaEM-h9c,6851
|
|
13
13
|
diffpy/utils/wx/__init__.py,sha256=dyVlLVVqqn3pBhCTyWr3zvvIcmQjqzUCOjWAaZ2lkX4,586
|
|
14
14
|
diffpy/utils/wx/gridutils.py,sha256=940h1kN5yClQwLrWLhQ6QlBvf7hVHBLqOfaDJ2QZZoc,5158
|
|
15
|
-
diffpy_utils-3.6.
|
|
16
|
-
diffpy_utils-3.6.
|
|
17
|
-
diffpy_utils-3.6.
|
|
18
|
-
diffpy_utils-3.6.
|
|
19
|
-
diffpy_utils-3.6.
|
|
20
|
-
diffpy_utils-3.6.
|
|
21
|
-
diffpy_utils-3.6.
|
|
15
|
+
diffpy_utils-3.6.1rc1.dist-info/licenses/AUTHORS.rst,sha256=vSJE4eFlrvgzwe0UiB5nnuqWVi7HO1aTzavOgqH1ngE,181
|
|
16
|
+
diffpy_utils-3.6.1rc1.dist-info/licenses/LICENSE.rst,sha256=Fic68qk6_MHLTR4fTua4ufK3iZH7ioQJ0x9STJAjkyk,6011
|
|
17
|
+
diffpy_utils-3.6.1rc1.dist-info/licenses/LICENSE_DANSE.txt,sha256=mPt7YHs0xQgff18u_MPvAFqHRTTF0x9ecqubGy6Fxjs,2160
|
|
18
|
+
diffpy_utils-3.6.1rc1.dist-info/METADATA,sha256=f_OJxDgSo9k87Txtxq0zHHj4gL4iNg9K4-i89vJGaVw,7563
|
|
19
|
+
diffpy_utils-3.6.1rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
+
diffpy_utils-3.6.1rc1.dist-info/top_level.txt,sha256=34qLZyi9mxikpHepVDTMHrrNbe8VoOuz3ShYeiWA7KA,7
|
|
21
|
+
diffpy_utils-3.6.1rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffpy_utils-3.6.1rc0.dist-info → diffpy_utils-3.6.1rc1.dist-info}/licenses/LICENSE_DANSE.txt
RENAMED
|
File without changes
|
|
File without changes
|