Skip to content

Commit

Permalink
Disable the pylint warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
priti-ashvin-shah-ibm committed Feb 9, 2022
1 parent 1622b73 commit 427bc7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyEPR/core_quantum_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,8 @@ def plot_hamiltonian_results(self,
Qs.plot(ax=ax, lw=1, alpha=0.2, color='grey', legend=False)

df_Qs = np.isinf(Qs)
# pylint: disable=E1101
# Instance of 'ndarray' has no 'values' member (no-member)
Qs_val = df_Qs.values
Qs_inf = Qs_val.sum()
if not (len(Qs) == 0 or Qs_inf > 0):
Expand Down

0 comments on commit 427bc7d

Please sign in to comment.