We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e155b79 commit e983a1fCopy full SHA for e983a1f
1 file changed
fidimag/common/nebm_spherical.py
@@ -1,5 +1,3 @@
1
-from __future__ import print_function
2
-from __future__ import division
3
import numpy as np
4
import fidimag.extensions.nebm_clib as nebm_clib
5
from .chain_method_tools import spherical2cartesian, cartesian2spherical, compute_norm
@@ -13,7 +11,7 @@
13
11
14
12
15
class NEBM_Spherical(ChainMethodBase):
16
- """
+ r"""
17
18
ARGUMENTS -----------------------------------------------------------------
19
@@ -244,7 +242,7 @@ def compute_effective_field_and_energy(self, y):
244
242
# Only update the extreme images
245
243
for i in range(1, len(y) - 1):
246
247
- self.sim.set_m(spherical2cartesian(y[i]))
+ self.sim.spin[:] = spherical2cartesian(y[i])
248
# elif self.coordinates == 'Cartesian':
249
# self.sim.set_m(self.band[i])
250
0 commit comments