Method renamed

This commit is contained in:
Lukas Klass 2020-04-24 11:42:35 +02:00
parent 657c15d845
commit c908d8429d

View File

@ -7,10 +7,10 @@ import astropy.units as u
class TestRadiantFactory(TestCase): class TestRadiantFactory(TestCase):
def test_fromConfig(self): def test_fromConfigBatch(self):
conf = Configuration("data/esbo-etc_defaults.xml").conf conf = Configuration("data/esbo-etc_defaults.xml").conf
factory = RadiantFactory(conf.common.wl_bins()) factory = RadiantFactory(conf.common.wl_bins())
parent = factory.fromConfig(conf) parent = factory.fromConfigBatch(conf)
parent_2 = BlackBodyTarget(conf.common.wl_bins(), 5778 * u.K, 10 * u.mag, "V") parent_2 = BlackBodyTarget(conf.common.wl_bins(), 5778 * u.K, 10 * u.mag, "V")
parent_2 = oc.Atmosphere(parent_2, "data/atmosphere/transmittance.csv", "data/atmosphere/emission.csv") parent_2 = oc.Atmosphere(parent_2, "data/atmosphere/transmittance.csv", "data/atmosphere/emission.csv")