Open meloun67 opened 1 year ago
Created a function for comparison of 2 ExperimentSets to easily test Correction functions.
To use it, call Compare_ExperimentSets(experimentSet1, experimentSet2)
The function will then go experiment by experiment, component by component, comparing concentrationTime DataFrames. If it finds a mismatch, it will ask you if you want to print it. Input Y to print mismatching concentrationTimes as table and as graph, input N to skip printing or input E to exit function.
(in Pycharm, matplotlib shows graphs in separate popup window, which pauses the process. To continue, close graph windows)
Well done! Could you please check out why my function Fit_Gauss.py does not work? (I have just pushed newest version).
When I tried to call Fit_Gauss function, I get an error with indexing dataframe:
Fixed that by using iloc in GaussSum:
But the GaussSum function seems to return all zeroes:
Also I have been getting this warning from scipy, might be part of the problem:
But at least the Compare_ExperimentSets function seems to be working
Compare_ExperimentSets had some issues with names of columns and different lengths of comparing DataFrames, but they should be fixed in last commit.
Thanks a lot! I think there is problem with initial values... I will figure it out
I just wonder why I did not receive any error messages... 🧐
Well if it works for you now I wouldn't worry about it 😄
Well if it works for you now I wouldn't worry about it 😄
Yep, I guess so. 😄 Do you have something to do next or everything is done from your side so far?
Mass_Balance_Cor, but I need to a little help with that. See that issue #8
what does it mean please?
It means first components of first experiments in the two experimentSets are not different. You can input Y to print them out to see what's the difference.
Because we started to develop the Start function in Operator, for testing I created new function Start_For_Testing, in which we can test functions separately from the structure of the Start function. Currently the main program runs the Start_For_Testing. If you'd like to run the Start function, in main.py file rewrite operator.Start_For_Testing() to operator.Start()
I've been testing the latest commit (front-end for testing) and I have some feedbacks:
1) where is this comming from?
2) Nasel jsem v kodu FIt_Gauss.py tenhle chunk, nevis k cemu to je?
3) Kdyz uz existuje slozka Gauss_graphs hodi to error, mohlo by se to zeptat neco jako: "The Gauss_graphs file already exists and is about to be rewriten. Do you want to proceed?"
4) pri vykresleni prvniho grafu Loss Function value se vykreslej vsechny Fit_Gauss grafy
5) po vykresleni grafu loss funkce by se to melo zeptat "Do you want to save this figure into the file?" A ulozit do slozky "Loss_Function_value" pod kodem
6) nejdriv jel vypuis po procentu a potom ne, zvlastni
7) ty time shifty nejak nesedej, musime to predelat... nejde posouvat kazdej pik zvlast, jedine celej experiment - nadefinuju to do prislusnzho issue a prosim udelej to jakmile budes mit cas mezi zkouskama - diky
kdyz chci vygenerovat vic ney jeden chromatogram, hodi to error - ze slozka uy existuje
I've been testing the latest commit (front-end for testing) and I have some feedbacks:
- where is this comming from?
- Nasel jsem v kodu FIt_Gauss.py tenhle chunk, nevis k cemu to je?
- Kdyz uz existuje slozka Gauss_graphs hodi to error, mohlo by se to zeptat neco jako: "The Gauss_graphs file already exists and is about to be rewriten. Do you want to proceed?"
- pri vykresleni prvniho grafu Loss Function value se vykreslej vsechny Fit_Gauss grafy
- po vykresleni grafu loss funkce by se to melo zeptat "Do you want to save this figure into the file?" A ulozit do slozky "Loss_Function_value" pod kodem _Kto_Dto_e.png
- nejdriv jel vypuis po procentu a potom ne, zvlastni
![]()
- ty time shifty nejak nesedej, musime to predelat... nejde posouvat kazdej pik zvlast, jedine celej experiment - nadefinuju to do prislusnzho issue a prosim udelej to jakmile budes mit cas mezi zkouskama - diky
Rounding is also a easy fix, should be done in latest commit. Chromatogram is the same issue as 3.
Define testing framework for functions evaluation.