Skip to content

Commit

Permalink
Load radiance map from disk
Browse files Browse the repository at this point in the history
  • Loading branch information
starfleetjames committed Sep 15, 2023
1 parent ee148ce commit ead96c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_instrument.py
Original file line number Diff line number Diff line change
@@ -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__), '..'))
Expand All @@ -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
Expand Down

0 comments on commit ead96c7

Please sign in to comment.