<commit_before>import numpy as np
from numpy.testing import assert_equal, assert_allclose
from astropy.cosmology import Planck13 as cosmo

import halobias

def test_Mnl_z0():
    z = 0.
    h = cosmo.H0.value

    def _check_bias_z0(m,ans):
        b = halobias.bias(m,z)
        assert_allclose(b,ans)

    #integer multiples of non-linear mass
    M_nl = (8.73/h) * 10.**12.
    mass = np.array([0.,1.,2.,10., 100.]) * M_nl
    
    #corresponding bias at z=0
    answer = [0.66, 0.9236707, 1.06577485, 1.64530492, 4.127912607]
    
    for m, ans in zip(mass, answer):
        yield  _check_bias_z0, m, ans<commit_msg>fix bias test to use little h<commit_after>import numpy as np
from numpy.testing import assert_equal, assert_allclose
from astropy.cosmology import Planck13 as cosmo

import halobias

def test_Mnl_z0():
    z = 0.
    h = cosmo.h

    def _check_bias_z0(m,ans):
        b = halobias.bias(m,z)
        assert_allclose(b,ans)

    #integer multiples of non-linear mass
    M_nl = (8.73/h) * 10.**12.
    mass = np.array([0.,1.,2.,10., 100.]) * M_nl
    
    #corresponding bias at z=0
    answer = [0.66, 0.9236707, 1.06577485, 1.64530492, 4.127912607]
    
    for m, ans in zip(mass, answer):
        yield  _check_bias_z0, m, ans
{'fraction_non_alphanumeric': 0.11910471622701839, 'fraction_numerical': 0.09832134292565947, 'mean_word_length': 2.748502994011976, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7021711', 'n_tokens_mistral': 564, 'n_tokens_neox': 483, 'n_words': 125}