Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch numpy -> math in init function #53

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions micromagnetictests/calculatortests/zeeman.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import math

import discretisedfield as df
import micromagneticmodel as mm
import numpy as np
Expand Down Expand Up @@ -320,13 +322,13 @@ def value_fun(pos):

# time-dependent - function
def t_func(t):
omega = 2 * np.pi * 1e9
omega = 2 * math.pi * 1e9
return [
np.cos(omega * t),
-np.sin(omega * t),
math.cos(omega * t),
-math.sin(omega * t),
0,
np.sin(omega * t),
np.cos(omega * t),
math.sin(omega * t),
math.cos(omega * t),
0,
0,
0,
Expand Down
Loading