From f92b3d07776a6273879cc36157564914d38e696c Mon Sep 17 00:00:00 2001 From: Anton Akhmerov <anton.akhmerov@gmail.com> Date: Sat, 21 Jan 2017 20:54:38 +0100 Subject: [PATCH] skip coverage of hotpatches (minor) --- kwant/physics/leads.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kwant/physics/leads.py b/kwant/physics/leads.py index 3a244cfc..b691c30b 100644 --- a/kwant/physics/leads.py +++ b/kwant/physics/leads.py @@ -25,7 +25,7 @@ dot = np.dot __all__ = ['selfenergy', 'modes', 'PropagatingModes', 'StabilizedModes'] -if np.__version__ >= '1.8': +if np.__version__ >= '1.8': # skip coverage complex_any = np.any else: def complex_any(array): @@ -257,7 +257,7 @@ def setup_linsys(h_cell, h_hop, tol=1e6, stabilization=None): if stabilization is not None: stabilization = list(stabilization) - if not complex_any(h_hop): + if not complex_any(h_hop): # skip coverage # Inter-cell hopping is zero. The current algorithm is not suited to # treat this extremely singular case. raise ValueError("Inter-cell hopping is exactly zero.") -- GitLab