diff --git a/view/simulation_fns.py b/view/simulation_fns.py index 3f931f5..f1b6dd8 100644 --- a/view/simulation_fns.py +++ b/view/simulation_fns.py @@ -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_}"]