Skip to content

Commit

Permalink
Merge pull request #158 from ECSHackWeek/maint/change-print-to-warn
Browse files Browse the repository at this point in the history
change print statement to warning.warn in circuit.predict()
  • Loading branch information
mdmurbach authored Mar 12, 2021
2 parents c6b9906 + 7515982 commit 73fe2ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion impedance/models/circuits/circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import json
import matplotlib.pyplot as plt
import numpy as np
import warnings


class BaseCircuit:
Expand Down Expand Up @@ -151,7 +152,7 @@ def predict(self, frequencies, use_initial=False):
index=0)[0],
circuit_elements)
else:
print("Simulating circuit based on initial parameters")
warnings.warn("Simulating circuit based on initial parameters")
return eval(buildCircuit(self.circuit, frequencies,
*self.initial_guess,
constants=self.constants, eval_string='',
Expand Down

0 comments on commit 73fe2ab

Please sign in to comment.