problem evaluating restraints
hi,
I think something is wrong now with calling to restraint evaluation. After adding the restraint to the model, I am keep getting the message:
ERROR: ---------------------------------------------------------------------- Traceback (most recent call last): File "simple_test.py", line 49, in test_ev print r.evaluate(None) File "/viola1/home/kerenl/bioinformatics/projects/imp/build/lib/IMP/ __init__.py", line 1193, in evaluate def evaluate(self, *args): return _IMP.Restraint_evaluate(self, *args) ValueError: Restraint::evaluate() cannot be called during model evaluatio
I think the attached test case should work and I am not sure why it does not .....
thanks, Keren.
this test should be run in helper/test On Nov 1, 2009, at 5:11 PM, Keren Lasker wrote:
> hi, > > I think something is wrong now with calling to restraint evaluation. > After adding the restraint to the model, I am keep getting the > message: > > > > ERROR: > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "simple_test.py", line 49, in test_ev > print r.evaluate(None) > File "/viola1/home/kerenl/bioinformatics/projects/imp/build/lib/IMP/ > __init__.py", line 1193, in evaluate > def evaluate(self, *args): return _IMP.Restraint_evaluate(self, > *args) > ValueError: Restraint::evaluate() cannot be called during model > evaluatio > > I think the attached test case should work and I am not sure why it > does not ..... > <simple_test.py> > > > thanks, > Keren._______________________________________________ > IMP-dev mailing list > IMP-dev@salilab.org > https://salilab.org/mailman/listinfo/imp-dev
Fixed. ExcludedVolumeRestraint was calling evaluate() rather than unprotected_evaluate() when its unprotected_evaluate() was called. Should speed up that restraint too :-)
On Nov 1, 2009, at 5:19 PM, Keren Lasker wrote:
> this test should be run in helper/test > On Nov 1, 2009, at 5:11 PM, Keren Lasker wrote: > >> hi, >> >> I think something is wrong now with calling to restraint evaluation. >> After adding the restraint to the model, I am keep getting the >> message: >> >> >> >> ERROR: >> ---------------------------------------------------------------------- >> Traceback (most recent call last): >> File "simple_test.py", line 49, in test_ev >> print r.evaluate(None) >> File "/viola1/home/kerenl/bioinformatics/projects/imp/build/lib/IMP/ >> __init__.py", line 1193, in evaluate >> def evaluate(self, *args): return _IMP.Restraint_evaluate(self, >> *args) >> ValueError: Restraint::evaluate() cannot be called during model >> evaluatio >> >> I think the attached test case should work and I am not sure why it >> does not ..... >> <simple_test.py> >> >> >> thanks, >> Keren._______________________________________________ >> IMP-dev mailing list >> IMP-dev@salilab.org >> https://salilab.org/mailman/listinfo/imp-dev > > _______________________________________________ > IMP-dev mailing list > IMP-dev@salilab.org > https://salilab.org/mailman/listinfo/imp-dev
Odd, that test hasn't changed in a while. That said, the error message doesn't really correspond to the current test (but shouldn't be triggered anyway). My guess would be that the Model is confused about what is going on, perhaps due to things not being reset properly after a failed evaluate (but there doesn't seem to be any prior model evaluate calls, so I'm not very sure about that guess). I'll look into it later. If it is blocking, turn off the test in Restraint.cpp:evaluate().
On Sun, Nov 1, 2009 at 5:11 PM, Keren Lasker kerenl@salilab.org wrote:
> hi, > > I think something is wrong now with calling to restraint evaluation. > After adding the restraint to the model, I am keep getting the message: > > > > ERROR: > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "simple_test.py", line 49, in test_ev > print r.evaluate(None) > File > "/viola1/home/kerenl/bioinformatics/projects/imp/build/lib/IMP/__init__.py", > line 1193, in evaluate > def evaluate(self, *args): return _IMP.Restraint_evaluate(self, *args) > ValueError: Restraint::evaluate() cannot be called during model evaluatio > > I think the attached test case should work and I am not sure why it does > not ..... > > > > > thanks, > Keren. > _______________________________________________ > IMP-dev mailing list > IMP-dev@salilab.org > https://salilab.org/mailman/listinfo/imp-dev > >
participants (2)
-
Daniel Russel
-
Keren Lasker