élasticité expansion en miroir - exploration paramètres

L'installation Elasticité dynamique agit comme un filtre et génère de nouveaux espaces démultipliés, comme un empilement quasi infini d'horizons. Par principe de réflexion, la pièce absorbe l'image de l'environnement et accumule les points de vue ; le mouvement permanent requalifie continuellement ce qui est regardé et entendu.

Ce post explore les paramètres de la structure et de l'extension des reflections.

In [1]:
%load_ext autoreload
%autoreload 2
import matplotlib
matplotlib.rcParams['figure.max_open_warning'] = 400
%matplotlib inline
%config InlineBackend.figure_format='retina'
#%config InlineBackend.figure_format = 'svg'
import matplotlib.pyplot as plt
import numpy as np
np.set_printoptions(precision=2, suppress=True)
from moviepy.video.io.bindings import mplfig_to_npimage
#mplfig_to_npimage?
In [2]:
import elasticite as el
e = el.EdgeGrid(N_lame=25, grid_type='line', struct_angles=[-15., -65., -102.])
e.sample_structure(N_mirror=2, alpha = .5)
fig, ax = e.plot_structure(scale=28.)
No description has been provided for this image
In [3]:
import elasticite as el
e = el.EdgeGrid(N_lame=25, grid_type='line', struct_angles=[-10., -60., -120.])
e.sample_structure(N_mirror=2, alpha = .5)
fig, ax = e.plot_structure(scale=28.)
No description has been provided for this image
In [4]:
!rm ../files/expansion*.mp4
In [5]:
duration = el.get_default_args(el.EdgeGrid.render)['duration']
class EdgeGrid(el.EdgeGrid):
    def update(self):
        e.struct_angles=[-30.*np.cos(2*np.pi*self.t/duration)**2, -60., -120.]
        e.add_structure()
        e.sample_structure(N_mirror=2, alpha = .5)

e = EdgeGrid(N_lame=25, grid_type='line')
e.animate(fname='../files/expansion_premier_bras.mp4', scale = 32.)
WARNING:py.warnings:/usr/local/lib/python3.5/site-packages/skimage/filter/__init__.py:6: skimage_deprecation: The `skimage.filter` module has been renamed to `skimage.filters`.  This placeholder module will be removed in v0.13.
  warn(skimage_deprecation('The `skimage.filter` module has been renamed '

[MoviePy] >>>> Building video ../files/expansion_premier_bras.mp4
[MoviePy] Writing video ../files/expansion_premier_bras.mp4
                                                 
[MoviePy] Done.
[MoviePy] >>>> Video ready: ../files/expansion_premier_bras.mp4 


Out[5]:
In [6]:
duration = el.get_default_args(el.EdgeGrid.render)['duration']
class EdgeGrid(el.EdgeGrid):
    def update(self):
        e.struct_angles=[-42.*np.cos(2*np.pi*self.t/duration)**2, -60., -130.]
        e.add_structure()
        e.sample_structure(N_mirror=2, alpha = .5)

e = EdgeGrid(N_lame=25, grid_type='line')
e.animate(fname='../files/expansion_deuxieme_bras.mp4', scale = 32.)
[MoviePy] >>>> Building video ../files/expansion_deuxieme_bras.mp4
[MoviePy] Writing video ../files/expansion_deuxieme_bras.mp4
                                                 
[MoviePy] Done.
[MoviePy] >>>> Video ready: ../files/expansion_deuxieme_bras.mp4 


Out[6]:
In [7]:
duration = el.get_default_args(el.EdgeGrid.render)['duration']
class EdgeGrid(el.EdgeGrid):
    def update(self):
        e.struct_angles=[-22., -60.  , -120.-49**np.cos(2*np.pi*self.t/duration)]
        e.add_structure()
        e.sample_structure(N_mirror=2, alpha = .5)

e = EdgeGrid(N_lame=25, grid_type='line')
e.animate(fname='../files/expansion_troisieme_bras.mp4', scale = 32.)
[MoviePy] >>>> Building video ../files/expansion_troisieme_bras.mp4
[MoviePy] Writing video ../files/expansion_troisieme_bras.mp4
                                                 
[MoviePy] Done.
[MoviePy] >>>> Video ready: ../files/expansion_troisieme_bras.mp4 


Out[7]:

git

In [8]:
!git s
#!git add 2015-11-02\ élasticité\ expansion\ en\ miroir.ipynb
 M "2015-11-02 \303\251lasticit\303\251 expansion en miroir - exploration param\303\250tres.ipynb"
?? ../src/__pycache__/
In [9]:
!git commit -am' expansion - miroir de la structure - essais avec différents angles'
[master 66addb3]  expansion - miroir de la structure - essais avec différents angles
 1 file changed, 31 insertions(+), 97 deletions(-)
In [10]:
! git push
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.18 KiB | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
To git@git.framasoft.org:laurentperrinet/elasticte.git
   2de5eda..66addb3  master -> master