# -*- coding: utf-8 -*- """ Created on Sat Apr 28 19:19:23 2018 @author: fgaud """ # -*- coding: utf-8 -*- """ Created on Wed Apr 25 18:00:09 2018 @author: fgaud """ from pylab import * from scipy.ndimage import measurements from mpl_toolkits.mplot3d import Axes3D L = 100 r = rand(L,L,L) p = 0.3 x = r
0): sliceX = sliced[0][1] sliceY = sliced[0][0] sliceZ= sliced[0][2] show() print sliceX ,sliceY, sliceZ print (sliceX.stop-sliceX.start) if (sliceX.stop-sliceX.start ==L): print u"Le système percole" else: print u"Le système ne percole pas"