Skip to content

Commit 11f2785

Browse files
author
Weiwei Wang
committed
fix a bug for timezeeman
1 parent 228f54e commit 11f2785

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

bin/fix_load_path_mac.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
def extract_library(so_file):
2121
cmd = ('otool', '-L', so_file)
2222
output = subprocess.check_output(cmd)
23-
for line in output.split('\t'):
23+
for line in output.decode().split('\t'):
2424
m = patten.match(line)
25+
print(m, line)
2526
if m:
2627
lib_name = m.group()
2728
full_name = os.path.join(LIB_DIR, lib_name)
28-
#print lib_name, full_name
29+
print(lib_name, full_name)
2930
cmd = ('install_name_tool', '-change',
3031
lib_name, full_name, so_file
3132
)

fidimag/atomistic/zeeman.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def __init__(self, B0, time_fun, name='TimeZeeman'):
103103
self.name = name
104104
self.jac = False
105105

106-
def setup(self, mesh, spin, mu_s):
107-
super(TimeZeeman, self).setup(mesh, spin, mu_s)
106+
def setup(self, mesh, spin, mu_s, mu_s_inv):
107+
super(TimeZeeman, self).setup(mesh, spin, mu_s, mu_s_inv)
108108
self.H_init = self.field.copy()
109109

110110
def compute_field(self, t=0):

0 commit comments

Comments
 (0)