-
Hello, I'm trying to use DeerLab for analyzing data in a fully automated way. And I probably need some help to use, especially for defining Model with my own parameters... By instance if I want to change a parameter in a model with the "set" keyword (Pmodel.mean.set(lb=2, ub=7, par0=5), I will get the following error message :
In the same way, if I want to define a model by the command : Pmodel = dl.dd_gauss(r,mean=2,std=0.1), or even Pmodel = dl.dd_gauss(r) or Pmodel = dl.dd_gauss(mean=2), I got the same type of error. By other instance, calling Modeltest = dl.bg_hom3d(t, conc, lam) works when calling Modeltest = dl.bg_strexp(t, decay, stretch) doesn't... (I check your CheatSheet.pdf) But Modeltest.t = t, or Modeltest.decay = decay, will work... In your examples files, there is few script using this commands, but ex_global_twostates_parametric.py is one of them. Best Timothee Chauvire |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi Timothee, I am sorry you are having issues. This is a strange error. I use this function daily in my own automated DEER processing scripts. Please could you let me know which DeerLab and Python version you are using. Additionally, could you share an example script. This doesn't need to be your fully script just a short simple one where the problem occurs and I can look into it in more detail. Best, Hugo |
Beta Was this translation helpful? Give feedback.
Ok probably my fault as I opened two instances of Spyder in the same time.
I restart spyder and it works fine this morning. I feel stupid, sorry for this. (Maybe we can close completely this discussion)
One last question, how do you define precisely the starting time ? (I did it empirically)
I was having issue to associate the different time definition from Bruker (d0, d1, d2) and the "zerotime" in DeerLab.
If you have more detailed explanations for this I'm interested...
When you simulate the background do you allow time shifting for a better simulation ?