https://github.com/danporter/i16_peakfit
Wrapper and graphical user inteface of lmfit for scattering experiments such as those on Diamond-I16
https://github.com/danporter/i16_peakfit
Last synced: about 1 year ago
JSON representation
Wrapper and graphical user inteface of lmfit for scattering experiments such as those on Diamond-I16
- Host: GitHub
- URL: https://github.com/danporter/i16_peakfit
- Owner: DanPorter
- Created: 2021-11-16T07:11:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T09:31:50.000Z (over 3 years ago)
- Last Synced: 2025-02-08T09:45:40.897Z (over 1 year ago)
- Language: Python
- Size: 561 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# i16_peakfit
Wrapper and graphical user inteface of lmfit for scattering experiments such as those on Diamond-I16
### Usage
Start GUI session:
``` bash
$ python -m i16_peakfit
```
OR - Start GUI with data loaded
``` bash
$ python -m i16_peakfit /some/xye/file.dat
```

OR - Import functions into script
``` python
from i16_peakfit import multipeakfit, load_xye, peak_results_str
xdata, ydata, yerror = load_xye('/some/data/file.txt')
res = multipeakfit(x, y, npeaks=None, model='Gauss', plot_result=True)
print(peak_results_str(res))
```
By Dan Porter, Diamond Light Source Ltd. 2021