mapfost
mapfost is a python implementation of the autofocus method MAPFoST introduced in the publication Binding J, Mikula S, Denk W. Low-dosage Maximum-A-Posteriori Focusing and Stigmation. Microsc Microanal. 2013
Installation
Use the package manager pip to install mapfost
pip install mapfost
Usage
import mapfost as mf
res = mf.est_aberr([test_im1, test_im2])
Example
run the script run_sample.py
mf.test_installation()
Expected output is a scipy.optimize.minimize object (as shown below).
The x key in the following object is the estimated aberration vector.
hess_inv: <3x3 LbfgsInvHessProduct with dtype=float64>
jac: array([ 195312.50118701, -195312.50118701, 390624.9980372 ])
message: 'CONVERGENCE: REL_REDUCTION_OF_F_<=_FACTR*EPSMCH'
nfev: 24
nit: 5
njev: 6
status: 0
success: True
x: array([-1.10622, -1.31151, 0.58894])
...Installation Test Successful...
[-1.10622 -1.31151 0.58894]
License
Release files for mapfost 4.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mapfost-4.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / mapfost-4.3.1-py3-none-any.whl
| Download URL | mapfost-4.3.1-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c781eae64b0391f75f0f8e5ac585463df63f04780c6f85703996c13f3dc155e
|
|
BLAKE2b-256 checksum How to use checksums |
0bf5a0caa15326289e147178178c882da67b4bc3dcbdf8f02fa096b4b50f7969
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.7
|