Commit 25101927 authored by Pacôme Armagnat's avatar Pacôme Armagnat
Browse files

Silence solver prints. Fix import error in fill_kwant_sites

parent 8e5f0e84
......@@ -837,7 +837,7 @@ class LinearProblem(object):
if (new_instance
or (self.solver_instance is None)
or (self.solver is not solver_type)):
print('New instance created') #TODO: remove this once test done
#print('New instance created') #TODO: remove this once test done
self.solver_instance = solver_options[solver_type]()
elif ((not new_instance) and
(self.solver_instance is None)):
......@@ -182,7 +182,7 @@ class Mumps(Solver):
out: np.ndarray
print('Solver : MUMPS')
#print('Solver : MUMPS')
if ((mumps_solver_obj is None)
and (self.mumps_solver_obj is None)):
......@@ -6,8 +6,8 @@ from scipy.spatial import Voronoi, voronoi_plot_2d
from scipy.spatial import KDTree
import kwant
from poisson import repeated_values
import shapes
from poisson.discrete import repeated_values
from poisson.continuous import shapes
from matplotlib import pyplot as plt
......@@ -124,7 +124,7 @@ def tests():
# Define the scattering region
rect = [(-L/2-eps, -W/2-eps), (L/2+eps, -W/2-eps), (L/2+eps, W/2+eps), (-L/2-eps, W/2+eps)]
rect1 = shapes.PointsShape(rect)
rect1 = shapes.Delaunay(rect)
rect2 = copy.deepcopy(rect1)
rect3 = copy.deepcopy(rect1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment