Skip to content

Commit

Permalink
Add numpy backend for examples with visualizations
Browse files Browse the repository at this point in the history
  • Loading branch information
ninamiolane committed Dec 31, 2018
1 parent 4f23249 commit f917dad
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/plot_geodesics_h2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

import matplotlib.pyplot as plt
import numpy as np
import os
# Examples with visualizations are only implemented with numpy
os.environ['GEOMSTATS_BACKEND'] = 'numpy' # NOQA

import geomstats.visualization as visualization

Expand Down
3 changes: 3 additions & 0 deletions examples/plot_geodesics_s2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

import matplotlib.pyplot as plt
import numpy as np
import os
# Examples with visualizations are only implemented with numpy
os.environ['GEOMSTATS_BACKEND'] = 'numpy' # NOQA

import geomstats.visualization as visualization

Expand Down
3 changes: 3 additions & 0 deletions examples/plot_geodesics_se3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

import matplotlib.pyplot as plt
import numpy as np
import os
# Examples with visualizations are only implemented with numpy
os.environ['GEOMSTATS_BACKEND'] = 'numpy' # NOQA

import geomstats.visualization as visualization

Expand Down
3 changes: 3 additions & 0 deletions examples/plot_geodesics_so3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

import matplotlib.pyplot as plt
import numpy as np
import os
# Examples with visualizations are only implemented with numpy
os.environ['GEOMSTATS_BACKEND'] = 'numpy' # NOQA

import geomstats.visualization as visualization

Expand Down
3 changes: 3 additions & 0 deletions examples/plot_grid_h2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

import matplotlib.pyplot as plt
import numpy as np
import os
# Examples with visualizations are only implemented with numpy
os.environ['GEOMSTATS_BACKEND'] = 'numpy' # NOQA

import geomstats.visualization as visualization

Expand Down
3 changes: 3 additions & 0 deletions examples/plot_square_h2_klein_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

import matplotlib.pyplot as plt
import numpy as np
import os
# Examples with visualizations are only implemented with numpy
os.environ['GEOMSTATS_BACKEND'] = 'numpy' # NOQA

import geomstats.visualization as visualization

Expand Down
3 changes: 3 additions & 0 deletions examples/plot_square_h2_poincare_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

import matplotlib.pyplot as plt
import numpy as np
import os
# Examples with visualizations are only implemented with numpy
os.environ['GEOMSTATS_BACKEND'] = 'numpy' # NOQA

import geomstats.visualization as visualization

Expand Down
3 changes: 3 additions & 0 deletions examples/plot_square_h2_poincare_half_plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

import matplotlib.pyplot as plt
import numpy as np
import os
# Examples with visualizations are only implemented with numpy
os.environ['GEOMSTATS_BACKEND'] = 'numpy' # NOQA

import geomstats.visualization as visualization

Expand Down

0 comments on commit f917dad

Please sign in to comment.