Skip to content

Commit

Permalink
remove invalid scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
LemurPwned committed Dec 22, 2024
1 parent 5961c63 commit 9fc916e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view/simulation_fns.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def create_single_domain(id_: str) -> Layer:
def create_single_layer(id_: str) -> tuple:
"""Do not forget to rescale the units!"""
demag = [
CVector(st.session_state[f"Nxx{id_}"] * 1e-6, 0, 0),
CVector(0, st.session_state[f"Nyy{id_}"] * 1e-6, 0),
CVector(0, 0, st.session_state[f"Nzz{id_}"] * 1e-6),
CVector(st.session_state[f"Nxx{id_}"], 0, 0),
CVector(0, st.session_state[f"Nyy{id_}"], 0),
CVector(0, 0, st.session_state[f"Nzz{id_}"]),
]
Kdir = FieldScan.angle2vector(
theta=st.session_state[f"theta_K{id_}"], phi=st.session_state[f"phi_K{id_}"]
Expand Down

0 comments on commit 9fc916e

Please sign in to comment.