File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1- from __future__ import print_function
2- from __future__ import division
31import numpy as np
42import fidimag .extensions .nebm_clib as nebm_clib
53from .chain_method_tools import spherical2cartesian , cartesian2spherical , compute_norm
1311
1412
1513class NEBM_Spherical (ChainMethodBase ):
16- """
14+ r """
1715
1816 ARGUMENTS -----------------------------------------------------------------
1917
@@ -244,7 +242,7 @@ def compute_effective_field_and_energy(self, y):
244242 # Only update the extreme images
245243 for i in range (1 , len (y ) - 1 ):
246244
247- self .sim .set_m ( spherical2cartesian (y [i ]) )
245+ self .sim .spin [:] = spherical2cartesian (y [i ])
248246 # elif self.coordinates == 'Cartesian':
249247 # self.sim.set_m(self.band[i])
250248
You can’t perform that action at this time.
0 commit comments