import os
from .context import sdf


def test_read_phoenix():
    dir = sdf.config.file['model_root']
    s = sdf.spectrum.ModelSpectrum.read_phoenix(dir +
        'lte009.5-3.5-0.0.BT-Settl.7.bz2')
    os.unlink(dir + 'lte009.5-3.5-0.0.BT-Settl.7.bz2.npy')
    s = sdf.spectrum.ModelSpectrum.read_phoenix(dir +
        'lte058-4.5-0.0a+0.0.BT-Settl.7.bz2')
    os.unlink(dir + 'lte058-4.5-0.0a+0.0.BT-Settl.7.bz2.npy')

d9bceb9c2007bed4eade47bd88c0f40537e5724f
<mask token>

<mask token>


def test_read_phoenix():
    dir = sdf.config.file['model_root']
    s = sdf.spectrum.ModelSpectrum.read_phoenix(dir +
        'lte009.5-3.5-0.0.BT-Settl.7.bz2')
    os.unlink(dir + 'lte009.5-3.5-0.0.BT-Settl.7.bz2.npy')
    s = sdf.spectrum.ModelSpectrum.read_phoenix(dir +
        'lte058-4.5-0.0a+0.0.BT-Settl.7.bz2')
    os.unlink(dir + 'lte058-4.5-0.0a+0.0.BT-Settl.7.bz2.npy')

import os
from .context import sdf


def test_read_phoenix():
    dir = sdf.config.file['model_root']
    s = sdf.spectrum.ModelSpectrum.read_phoenix(dir +
        'lte009.5-3.5-0.0.BT-Settl.7.bz2')
    os.unlink(dir + 'lte009.5-3.5-0.0.BT-Settl.7.bz2.npy')
    s = sdf.spectrum.ModelSpectrum.read_phoenix(dir +
        'lte058-4.5-0.0a+0.0.BT-Settl.7.bz2')
    os.unlink(dir + 'lte058-4.5-0.0a+0.0.BT-Settl.7.bz2.npy')
