diff --git a/tests/test_instrument.py b/tests/test_instrument.py index 1989f50..bb1c163 100644 --- a/tests/test_instrument.py +++ b/tests/test_instrument.py @@ -1,6 +1,8 @@ import os import sys +from glob import glob import astropy.units as u +import sunpy.map from suncet_instrument_simulator import config_parser, instrument, make_radiance_maps root_directory = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) @@ -22,7 +24,9 @@ def setup_instrument_hardware(): config_filename = os.getcwd() + '/suncet_instrument_simulator/config_files/config_default.ini' config = config_parser.Config(config_filename) hardware = instrument.Hardware(config) - radiance_maps = make_radiance_maps.MakeRadianceMaps(config).run() + make_radiance_maps.MakeRadianceMaps(config).run() + filenames = glob(os.getenv('suncet_data') + '/mhd/bright_fast/rendered_euv_maps/SunCET_MapSeq_044.fits') + radiance_maps = sunpy.map.Map(filenames, sequence=True) hardware.store_target_wavelengths(radiance_maps) hardware.compute_effective_area() return hardware