#NEWLINE# def test_map_write_cartesian( ) : #NEWLINE# #INDENT# g = CartesianGrid ( [ ( - 1.0 ) , 0.0 , 1.0 ] , [ ( - 1.0 ) , 1.0 ] , [ ( - 1.0 ) , ( - 0.2 ) , 0.2 , 1.0 ] ) #NEWLINE# v = virtual_file ( ) #NEWLINE# s = MapSource ( ) #NEWLINE# s . luminosity = 1.0 #NEWLINE# s . map = np . ones ( ( 3 , 1 , 2 ) ) #NEWLINE# s . write ( v , 'test' , g )