#NEWLINE# @ pytest . mark . parametrize ( 'grid_type' , [ 'car' , 'sph' , 'cyl' , 'amr' , 'oct' ] ) #NEWLINE# def test_merge_density( self , tmpdir , grid_type ) : #NEWLINE# #INDENT# m = Model ( ) #NEWLINE# s = m . add_point_source ( ) #NEWLINE# s . luminosity = 1.0 #NEWLINE# s . temperature = 5000.0 #NEWLINE# m . set_grid ( self . grid [ s ] ) #NEWLINE# m . add_density_grid ( self . density [ grid_type ] , self . dust ) #NEWLINE# m . add_density_grid ( self . density [ grid_type ] , self . dust , merge_if_possible = True ) #NEWLINE# m . set_n_photons ( initial = 100 , imaging = 100 ) #NEWLINE# m . write ( tmpdir . join ( random_id ( ) ) . strpath ) #NEWLINE# m . run ( tmpdir . join ( random_id ( ) ) . strpath )