Candidate_v1.7.0
        stable
      
      
        
          | 
            Last change
 on this file since 1ca493a was             075357, checked in by Frederik Heber <frederik.heber@…>, 8 years ago           | 
        
        
          | 
             
TEST: Adding Python test on ForceAnnealing using an Ising model with and without bondgraph. 
 
- We are not done yet with implementing optimization using the bond graph. The
2-body Ising test on using bond graph reveals that we have a problem when
bonds need to shrink. In case of the test the updates from either side cancel
each other and there is no progress. For the 5-body Ising test convergence is
not monotone, probably also because of the need to proper deal with shrinking
bonds.
 - TESTS: As Python ForceAnnealing test use numpy to compute damping_factor we
have added a check for numpy presence and skip tests otherwise.
 - TESTFIX: Marked Python tests on ForceAnnealing using the bond graph as XFAIL
because of this.
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            142 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | import sys
 | 
|---|
| 2 | 
 | 
|---|
| 3 | try:
 | 
|---|
| 4 |         import numpy
 | 
|---|
| 5 |         numpy_present = True
 | 
|---|
| 6 | except ImportError:
 | 
|---|
| 7 |         numpy_present = False
 | 
|---|
| 8 | 
 | 
|---|
| 9 | sys.exit(numpy_present)
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.