Fake Convergence Beam Electron Diffraction (FakeCBED)
fakecbed is a Python library for generating quickly images that imitate
convergent beam electron diffraction patterns.
Visit the fakecbed website for a web
version of the installation instructions, the reference guide, and the examples
archive.
The source code can be found in the fakecbed GitHub
repository.
Table of contents
Instructions for installing and uninstalling fakecbed
Installing fakecbed
For all installation scenarios, first open up the appropriate command line interface. On Unix-based systems, you could open e.g. a terminal. On Windows systems you could open e.g. an Anaconda Prompt as an administrator.
Before installing fakecbed, it is recommended that users install PyTorch in
the same environment that they intend to install fakecbed according to the
instructions given here for their
preferred PyTorch installation option.
Installing fakecbed using pip
Before installing fakecbed, make sure that you have activated the (virtual)
environment in which you intend to install said package. After which, simply run
the following command:
pip install fakecbed
The above command will install the latest stable version of fakecbed.
To install the latest development version from the main branch of the fakecbed GitHub repository, one must first clone the repository by running the following command:
git clone https://github.com/mrfitzpa/fakecbed.git
Next, change into the root of the cloned repository, and then run the following command:
pip install .
Note that you must include the period as well. The above command executes a
standard installation of fakecbed.
Optionally, for additional features in fakecbed, one can install additional
dependencies upon installing fakecbed. To install a subset of additional
dependencies (along with the standard installation), run the following command
from the root of the repository:
pip install .[<selector>]
where <selector> can be one of the following:
tests: to install the dependencies necessary for running unit tests;examples: to install the dependencies necessary for executing files stored in<root>/examples, where<root>is the root of the repository;docs: to install the dependencies necessary for documentation generation;all: to install all of the above optional dependencies.
Alternatively, one can run:
pip install fakecbed[<selector>]
elsewhere in order to install the latest stable version of fakecbed, along
with the subset of additional dependencies specified by <selector>.
Installing fakecbed using conda
Before proceeding, make sure that you have activated the (virtual) conda
environment in which you intend to install said package. For Windows systems,
users must install PyTorch separately prior to following the remaining
instructions below.
To install fakecbed using the conda package manager, run the following
command:
conda install -c conda-forge fakecbed
The above command will install the latest stable version of fakecbed.
Uninstalling fakecbed
If fakecbed was installed using pip, then to uninstall, run the following
command:
pip uninstall fakecbed
If fakecbed was installed using conda, then to uninstall, run the following
command:
conda remove fakecbed
Learning how to use fakecbed
For those new to the fakecbed library, it is recommended that they take a look
at the Examples page, which
contain code examples that show how one can use the fakecbed library. While
going through the examples, readers can consult the fakecbed reference
guide to
understand what each line of code is doing.
Metadata
Release files for fakecbed 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fakecbed-0.5.4.tar.gz | 8.3 MB | With provenance | Details for fakecbed-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fakecbed-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for fakecbed-0.5.4-py3-none-any.whl |
Total release size: 8.4 MB
Release files / fakecbed-0.5.4.tar.gz
| Download URL | fakecbed-0.5.4.tar.gz |
|---|---|
| Size | 8.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58f1ecaf4c2bc16c556e69e9fd61425fd22cc0adecc6d032b69759b8cef168b3
|
|
BLAKE2b-256 checksum How to use checksums |
b0faec5a203b4b212288caf93aa6046c5660b3e9c7c24eeb2fae678abaaf0b1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 4, 2026.
Transparency logRelease files / fakecbed-0.5.4-py3-none-any.whl
| Download URL | fakecbed-0.5.4-py3-none-any.whl |
|---|---|
| Size | 64.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47414a0bd9fb791407d2ee924e31f0a177f4f52ed1e109a59ea89cbf6ba9e035
|
|
BLAKE2b-256 checksum How to use checksums |
52c68b363e4823887487adf3794ccd851b93caef2d3b8af37909a4783071b43b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 4, 2026.
Transparency logSecurity for fakecbed 0.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for fakecbed-0.5.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.