Skip to content

Commit

Permalink
fixed typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jobdewitte committed Jan 13, 2025
1 parent fed2fe8 commit 6da0aab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion traceon/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ def charges_to_field(self, charges):
class MagnetostaticSolverRadial(SolverRadial):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.preexisting_field = self.get_current_field() + self.get_permanent_magnet_field()
self.preexisting_field = FieldRadialBEM(magnetostatic_point_charges=self.get_permanent_magnet_field().magnetostatic_point_charges,
current_point_charges=self.get_current_field().current_point_charges)

def get_active_elements(self):
return self.excitation.get_magnetostatic_active_elements()
Expand Down

0 comments on commit 6da0aab

Please sign in to comment.