703 Commits

Author SHA1 Message Date
JakHolzer
d0d993a813
Update fit2.py
added option for data binning
2020-10-09 11:26:27 +02:00
94551acc64 Add integrate from .. to .. widgets 2020-10-08 16:38:44 +02:00
e679ccdce4 Add export_fit checkbox 2020-10-08 15:08:54 +02:00
55c3a9bce1 Parse peak_indexes as int 2020-10-08 13:09:18 +02:00
e2f00a3bce Fix imports and apply formatter 2020-10-07 16:16:37 +02:00
JakHolzer
7a50f2c8d5
Update fit2.py
Added user input to no peak case
2020-10-07 10:29:04 +02:00
01ac35f93d Merge branch 'det1d' of https://github.com/paulscherrerinstitute/pyzebra into det1d 2020-10-06 16:59:03 +02:00
JakHolzer
ca5579ddd9
Update fit2.py
Added check for stderr of fit area which can be None in case fit failure and can break the rest of the code.
2020-10-06 16:47:00 +02:00
JakHolzer
b4a0f43695
added more functions 2020-10-06 16:04:50 +02:00
e1fbe075fe Return preview of an export file 2020-10-06 15:47:20 +02:00
bd4e5980ab Display smoothed curve 2020-10-06 13:28:25 +02:00
df546cb688 Add fit param reset button 2020-10-06 13:21:39 +02:00
5670882614 Display fit results in concise way 2020-10-06 11:53:08 +02:00
62ecc54ee4 Add find peak and fit for currently selected data 2020-10-06 11:15:37 +02:00
29a5126377 Add peak fit controls 2020-10-05 17:25:32 +02:00
8b491aa300 Add possibility to change peak position 2020-10-05 17:25:32 +02:00
7df408eff1 Display number of peaks for measurements 2020-10-05 17:25:32 +02:00
f1e9b7d889 Split process into peak find and fit steps 2020-10-05 17:25:32 +02:00
4091d4ba32 Add find peak controls 2020-10-05 17:25:32 +02:00
15428662f7 Replace measurement Select with DataTable 2020-10-05 17:25:32 +02:00
fdcaebb250 Rename panels 2020-10-05 17:25:32 +02:00
JakHolzer
456a15a365
Update load_1D.py
added the data type to dict, it is necessary for adding dat files into ccl dicts
2020-10-05 15:32:59 +02:00
JakHolzer
e0227fb7e6
Update fit2.py 2020-10-05 15:27:13 +02:00
JakHolzer
dc7c2afdc8
Update comm_export.py
fixed some bugs
2020-10-05 15:24:11 +02:00
a7bbe77b11 Add utility files for packaging 2020-10-05 10:50:41 +02:00
JakHolzer
d7ce156db5
Update ccl_dict_operation.py
Added warning for negative numbers after subtraction
2020-09-30 10:06:16 +02:00
JakHolzer
b095b5762e
Update ccl_dict_operation.py
added note to trace merging and sutraction
2020-09-30 09:22:40 +02:00
b5476fc9b0 Add input for proposal to simplify access data 2020-09-29 15:24:28 +02:00
ddc5522d8b Display gauss and bkg fits 2020-09-29 14:40:15 +02:00
e3dd010c94 Add experimental code for saving data into a file 2020-09-29 14:10:39 +02:00
JakHolzer
7afd41ea8b
Update ccl_dict_operation.py
Corrected some lines, no major changes
2020-09-29 13:43:48 +02:00
JakHolzer
1302e4f93f
Delete ccl_dict_operation_v1.py 2020-09-25 16:22:28 +02:00
JakHolzer
188f6d5163
Add files via upload
Reuploaded from wrong folder
2020-09-25 16:22:08 +02:00
JakHolzer
0c9e906ba4
Visualize fit
Copy and paste into fit2 righ after:
  num_int_background = simps(background_errors, x[numfit_min:numfit_max])
  int_area = num_int_area-num_int_background

ca line 180
2020-09-25 16:19:10 +02:00
JakHolzer
54a58dd4ca
Update ccl_dict_operation_v1.py 2020-09-25 15:40:37 +02:00
JakHolzer
665de61c8c
functions to merge, scan, subtract measurements 2020-09-25 13:23:49 +02:00
f79b4cbeee Check for "fit" key instead of handling KeyError 2020-09-25 10:35:20 +02:00
a502248891 Simplify value references in export loop 2020-09-25 10:34:18 +02:00
JakHolzer
52571a1aca
Update fit2.py
fit needs at least 3 points to work properly, this should not fail again in case of extremely slim peaks
2020-09-25 09:12:00 +02:00
e5e824eb4c Do not require matplotlib to be installed 2020-09-24 16:46:35 +02:00
1bcecec76b Display content of exported file 2020-09-24 16:36:21 +02:00
10a65613b9 Display fitting results 2020-09-24 16:11:18 +02:00
8bcbba5e31 Add smooth option as an example 2020-09-24 15:35:53 +02:00
c977d3c58e Display basic peakfinding results 2020-09-24 15:34:33 +02:00
fd769106b7 Add a possiblity to select a measurement 2020-09-24 10:53:42 +02:00
JakHolzer
8d397a819b
Update fit2.py 2020-09-22 08:47:31 +02:00
JakHolzer
5515db234b
Update load_1D.py
added the two unknown variables are temperature and field
2020-09-21 14:09:38 +02:00
JakHolzer
4c0b195b7a
Update comm_export.py
Added the fit value/ num integrated value choice
2020-09-21 11:26:47 +02:00
JakHolzer
bcb4ef9849
Update fit2.py
Added uncertainty propagation to the numerical integration and weighted fit. Case for 'no peak' scenario also added. Parameter export_fit in meas["fit"] added which is decides if fitted area or numerically integrated area will be saved in comm/incomm files.
2020-09-21 11:12:49 +02:00
b0f692a02c Add panel placeholder for 1D detector processing 2020-09-16 17:01:32 +02:00