fib-o-mat is a toolbox to generate patterns for focused 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.3-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e2cb44d35cc8349a3c09f64dc079490c007bd62296cb28a05825786aade0a5 |
|
MD5 | d5ec9df5b33afffa9a9215fbeb3aa188 |
|
BLAKE2b-256 | fe1db63b0b0aede507c2a795063e78afe72e332bbdd1c90550a854e76eba51b6 |
Hashes for fibomat-0.1.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1be1c97eedae222cc17332f4c3a68859d33aa9b9e8bdceb76c67de4bbc65e3be |
|
MD5 | 5852088131a343a8d924a2344787fd65 |
|
BLAKE2b-256 | 17bee1bdb8cc2f9acf40170b1491da7f10d20df813a4e93c8af07153c23fc0e5 |
Hashes for fibomat-0.1.3-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 010171a3521a5114a0a95251e9d522084472fb3a0f75fc59099692d2e9852406 |
|
MD5 | b8444ec912128483e47c6681b8913999 |
|
BLAKE2b-256 | 7b35f59fdc9622bf23c9789b2344994101818dfdc88627ec1395ab466a6f5002 |
Hashes for fibomat-0.1.3-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f804dcfdf15ba4aa7220d5838c4bc06d7c3b08f5850d53ca1204f1b1e47a1c15 |
|
MD5 | 41f0b3790091907bc7d488146e88ff91 |
|
BLAKE2b-256 | dd6f7a2477f0c45ed2dea381a0950bea78719da00504371f78000093ff4647c3 |