<commit_before>from tardis import plasma, atomic
from astropy import constants
import numpy as np
import pytest

atom_data = atomic.AtomData.from_hdf5(atomic.default_atom_h5_path)
atom_data.prepare_atom_data(selected_atomic_numbers=[14])




class TestNormalLTEPlasma:

    compare_part_func = np.array([11.406201367482032, 5.866632552894803, 1.0044215520812598, 2.0002017142942163,
                                        1.0, 4.961567712516646])

    compare_phis = np.array([9.679214946588846e+16, 2390247610210.469, 63428.65716485618, 0.021444877147797966,
                             1.0749561507478891e-62])

    compare_ion_populations = np.array([0.15945011675589407, 3717655.969887028, 2140505324.5794258, 32704.389884367,
                                        1.6894052370987268e-07, 4.374503890528231e-79])

    compare_level_populations_14_1 = np.array([1267390.086686989, 2432159.357552647, 2673.1427419153792,
                                               5263.602861186024, 7698.769675188349])

    def setup(self):
        self.plasma = plasma.LTEPlasma.from_abundance(10000, {'Si':1.0}, 1e-13, atom_data, 10*86400)<commit_msg>fixed the test for ion populations to reflect a e-20 threshold for ion populations<commit_after>from tardis import plasma, atomic
from astropy import constants
import numpy as np
import pytest

atom_data = atomic.AtomData.from_hdf5(atomic.default_atom_h5_path)
atom_data.prepare_atom_data(selected_atomic_numbers=[14])




class TestNormalLTEPlasma:

    compare_part_func = np.array([11.406201367482032, 5.866632552894803, 1.0044215520812598, 2.0002017142942163,
                                        1.0, 4.961567712516646])

    compare_phis = np.array([9.679214946588846e+16, 2390247610210.469, 63428.65716485618, 0.021444877147797966,
                             1.0749561507478891e-62])

    compare_ion_populations = np.array([0.15945011675589407, 3717655.969887028, 2140505324.5794258, 32704.389884367,
                                        1.6894052370987268e-07, 0.0])

    compare_level_populations_14_1 = np.array([1267390.086686989, 2432159.357552647, 2673.1427419153792,
                                               5263.602861186024, 7698.769675188349])

    def setup(self):
        self.plasma = plasma.LTEPlasma.from_abundance(10000, {'Si':1.0}, 1e-13, atom_data, 10*86400)
{'fraction_non_alphanumeric': 0.09040511727078891, 'fraction_numerical': 0.3181236673773987, 'mean_word_length': 2.936241610738255, '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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7226018', 'n_tokens_mistral': 1287, 'n_tokens_neox': 812, 'n_words': 120}