Metadata-Version: 2.1
Name: wfslib
Version: 0.1.2
Summary: Programming module for wave front data processing
License: MIT
Author: Zoya
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown

**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


```python
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]}
    


![jpg](https://sun4-12.userapi.com/G3ulaQxVXOs1Wubv6BmAOLaFN2l-v0IVHuaAaw/Xu-2xvIdMVY.jpg)



```python
wfs[0].offsets()[:5] #Calculate offsets
```





    array([[-0., -0.],
           [-0., -0.],
           [-1., -1.],
           [-1.,  1.],
           [22.,  9.]])





