Skip to content

Commit

Permalink
implement new pycodestyle guidelines about use of isinstance() rather…
Browse files Browse the repository at this point in the history
… than type()
  • Loading branch information
clinssen authored Aug 10, 2023
1 parent 5d3502d commit 64f3d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odetoolbox/mixed_integrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def integrate_ode(self, initial_values=None, h_min_lower_bound=5E-9, raise_error
if initial_values is None:
initial_values = {}

assert all([type(k) == sympy.Symbol for k in initial_values.keys()]), 'Initial value dictionary keys should be of type sympy.Symbol'
assert all([isinstance(k, sympy.Symbol) for k in initial_values.keys()]), 'Initial value dictionary keys should be of type sympy.Symbol'

#
# grab stimulus spike times
Expand Down

0 comments on commit 64f3d41

Please sign in to comment.