Skip to content

Commit 95e1166

Browse files
committed
rename glt to gelato
1 parent da04c95 commit 95e1166

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+71
-71
lines changed

doc/index.rst

+1-1

glt/__init__.py gelato/__init__.py

File renamed without changes.
File renamed without changes.
File renamed without changes.

glt/expression.py gelato/expression.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
from itertools import product
2828
import numpy as np
2929
import matplotlib.pyplot as plt
30-
from glt.printing.latex import latex_title_as_paragraph
31-
from glt.printing.latex import glt_latex_definitions
32-
from glt.printing.latex import glt_latex_names
33-
from glt.printing.latex import glt_latex
34-
from glt.printing.latex import print_glt_latex
30+
from gelato.printing.latex import latex_title_as_paragraph
31+
from gelato.printing.latex import glt_latex_definitions
32+
from gelato.printing.latex import glt_latex_names
33+
from gelato.printing.latex import glt_latex
34+
from gelato.printing.latex import print_glt_latex
3535

3636
# TODO find a better solution.
3737
# this code is duplicated in printing.latex
File renamed without changes.

glt/printing/latex.py gelato/printing/latex.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from sympy.simplify.simplify import simplify
77

88
# TODO find a better solution.
9-
# this code is duplicated in glt.expression
9+
# this code is duplicated in gelato.expression
1010
ARGS_x = ["x", "y", "z"]
1111
ARGS_u = ["u", "v", "w"]
1212
ARGS_s = ["s", "ss"]
@@ -190,7 +190,7 @@ def glt_latex(expr, **settings):
190190

191191
# ...
192192
try:
193-
from glt.expression import glt_formatting
193+
from gelato.expression import glt_formatting
194194
fmt = settings["glt_formatting"]
195195
if fmt:
196196
expr = glt_formatting(expr, **settings)
File renamed without changes.

glt/tests/1d/ex1.py gelato/tests/1d/ex1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def run(filename):
5353
# ...
5454

5555
# ... compute and plot the glt symbol
56-
from glt.expression import glt_symbol_from_weak_formulation
57-
from glt.expression import glt_plot_eigenvalues
56+
from gelato.expression import glt_symbol_from_weak_formulation
57+
from gelato.expression import glt_plot_eigenvalues
5858

5959
discretization = {"n_elements": bspline_params["N_ELEMENTS"], \
6060
"degrees": bspline_params["DEGREES"]}

glt/tests/1d/ex2.py gelato/tests/1d/ex2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def run(filename):
6262
# ...
6363

6464
# ... compute and plot the glt symbol
65-
from glt.expression import glt_symbol_from_weak_formulation
66-
from glt.expression import glt_plot_eigenvalues
65+
from gelato.expression import glt_symbol_from_weak_formulation
66+
from gelato.expression import glt_plot_eigenvalues
6767

6868
discretization = {"n_elements": bspline_params["N_ELEMENTS"], \
6969
"degrees": bspline_params["DEGREES"]}

glt/tests/1d/ex3.py gelato/tests/1d/ex3.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def export_plot():
6565
# ...
6666

6767
# ... compute and plot the glt symbol
68-
from glt.expression import glt_symbol_from_weak_formulation
69-
from glt.expression import glt_plot_eigenvalues
68+
from gelato.expression import glt_symbol_from_weak_formulation
69+
from gelato.expression import glt_plot_eigenvalues
7070

