Skip to content

Instantly share code, notes, and snippets.

@OrkoHunter
Created March 2, 2016 08:04
Show Gist options
  • Save OrkoHunter/6caab4a7c6406dc5432d to your computer and use it in GitHub Desktop.
Save OrkoHunter/6caab4a7c6406dc5432d to your computer and use it in GitHub Desktop.
Test report on March 2nd, 2016.
➜  stingray git:(move_tests) nosetests
................................................/home/hunter/GSoC/current/stingray/stingray/utils.py:24: UserWarning: SIMON says: Probability of no signal too miniscule to calculate.
  warnings.warn("SIMON says: {0}".format(message), **kwargs)
.....FF........FF...FFFFFF..F.F......
======================================================================
FAIL: test_powerspectrum.TestPowerspectrum.test_dc_component
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 98, in test_dc_component
    assert pp[0]==np.mean(self.lc.counts)
AssertionError: 
-------------------- >> begin captured stdout << ---------------------
0.000598321483695
0.0088

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: the integral of powers (or Riemann sum) should be close
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 90, in test_fourier_amplitudes
    assert np.isclose(np.sqrt(pp[0]), np.sum(self.lc.counts))
AssertionError

======================================================================
FAIL: In Leahy normalization, the total variance should be the sum of
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 155, in test_leahy_norm_total_variance
    assert np.isclose(ps_var, np.var(self.lc.counts))
AssertionError

======================================================================
FAIL: test_powerspectrum.TestPowerspectrum.test_leahy_normalization_correct
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 144, in test_leahy_normalization_correct
    assert ps.ps[0]/2. == np.sum(self.lc.counts)
AssertionError

======================================================================
FAIL: test_powerspectrum.TestPowerspectrum.test_rebin(2,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 208, in rebin_several
    assert np.isclose(bin_ps.freq[0], bin_ps.df/2.)
AssertionError

======================================================================
FAIL: test_powerspectrum.TestPowerspectrum.test_rebin(3,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 208, in rebin_several
    assert np.isclose(bin_ps.freq[0], bin_ps.df/2.)
AssertionError

======================================================================
FAIL: test_powerspectrum.TestPowerspectrum.test_rebin(5,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 208, in rebin_several
    assert np.isclose(bin_ps.freq[0], bin_ps.df/2.)
AssertionError

======================================================================
FAIL: test_powerspectrum.TestPowerspectrum.test_rebin(1.5,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 208, in rebin_several
    assert np.isclose(bin_ps.freq[0], bin_ps.df/2.)
AssertionError

======================================================================
FAIL: test_powerspectrum.TestPowerspectrum.test_rebin(1,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 208, in rebin_several
    assert np.isclose(bin_ps.freq[0], bin_ps.df/2.)
AssertionError

======================================================================
FAIL: test_powerspectrum.TestPowerspectrum.test_rebin(85,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 208, in rebin_several
    assert np.isclose(bin_ps.freq[0], bin_ps.df/2.)
AssertionError

======================================================================
FAIL: In rms normalization, the integral of the powers should be
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 133, in test_rms_normalization_correct
    assert np.isclose(ps_int, std_lc)
AssertionError

======================================================================
FAIL: the integral of powers (or Riemann sum) should be close
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/hunter/GSoC/current/stingray/stingray/tests/test_powerspectrum.py", line 113, in test_total_variance
    assert np.isclose(p_int, var_lc)
AssertionError

----------------------------------------------------------------------
Ran 85 tests in 5.172s

FAILED (failures=12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment