def gravitationalwaves(self): """Return all the available ``Psi4`` data. :returns: Interface to all the ``Psi4`` data in the directory. :rtype: :py:class:`~.GravitationalWavesDir` """ return cactus_waves.GravitationalWavesDir(self)
def test_WavesDir(self): # Test the error on wrong input type with self.assertRaises(TypeError): cw.GravitationalWavesDir(0) with self.assertRaises(TypeError): cw.ElectromagneticWavesDir(0) emdir = cw.ElectromagneticWavesDir(self.sim) # Check type self.assertTrue( isinstance(self.gwdir[110.69], cw.GravitationalWavesOneDet)) self.assertTrue( isinstance(emdir[110.69], cw.ElectromagneticWavesOneDet))
def setUp(self): self.sim = sd.SimDir("tests/tov") self.gwdir = cw.GravitationalWavesDir(self.sim) self.psi4 = self.gwdir[110.69]