Skip to content

Commit

Permalink
ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gituser789 committed Jul 1, 2024
1 parent 2652fd9 commit 5e1c1db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion femmt/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def add_winding_insulations(self, inner_winding_insulation: List[List[float]]):
The lowest winding number therefore is combined with index 0. The second lowest with index 1 and so on.
:type inner_winding_insulation: List[List[float]]
"""
if inner_winding_insulation is [[]]:
if inner_winding_insulation == [[]]:
raise Exception("Inner winding insulations list cannot be empty.")

self.cond_cond = inner_winding_insulation
Expand Down

0 comments on commit 5e1c1db

Please sign in to comment.