#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# s = m . add_external_spherical_source ( ) #NEWLINE# s . radius = 1.0 #NEWLINE# s . luminosity = 1.0 #NEWLINE# s . temperature = 6000.0 #NEWLINE# sed = m . add_peeled_images ( sed = True , image = False ) #NEWLINE# sed . set_inside_observer ( ( 0.0 , 0.0 , 0.0 ) ) #NEWLINE# sed . set_viewing_angles ( [ 1.0 , 2.0 , 3.0 ] , [ 1.0 , 2.0 , 3.0 ] ) #NEWLINE# sed . set_wavelength_range ( 3 , 0.2 , 50.0 ) #NEWLINE# sed . set_aperture_radii ( 4 , 2.0 , 50.0 ) #NEWLINE# m . set_n_initial_iterations ( 0 ) #NEWLINE# m . set_n_photons ( imaging = 10000 ) #NEWLINE# self . tmpdir = tempfile . mkdtemp ( ) #NEWLINE# m . write ( os . path . join ( self . tmpdir , random_id ( ) ) ) #NEWLINE# self . m = m . run ( )