File: test_lumfunc.py

package info (click to toggle)
astroml 1.0.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 932 kB
  • sloc: python: 5,731; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
import numpy as np
from astroML.lumfunc import Cminus


def test_cminus_nans():
    # Regression test for https://github.com/astroML/astroML/issues/234

    x = [10.02, 10.00]
    y = [14.97, 14.99]
    xmax = [10.03, 10.01]
    ymax = [14.98, 15.00]

    assert np.isfinite(np.sum(Cminus(x, y, xmax, ymax)))