mail[bug #11483] Parsing problem in ModelFree4 gets relax crash when using "palmer.py"


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Sébastien Morin on April 13, 2008 - 23:16:

Follow-up Comment #4, bug #11483 (project relax):

Hi,

I tested if the bug was still present.

However, I can't tell if the bug is fixed, since there is a new problem
caused by the fix...

For any model (I tested with all 5 model : m1, m2, m3, m4, m5), I get the
following :

============================================
relax> palmer.extract(run='m1', dir=None)
Traceback (most recent call last):
  File "/home/semor/pse-4/collaborations/relax/relax-1.2/relax", line 454, in
?
    Relax()
  File "/home/semor/pse-4/collaborations/relax/relax-1.2/relax", line 166, in
__init__
    self.interpreter.run()
  File
"/home/semor/pse-4/collaborations/relax/relax-1.2/prompt/interpreter.py",
line 216, in run
    run_script(intro=self.relax.intro_string, local=self.local,
script_file=self.relax.script_file, quit=1)
  File
"/home/semor/pse-4/collaborations/relax/relax-1.2/prompt/interpreter.py",
line 391, in run_script
    console.interact(intro, local, script_file, quit)
  File
"/home/semor/pse-4/collaborations/relax/relax-1.2/prompt/interpreter.py",
line 343, in interact_script
    execfile(script_file, local)
  File "./palmer__stage_2.py", line 142, in ?
    exec_stage_2(runs)
  File "./palmer__stage_2.py", line 76, in exec_stage_2
    palmer.extract(run=name)
  File "/home/semor/pse-4/collaborations/relax/relax-1.2/prompt/palmer.py",
line 263, in extract
    self.__relax__.generic.palmer.extract(run=run, dir=dir)
  File
"/home/semor/pse-4/collaborations/relax/relax-1.2/generic_fns/palmer.py",
line 543, in extract
    data.s2, data.s2_err = self.get_mf_data(self.mfout_S2_pos + pos)
  File
"/home/semor/pse-4/collaborations/relax/relax-1.2/generic_fns/palmer.py",
line 614, in get_mf_data
    if search('*', val) or search('*', err):
  File "/usr/lib/python2.4/sre.py", line 134, in search
    return _compile(pattern, flags).search(string)
  File "/usr/lib/python2.4/sre.py", line 227, in _compile
    raise error, v # invalid expression
sre_constants.error: nothing to repeat
============================================

This problem is new and apparently caused by the fix proposed.

If I comment out lines 613 to 621 in "generic_fns/palmer.py", everything
passes, so the fix for this bug is fine, and the fix for the "*" character
bug makes relax crash.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?11483>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/




Related Messages


Powered by MHonArc, Updated Wed Apr 16 21:22:27 2008