Programming module for wave front data processing
Project description
wfslib is open library for wave front data processing:
- different data type usage (hfd, bim, numpy);
- automatic geometry calculation;
- offsets calculation;
- settings-tools for manage yours data.
Example of wfslib work
from wfslib.wfs import WFSData
wfs = WFSData('../data/subpixel_test.h5', dataset_name = 'wfss/n0/detector') #Load data
p = wfs.geometry.options #Geometry options
print(p)
wfs.reference = 8
#Change geometry options
wfs.geometry.set_options(shift=(-p['start_point'][0]+1,-p['start_point'][1]+1), border = 0, cell_width = p['cell_width']-1)
#Visualization
wfs.show_geometry()
{'border': 4.0, 'cell_width': 110.0, 'start_point': [168, 131]}
wfs[0].offsets()[:5] #Calculate offsets
array([[-0., -0.],
[-0., -0.],
[-1., -1.],
[-1., 1.],
[22., 9.]])
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
wfslib-0.1.200.tar.gz
(9.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
wfslib-0.1.200-py3-none-any.whl
(11.1 kB
view details)
File details
Details for the file wfslib-0.1.200.tar.gz.
File metadata
- Download URL: wfslib-0.1.200.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8d92dfaabe8939a5c5ab5e7be85ff3de774db4ff8915ad6355a7f2be2063f2d
|
|
| MD5 |
8ebfd2e7aaaa84d1295b27bca19fafe9
|
|
| BLAKE2b-256 |
a931b8782993f7c7876e44067892eacbd47c908d90c0c803a04cb247a1e00f61
|
File details
Details for the file wfslib-0.1.200-py3-none-any.whl.
File metadata
- Download URL: wfslib-0.1.200-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83ea4ce0992c104716a1eb3ef5c8cd8d9934f67225491dabfece9284436b04a5
|
|
| MD5 |
23000040ef0ce96255d0b7d8f5dbce78
|
|
| BLAKE2b-256 |
33c8e8b03e2eb593ff9fb6358e271fde2b2e865b038f7dc93cb3573b6d039d61
|