fakecbed 0.3.0__tar.gz → 0.3.2__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.
- {fakecbed-0.3.0 → fakecbed-0.3.2}/PKG-INFO +2 -2
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed/discretized.py +2 -1
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed/version.py +2 -2
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed.egg-info/PKG-INFO +2 -2
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed.egg-info/requires.txt +1 -1
- {fakecbed-0.3.0 → fakecbed-0.3.2}/pyproject.toml +1 -1
- {fakecbed-0.3.0 → fakecbed-0.3.2}/.coveragerc +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/.github/workflows/measure_code_coverage.yml +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/.github/workflows/publish_documentation_website.yml +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/.github/workflows/publish_release_to_pypi.yml +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/.github/workflows/test_library.yml +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/.gitignore +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/LICENSE +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/README.md +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/INSTALL.rst +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/Makefile +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/_static/readthedocs_custom.css +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/_templates/custom_class_template.rst +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/_templates/custom_module_template.rst +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/_templates/versions.html +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/api.rst +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/build_docs.py +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/conf.py +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/examples.rst +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/index.rst +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/license.rst +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/literature.rst +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/make.bat +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/docs/private_members_to_publish_to_docs.rst +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/examples/basic_usage.ipynb +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed/__init__.py +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed/shapes.py +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed/tds.py +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed.egg-info/SOURCES.txt +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed.egg-info/dependency_links.txt +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/fakecbed.egg-info/top_level.txt +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/setup.cfg +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/setup.py +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/tests/test_discretized.py +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/tests/test_shapes.py +0 -0
- {fakecbed-0.3.0 → fakecbed-0.3.2}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: fakecbed
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
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
|
|
@@ -21,7 +21,7 @@ Classifier: Natural Language :: English
|
|
|
21
21
|
Requires-Python: >=3.8
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: distoptica>=0.3.
|
|
24
|
+
Requires-Dist: distoptica>=0.3.3
|
|
25
25
|
Requires-Dist: hyperspy[all]
|
|
26
26
|
Provides-Extra: tests
|
|
27
27
|
Requires-Dist: pytest-cov; extra == "tests"
|
|
@@ -1703,7 +1703,8 @@ class CBEDPattern(fancytypes.PreSerializableAndUpdatable):
|
|
|
1703
1703
|
if apply_shot_noise == True:
|
|
1704
1704
|
np_rng = np.random.default_rng(self._rng_seed)
|
|
1705
1705
|
torch_rng_seed = np_rng.integers(low=0, high=2**32-1).item()
|
|
1706
|
-
torch_rng = torch.Generator(
|
|
1706
|
+
torch_rng = torch.Generator(device=u_x.device)
|
|
1707
|
+
torch_rng = torch_rng.manual_seed(torch_rng_seed)
|
|
1707
1708
|
image = torch.poisson(image, torch_rng)
|
|
1708
1709
|
|
|
1709
1710
|
image = self._apply_detector_partition_inpainting(input_image=image)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: fakecbed
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
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
|
|
@@ -21,7 +21,7 @@ Classifier: Natural Language :: English
|
|
|
21
21
|
Requires-Python: >=3.8
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: distoptica>=0.3.
|
|
24
|
+
Requires-Dist: distoptica>=0.3.3
|
|
25
25
|
Requires-Dist: hyperspy[all]
|
|
26
26
|
Provides-Extra: tests
|
|
27
27
|
Requires-Dist: pytest-cov; extra == "tests"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|