source: tests/Python/numpy_check.py@ 075357

AutomationFragmentation_failures Candidate_v1.6.1 ChemicalSpaceEvaluator Enhanced_StructuralOptimization_continued Exclude_Hydrogens_annealWithBondGraph ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_contraction-expansion Gui_displays_atomic_force_velocity PythonUI_with_named_parameters StoppableMakroAction TremoloParser_IncreasedPrecision
Last change on this file since 075357 was 075357, checked in by Frederik Heber <frederik.heber@…>, 7 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 
1import sys
2
3try:
4 import numpy
5 numpy_present = True
6except ImportError:
7 numpy_present = False
8
9sys.exit(numpy_present)
Note: See TracBrowser for help on using the repository browser.