Skip to content
Snippets Groups Projects
Commit 2cccf049 authored by Timo Koch's avatar Timo Koch
Browse files

[python][cleanup][plotting] Remove unused variables and never executed return statements

parent 2ab142e3
No related branches found
No related tags found
1 merge request!1050Cleanup/python
Pipeline #41240 passed with warnings
......@@ -135,8 +135,7 @@ if addPlot:
else:
d = v[component]
data += [d]
mind = amin(d)
maxd = amax(d)
data = np.array(data)
minData = amin(data)
maxData = amax(data)
......@@ -187,7 +186,6 @@ if addPlot:
solution = None
if not grid.dimension == 2:
raise ValueError("inline plotting so far only available for 2d grids")
return
if figure is None:
figure = pyplot.figure(figsize=figsize)
......@@ -219,7 +217,6 @@ if addPlot:
solution = None
if not grid.dimension == 2:
raise ValueError("inline plotting so far only available for 2d grids")
return
if figure is None:
figure = pyplot.figure(figsize=figsize)
......@@ -248,7 +245,6 @@ if addPlot:
solution = None
if not grid.dimension == 2:
raise ValueError("inline plotting so far only available for 2d grids")
return
if not show:
show = range(solution.dimRange)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment