#NEWLINE# def setup_class( self ) : #NEWLINE# #INDENT# m = Model ( ) #NEWLINE# m . set_cartesian_grid ( [ ( - 1.0 ) , 1.0 ] , [ ( - 1.0 ) , 1.0 ] , [ ( - 1.0 ) , 1.0 ] ) #NEWLINE# s = m . add_point_source ( ) #NEWLINE# s . luminosity = 1.0 #NEWLINE# s . temperature = 6000.0 #NEWLINE# i = m . add_peeled_images ( sed = True , image = False ) #NEWLINE# i . set_inside_observer ( ( 0.0 , 0.0 , 0.0 ) ) #NEWLINE# i . set_wavelength_range ( 5 , 0.1 , 100.0 ) #NEWLINE# i . set_aperture_radii ( 3 , 1.0 , 10.0 ) #NEWLINE# m . set_n_initial_iterations ( 0 ) #NEWLINE# m . set_n_photons ( imaging = 1 ) #NEWLINE# self . tmpdir = tempfile . mkdtemp ( ) #NEWLINE# m . write ( os . path . join ( self . tmpdir , random_id ( ) ) ) #NEWLINE# self . m = m . run ( )