7171
expr = glt_symbol_from_weak_formulation(form_a, \
7272
verbose=True, evaluate=True, \
@@ -93,7 +93,7 @@ def export_proof():
9393
# ...
9494

9595
# ... compute and plot the glt symbol
96-
from glt.expression import glt_symbol_from_weak_formulation
96+
from gelato.expression import glt_symbol_from_weak_formulation
9797

9898
expr = glt_symbol_from_weak_formulation(form_a, \
9999
verbose=True, evaluate=False, \
@@ -109,8 +109,8 @@ def export_proof():
109109
# ...
110110

111111
# ...
112-
from glt.printing.latex import glt_latex_definitions
113-
from glt.codegen.latex import Latex
112+
from gelato.printing.latex import glt_latex_definitions
113+
from gelato.codegen.latex import Latex
114114

115115
proof = Latex(definitions=glt_latex_definitions())
116116
# ...
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

glt/tests/2d/ex1.py gelato/tests/2d/ex1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def run(filename):
5353
# ...
5454

5555
# ... compute and plot the glt symbol
56-
from glt.expression import glt_symbol_from_weak_formulation
57-
from glt.expression import glt_plot_eigenvalues
56+
from gelato.expression import glt_symbol_from_weak_formulation
57+
from gelato.expression import glt_plot_eigenvalues
5858

5959
discretization = {"n_elements": bspline_params["N_ELEMENTS"], \
6060
"degrees": bspline_params["DEGREES"]}

glt/tests/2d/ex2.py gelato/tests/2d/ex2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def run(filename):
6767
# ...
6868

6969
# ... compute and plot the glt symbol
70-
from glt.expression import glt_symbol_from_weak_formulation
71-
from glt.expression import glt_plot_eigenvalues
70+
from gelato.expression import glt_symbol_from_weak_formulation
71+
from gelato.expression import glt_plot_eigenvalues
7272

7373
discretization = {"n_elements": bspline_params["N_ELEMENTS"], \
7474
"degrees": bspline_params["DEGREES"]}

glt/tests/2d/ex3.py gelato/tests/2d/ex3.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def export_plot():
6565
# ...
6666

6767
# ... compute and plot the glt symbol
68-
from glt.expression import glt_symbol_from_weak_formulation
69-
from glt.expression import glt_plot_eigenvalues
68+
from gelato.expression import glt_symbol_from_weak_formulation
69+
from gelato.expression import glt_plot_eigenvalues
7070

7171
expr = glt_symbol_from_weak_formulation(form_a, \
7272
verbose=True, evaluate=True, \
@@ -93,7 +93,7 @@ def export_proof():
9393
# ...
9494

9595
# ... compute and plot the glt symbol
96-
from glt.expression import glt_symbol_from_weak_formulation
96+
from gelato.expression import glt_symbol_from_weak_formulation
9797

9898
expr = glt_symbol_from_weak_formulation(form_a, \
9999
verbose=True, evaluate=False, \
@@ -109,8 +109,8 @@ def export_proof():
109109
# ...
110110

111111
# ...
112-
from glt.printing.latex import glt_latex_definitions
113-
from glt.codegen.latex import Latex
112+
from gelato.printing.latex import glt_latex_definitions
113+
from gelato.codegen.latex import Latex
114114

115115
proof = Latex(definitions=glt_latex_definitions())
116116
# ...
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

glt/tests/3d/ex1.py gelato/tests/3d/ex1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def run(filename):
5353
# ...
5454

5555
# ... compute and plot the glt symbol
56-
from glt.expression import glt_symbol_from_weak_formulation
57-
from glt.expression import glt_plot_eigenvalues
56+
from gelato.expression import glt_symbol_from_weak_formulation
57+
from gelato.expression import glt_plot_eigenvalues
5858

5959
discretization = {"n_elements": bspline_params["N_ELEMENTS"], \
6060
"degrees": bspline_params["DEGREES"]}

glt/tests/3d/ex2.py gelato/tests/3d/ex2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def run(filename):
5858
# ...
5959

6060
# ... compute and plot the glt symbol
61-
from glt.expression import glt_symbol_from_weak_formulation
62-
from glt.expression import glt_plot_eigenvalues
61+
from gelato.expression import glt_symbol_from_weak_formulation
62+
from gelato.expression import glt_plot_eigenvalues
6363

6464
discretization = {"n_elements": bspline_params["N_ELEMENTS"], \
6565
"degrees": bspline_params["DEGREES"]}

glt/tests/3d/ex3.py gelato/tests/3d/ex3.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def export_plot():
6565
# ...
6666

6767
# ... compute and plot the glt symbol
68-
from glt.expression import glt_symbol_from_weak_formulation
69-
from glt.expression import glt_plot_eigenvalues
68+
from gelato.expression import glt_symbol_from_weak_formulation
69+
from gelato.expression import glt_plot_eigenvalues
7070

7171
expr = glt_symbol_from_weak_formulation(form_a, \
7272
verbose=True, evaluate=True, \
@@ -93,7 +93,7 @@ def export_proof():
9393
# ...
9494

9595
# ... compute and plot the glt symbol
96-
from glt.expression import glt_symbol_from_weak_formulation
96+
from gelato.expression import glt_symbol_from_weak_formulation
9797

9898
expr = glt_symbol_from_weak_formulation(form_a, \
9999
verbose=True, evaluate=False, \
@@ -109,8 +109,8 @@ def export_proof():
109109
# ...
110110

111111
# ...
112-
from glt.printing.latex import glt_latex_definitions
113-
from glt.codegen.latex import Latex
112+
from gelato.printing.latex import glt_latex_definitions
113+
from gelato.codegen.latex import Latex
114114

115115
proof = Latex(definitions=glt_latex_definitions())
116116
# ...
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

notebooks/tutorials/tutorial_1.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"outputs": [],
2727
"source": [
2828
"# ... we first import the glt_symbol function\n",
29-
"from glt.expression import glt_symbol\n",
29+
"from gelato.expression import glt_symbol\n",
3030
"# ..."
3131
]
3232
},
@@ -166,7 +166,7 @@
166166
}
167167
],
168168
"source": [
169-
"from glt.printing.latex import glt_latex;\n",
169+
"from gelato.printing.latex import glt_latex;\n",
170170
"Math(glt_latex(expr))"
171171
]
172172
},
@@ -209,7 +209,7 @@
209209
},
210210
"outputs": [],
211211
"source": [
212-
"from glt.expression import glt_approximate_eigenvalues\n",
212+
"from gelato.expression import glt_approximate_eigenvalues\n",
213213
"eig = glt_approximate_eigenvalues(expr, discretization)"
214214
]
215215
},
@@ -264,7 +264,7 @@
264264
},
265265
"outputs": [],
266266
"source": [
267-
"from glt.expression import glt_lambdify\n",
267+
"from gelato.expression import glt_lambdify\n",
268268
"\n",
269269
"f = glt_lambdify(expr, dim=3)"
270270
]

