mail[bug #15321] Bad syntac in "minimise/line_search/more_thuente.py"


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

Header


Content

Posted by Sébastien Morin on February 09, 2010 - 15:56:

URL:
  <http://gna.org/bugs/?15321>

                 Summary: Bad syntac in
"minimise/line_search/more_thuente.py"
                 Project: relax
            Submitted by: semor
            Submitted on: Tuesday 02/09/2010 at 09:56
                Category: relax's source code
                Severity: 5 - Blocker
                Priority: 7 - High
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Repository: 1.2 line
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hi,

Trying to use relax-1.2 (up-to-date repository line, r10688), we went into a
syntax problem. This was probably introduced by new versions of Numeric (or
any other dependency). The problem was as follows when invoking relax (either
relax alone or with any option such as -h, -d, --test-suite):

=========================
Traceback (most recent call last):
  File "./relax", line 76, in <module>
    from prompt.interpreter import Interpreter
  File "/home/pys/relax-1.2/prompt/interpreter.py", line 42, in <module>
    from dx import OpenDX
  File "/home/pys/relax-1.2/prompt/dx.py", line 29, in <module>
    from specific_fns.model_free import Model_free
  File "/home/pys/relax-1.2/specific_fns/model_free.py", line 33, in
<module>
    from minimise.generic import generic_minimise
  File "/home/pys/relax-1.2/minimise/generic.py", line 26, in <module>
    from coordinate_descent import coordinate_descent
  File "/home/pys/relax-1.2/minimise/coordinate_descent.py", line 26, in
<module>
    from base_classes import Line_search, Min
  File "/home/pys/relax-1.2/minimise/base_classes.py", line 46, in <module>
    from line_search.more_thuente import more_thuente
  File "/home/pys/relax-1.2/minimise/line_search/more_thuente.py", line 385
    as = secant(al, at, gl, gt)
     ^
SyntaxError: invalid syntax

=========================

Opening the file "minimise/line_search/more_thuente.py" in vim, we saw that
the string "as" was colored differently than the rest.

We then had the idea that maybe "as" was now a variable inside Numeric (or
any other dependency) and we changed "as" for something else such as
"RogerMoquin".

The problem was solved and the prompt now worked properly..!

We ran the test-suite and, however, saw that three tests were not passing.
These are:

==========================
Loading a sequence from a PDB file
The user function angles()
Loading of Sparky peak heights
==========================

Were these tests broken before we changed the variable "as" to "RogerMoquin"
?

Is this problem as easy to solve as we propose here ?

Thank you !

Sébastien & Pierre-Yves




    _______________________________________________________

Reply to this item at:

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

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




Related Messages


Powered by MHonArc, Updated Fri Feb 12 15:00:21 2010