Beispiel #1
0
  def test_init(self):
    try:
      temp = thermodynamics.mmThermo(seed=self.seed)
      self.assertIsInstance(temp.fold, vienna.RNAvienna)
      self.assertEqual(temp.temperature, 37.0)

      temp = thermodynamics.mmThermo(seed=self.seed, temperature=0)
      self.assertEqual(temp.temperature, 0)
    except EnvironmentError:
      pass
Beispiel #2
0
 def __init_thermodynamics(self, **args):
   try:
     self._thermodynamic = thermodynamics.mmThermo(self._seed, **args)
   except EnvironmentError:
     warnings.warn((
       "RNAVienna not available, falling back to Python Only mode. "
       "Please Note that thermodynamic Values will NOT be available. "
     ), RuntimeWarning)
     self.model = 'python_only_seed'