fib-o-mat is a toolbox to generate patterns for focus ion beam instruments.
Project description
fib-o-mat is a Python library to create beam patterns for focused ion beam instruments.
Pattern geometries can be modeled directly in Python bsaed on (pre-)defined geometric primitives or importet from vector graphics. These can be equipped with beam and rasterizing settings and exported to microscope compatible files.
fib-o-mat is by designed flexible and easily expandable. Hence, adding support for for different microscopes, custom geometric primitives or optimization routines is a straightforward process.
For the usage of fib-o-mat, basic python knowledge and a good understanding of the target microscope are mandatory. See the getting started guide for an introduction to this library and the user guide for a complete documentation. The module reference is to be found here.
Made with :black_heart: and :coffee: at HZB and FBH in Berlin.
If you use this library in your work, please cite
Deinhart et al., ...
Installation
Run in a terminal
$ pip install fibomat
It is highly recommended to use virtual environments.
Example
from fibomat import Sample, Mill, Q_, U_
from fibomat.shapes import Line
from fibomat import raster_styles
from fibomat.default_backends import SpotListBackend
# create a Sample class object with optional description
sample = Sample('Useful description here')
# add a site to the sample with cente = (0, 0) and field of view of (10, 10)
site = sample.create_site(dim_position=([0, 0], U_('µm')), dim_fov=([10, 10], U_('µm'))) # '%*µm*)'
# create a Pattern with a Line shape and add it to the site
site.create_pattern(
dim_shape=(Line((-5, 0), (5, 0)), U_('µm')),
shape_mill=Mill(dwell_time=Q_('5 ms'), repeats=1),
raster_style=raster_styles.one_d.Linear(pitch=Q_('1 nm'))
)
# export a rasterized version of the pattern as text file in a pre-defined (but editable) format. See docs for details.
sample.export(SpotListBackend).save('pattern.txt')
# plot the pattern
sample.plot()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for fibomat-0.1.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e11525ceab1311cff2cb074896fcd70688148034638b77003377348126c1c1bd |
|
MD5 | 0fde88dcd1ffd5172f6112a7934dcaae |
|
BLAKE2b-256 | d579e71f0c1455a52745ee7ae896e48fe4118188cf3161c2d6cfdbb646de24e2 |
Hashes for fibomat-0.1.2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc7639239aaf6c9829b7396fe504530c2e9065ff1cf407b1eea2df2cba91490d |
|
MD5 | 09467df93ef9bf2b5f979738ce70c5cd |
|
BLAKE2b-256 | 88a56c98c8dc3b7cebf58ddde615e45c60549af352daf64807802bc8aed6af9a |
Hashes for fibomat-0.1.2-cp38-cp38-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dd3f412746edf8d5cbb761dc70e2647c1aee955c7a2f2bc1c1f46852f984ce9 |
|
MD5 | 96826a840eb532d6d5a74421828488de |
|
BLAKE2b-256 | 615d4ac385ea7f8220eea8e5c6e56bb3b3a233ff06b63fc43f9764617279ebea |