@@ -35,21 +35,23 @@ def __init__(self, config, outputpath, ncores=1):
3535 if not os .path .isdir (outputpath ):
3636 raise RuntimeError ("Outputpath %s does not exist." % (outputpath ))
3737
38- def __call__ (self , infile , bands = [], pixels = [], clear_intermediate_files = True ):
38+ def __call__ (self , infile , bands = [], pixels = [], clear_intermediate_files = True , make_map_images = False ):
3939 """
4040 Compute maps for a combination of bands/pixels
4141
4242 Parameters
4343 ----------
4444 infile : `str`
45- Name of input file with wcs and map information
45+ Name of input file with wcs and map information
4646 bands : `list`, optional
47- List of bands to run. If blank, run all.
47+ List of bands to run. If blank, run all.
4848 pixels : `list`, optional
49- List of pixels to run (nside=`config.nside_run`).
50- If blank, run all.
49+ List of pixels to run (nside=`config.nside_run`).
50+ If blank, run all.
5151 clear_intermediate_files : `bool`, optional
52- Clear intermediate files when done?
52+ Clear intermediate files when done?
53+ make_map_images : `bool`, optional
54+ Make map images?
5355 """
5456 # First build the wcs's
5557 print ('Reading input table...' )
@@ -125,6 +127,7 @@ def __call__(self, infile, bands=[], pixels=[], clear_intermediate_files=True):
125127 print ('Consolidating maps...' )
126128 fname_list = []
127129 mapfiles_list = []
130+ descr_list = []
128131 for map_type in self .config .map_types .keys ():
129132 for operation in self .config .map_types [map_type ]:
130133 op_code = op_str_to_code (operation )
@@ -147,10 +150,15 @@ def __call__(self, infile, bands=[], pixels=[], clear_intermediate_files=True):
147150 fname_template )))
148151 fname_list .append (fname )
149152 mapfiles_list .append (mapfiles )
153+ descr_list .append (f'{ band } _{ map_type } _{ operation } ' )
150154
151- hpix_consolidator = HealpixConsolidator (self .config , clear_intermediate_files )
155+ hpix_consolidator = HealpixConsolidator (
156+ self .config ,
157+ clear_intermediate_files ,
158+ make_map_images = make_map_images ,
159+ )
152160
153- values = zip (fname_list , mapfiles_list )
161+ values = zip (fname_list , mapfiles_list , descr_list )
154162
155163 t = time .time ()
156164 mp_ctx = multiprocessing .get_context ("fork" )
0 commit comments