notebooks/tutorials/tutorial_2.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"source": [
2929
"%matplotlib inline\n",
3030
"import matplotlib.pyplot as plt\n",
31-
"from glt.expression import glt_symbol\n",
32-
"from glt.expression import glt_lambdify\n",
31+
"from gelato.expression import glt_symbol\n",
32+
"from gelato.expression import glt_lambdify\n",
3333
"from numpy import linspace, pi\n",
3434
"\n",
3535
"colors = [\"r\", \"b\", \"g\", \"y\", \"m\", \"k\", \"c\"]\n",
@@ -124,8 +124,8 @@
124124
"source": [
125125
"from sympy import Symbol\n",
126126
"from IPython.display import Math\n",
127-
"from glt.printing.latex import glt_latex\n",
128-
"from glt.expression import glt_symbol\n",
127+
"from gelato.printing.latex import glt_latex\n",
128+
"from gelato.expression import glt_symbol\n",
129129
"\n",
130130
"# ...\n",
131131
"t1 = Symbol(\"t1\")\n",

notebooks/tutorials/tutorial_3.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"outputs": [],
2727
"source": [
28-
"from glt.expression import glt_symbol\n",
28+
"from gelato.expression import glt_symbol\n",
2929
"\n",
3030
"discretization = {\"n_elements\": [16, 16], \"degrees\": [2,2]}"
3131
]
@@ -108,7 +108,7 @@
108108
}
109109
],
110110
"source": [
111-
"from glt.expression import glt_latex\n",
111+
"from gelato.expression import glt_latex\n",
112112
"from IPython.display import Math\n",
113113
"\n",
114114
"Math(glt_latex(expr))"
@@ -193,7 +193,7 @@
193193
}
194194
],
195195
"source": [
196-
"from glt.printing.latex import glt_latex_names\n",
196+
"from gelato.printing.latex import glt_latex_names\n",
197197
"\n",
198198
"Math(latex(eigs, symbol_names=glt_latex_names()))"
199199
]
@@ -246,7 +246,7 @@
246246
"%matplotlib inline\n",
247247
"import matplotlib.pyplot as plt\n",
248248
"\n",
249-
"from glt.expression import glt_plot_eigenvalues\n",
249+
"from gelato.expression import glt_plot_eigenvalues\n",
250250
"\n",
251251
"glt_plot_eigenvalues(expr, discretization)"
252252
]

notebooks/tutorials/tutorial_4.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"outputs": [],
186186
"source": [
187187
"# ... compute the glt symbol without evaluation\n",
188-
"from glt.expression import glt_symbol_from_weak_formulation\n",
188+
"from gelato.expression import glt_symbol_from_weak_formulation\n",
189189
"\n",
190190
"expr = glt_symbol_from_weak_formulation(form, \\\n",
191191
" verbose=False, evaluate=False, \\\n",
@@ -221,7 +221,7 @@
221221
],
222222
"source": [
223223
"from IPython.display import Math;\n",
224-
"from glt.printing.latex import glt_latex;\n",
224+
"from gelato.printing.latex import glt_latex;\n",
225225
"\n",
226226
"Math(glt_latex(expr))"
227227
]
@@ -269,7 +269,7 @@
269269
],
270270
"source": [
271271
"from sympy import latex\n",
272-
"from glt.printing.latex import glt_latex_names\n",
272+
"from gelato.printing.latex import glt_latex_names\n",
273273
"\n",
274274
"Math(latex(expr, symbol_names=glt_latex_names()))"
275275
]
@@ -299,7 +299,7 @@
299299
],
300300
"source": [
301301
"# ...\n",
302-
"from glt.expression import glt_plot_eigenvalues\n",
302+
"from gelato.expression import glt_plot_eigenvalues\n",
303303
"\n",
304304
"glt_plot_eigenvalues(expr, discretization, \\\n",
305305
" mapping=mapping, \\\n",

notebooks/tutorials/tutorial_5.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
" # ...\n",
134134
" \n",
135135
" # ... compute the glt symbol and evaluate it\n",
136-
" from glt.expression import glt_symbol_from_weak_formulation\n",
136+
" from gelato.expression import glt_symbol_from_weak_formulation\n",
137137
" \n",
138138
" expr = glt_symbol_from_weak_formulation(form, \\\n",
139139
" verbose=False, evaluate=True, \\\n",
@@ -142,7 +142,7 @@
142142
" # ...\n",
143143
" \n",
144144
" # ...\n",
145-
" from glt.expression import glt_plot_eigenvalues\n",
145+
" from gelato.expression import glt_plot_eigenvalues\n",
146146
" \n",
147147
" matrix = None\n",
148148
" if plot_matrix:\n",

0 commit comments

Comments
 (0)