Skip to main content

A Python library for generating quickly images that imitate convergent beam electron diffraction patterns.

Project description

Fake Convergence Beam Electron Diffraction (FakeCBED)

Test library Code Coverage Documentation PyPi Version Conda-Forge Version License

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fakecbed-0.5.2.tar.gz (8.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fakecbed-0.5.2-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

Details for the file fakecbed-0.5.2.tar.gz.

File metadata

  • Download URL: fakecbed-0.5.2.tar.gz
  • Upload date:
  • Size: 8.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fakecbed-0.5.2.tar.gz
Algorithm Hash digest
SHA256 9369dc4b7c66fa2d0fad6174450422ce164a6eb12d03ca253a052fa2582b08af
MD5 c372fd5845ce41ee1f9b9ffee8b549db
BLAKE2b-256 f55cb7e8c63bd29fc6d5472d9fcbb11c28a03065e79cef33c10b7d7cd1b6cd18

See more details on using hashes here.

Provenance

The following attestation bundles were made for fakecbed-0.5.2.tar.gz:

Publisher: publish_release_to_pypi.yml on mrfitzpa/fakecbed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fakecbed-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: fakecbed-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 64.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fakecbed-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a63acaed08a475d30c305c75dd4abb0d789bab99c7e129f19bda6f55c42f102
MD5 78f8d5632d4f07f7a59d632a4516b723
BLAKE2b-256 3fbe3aa8b025d8f0b2e393475a508540f40890c114cb08d7e25881ab8d5e582f

See more details on using hashes here.

Provenance

The following attestation bundles were made for fakecbed-0.5.2-py3-none-any.whl:

Publisher: publish_release_to_pypi.yml on mrfitzpa/fakecbed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page