1from multiprocessing import Pool
2
3def process_image(name):
4 sci=fits.open('{}.fits'.format(name))
5 <process>
6
7if __name__ == '__main__':
8 pool = Pool() # Create a multiprocessing Pool
9 pool.map(process_image, data_inputs) # process data_inputs iterable with pool