# Path: astwro/phot/stype.py
# class SpectralType(object):
#     def stype_name(cls, sptype):
#     def stype_number(cls, sptypename):
#     def __init__(self, reddening=None):
#     def __call__ (self, color, value):
#     def get_reddening(self, color):
#     def get_color_values(self, color, sptypes):
#     def get_color_value(self, color, sptype):
#     def generate_plot_aids(self, color):
#     def plot_twiny_spectral_types(self, ax, color, facecolor='gray', alpha=0.2):


from astwro.phot import stype
import numpy as np
# coding=utf-8
from __future__ import absolute_import, division, print_function

__metaclass__ = type


def test_spectral_get_color_values():
    zz = stype.SpectralType({'B-V': 1.5})
    np.testing.assert_allclose(zz.get_color_values('B-V', 'BAFGKM'), [1.2, 1.49, 1.82, 2.1, 2.31, 2.97])

def test_plot_aids():

# Path: astwro/phot/stype.py
# class SpectralType(object):
#     def stype_name(cls, sptype):
#     def stype_number(cls, sptypename):
#     def __init__(self, reddening=None):
#     def __call__ (self, color, value):
#     def get_reddening(self, color):
#     def get_color_values(self, color, sptypes):
#     def get_color_value(self, color, sptype):
#     def generate_plot_aids(self, color):
#     def plot_twiny_spectral_types(self, ax, color, facecolor='gray', alpha=0.2):


# Path: astwro/phot/tests/stype_test.py
from astwro.phot import stype
import numpy as np

# coding=utf-8
from __future__ import absolute_import, division, print_function

__metaclass__ = type


def test_spectral_get_color_values():
    zz = stype.SpectralType({'B-V': 1.5})
    np.testing.assert_allclose(zz.get_color_values('B-V', 'BAFGKM'), [1.2, 1.49, 1.82, 2.1, 2.31, 2.97])

def test_plot_aids():

    zz = stype.SpectralType({'B-V': 1.5})