fakecbed 0.3.5__py3-none-any.whl → 0.3.6__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.
- fakecbed/discretized.py +1 -1
- fakecbed/version.py +2 -2
- {fakecbed-0.3.5.dist-info → fakecbed-0.3.6.dist-info}/METADATA +1 -1
- fakecbed-0.3.6.dist-info/RECORD +10 -0
- fakecbed-0.3.5.dist-info/RECORD +0 -10
- {fakecbed-0.3.5.dist-info → fakecbed-0.3.6.dist-info}/WHEEL +0 -0
- {fakecbed-0.3.5.dist-info → fakecbed-0.3.6.dist-info}/licenses/LICENSE +0 -0
- {fakecbed-0.3.5.dist-info → fakecbed-0.3.6.dist-info}/top_level.txt +0 -0
fakecbed/discretized.py
CHANGED
|
@@ -1709,7 +1709,7 @@ class CBEDPattern(fancytypes.PreSerializableAndUpdatable):
|
|
|
1709
1709
|
# ``torch.poisson`` was occasionally causing CUDA errors.
|
|
1710
1710
|
rng = np.random.default_rng(self._rng_seed)
|
|
1711
1711
|
image_dtype = image.dtype
|
|
1712
|
-
image = image.numpy(force=True)
|
|
1712
|
+
image = image.numpy(force=True).clip(min=0, max=1.0e15)
|
|
1713
1713
|
image = rng.poisson(image)
|
|
1714
1714
|
image = torch.from_numpy(image)
|
|
1715
1715
|
image = image.to(device=self._device, dtype=image_dtype)
|
fakecbed/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fakecbed
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.6
|
|
4
4
|
Summary: A Python library for generating quickly images that imitate convergent beam electron diffraction patterns.
|
|
5
5
|
Author-email: Matthew Fitzpatrick <matthew.rc.fitzpatrick@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://mrfitzpa.github.io/fakecbed
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
fakecbed/__init__.py,sha256=iP73WNV_HZgxiVUVdesbJqlrhDGESooh1hlBs8kox9M,1342
|
|
2
|
+
fakecbed/discretized.py,sha256=HAsTyxete8FMHspZA0UNggGWUSDFT3dWILC5ZpZhAjw,99712
|
|
3
|
+
fakecbed/shapes.py,sha256=TiqJBZI4JZib0Q6zfO0e-dh7ACjYhvAYUvEtIedoo74,116471
|
|
4
|
+
fakecbed/tds.py,sha256=mk5359ErIhdpCoTdHq9r1-foKb8t3qCOHqNoabx3bQw,8066
|
|
5
|
+
fakecbed/version.py,sha256=5ZRqa3YWFznn7rzKg8d9Vi2wEKohJwIFxhrpOUL3pYQ,511
|
|
6
|
+
fakecbed-0.3.6.dist-info/licenses/LICENSE,sha256=N0P3pKtRMvfb64jmgJdlerg3TnS0a2QC776AzPsbZIg,35128
|
|
7
|
+
fakecbed-0.3.6.dist-info/METADATA,sha256=jMiIP7lqrtFQzVdLJitdA2GSlJzGZVP3Tj7Rm6Ghc68,3023
|
|
8
|
+
fakecbed-0.3.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
fakecbed-0.3.6.dist-info/top_level.txt,sha256=l0jL8P0CjRiCSznYLnq7riaAnOmYaV3zjjjIJx9vjSQ,9
|
|
10
|
+
fakecbed-0.3.6.dist-info/RECORD,,
|
fakecbed-0.3.5.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
fakecbed/__init__.py,sha256=iP73WNV_HZgxiVUVdesbJqlrhDGESooh1hlBs8kox9M,1342
|
|
2
|
-
fakecbed/discretized.py,sha256=qqI_F4Ax9oH6nAdXEOTTKji9CH52oEIrURAopSGauu8,99688
|
|
3
|
-
fakecbed/shapes.py,sha256=TiqJBZI4JZib0Q6zfO0e-dh7ACjYhvAYUvEtIedoo74,116471
|
|
4
|
-
fakecbed/tds.py,sha256=mk5359ErIhdpCoTdHq9r1-foKb8t3qCOHqNoabx3bQw,8066
|
|
5
|
-
fakecbed/version.py,sha256=qmTn4w-xTKk8dVv-032b430C-ilxMTkr9Q0HieU18N8,511
|
|
6
|
-
fakecbed-0.3.5.dist-info/licenses/LICENSE,sha256=N0P3pKtRMvfb64jmgJdlerg3TnS0a2QC776AzPsbZIg,35128
|
|
7
|
-
fakecbed-0.3.5.dist-info/METADATA,sha256=PkGdAdfTboRbWK_BEvcMt4DoiUAxIN_Nd1IDe_--6dU,3023
|
|
8
|
-
fakecbed-0.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
-
fakecbed-0.3.5.dist-info/top_level.txt,sha256=l0jL8P0CjRiCSznYLnq7riaAnOmYaV3zjjjIJx9vjSQ,9
|
|
10
|
-
fakecbed-0.3.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|