Skip to content

Commit

Permalink
one columns for final visual
Browse files Browse the repository at this point in the history
  • Loading branch information
kzqureshi committed Dec 16, 2024
1 parent c17eba8 commit 42678b9
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions micromagneticdata/mode_trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,22 @@ def calculate_fields(self):
]

def final_visual(self):
return self.get_top_layer() * self.get_top_core_positions(
["first_skyrmion_top_region", "second_skyrmion_top_region"]
) * self.get_top_trajectory(
["first_skyrmion_top_region", "second_skyrmion_top_region"]
) + self.get_bottom_layer() * self.get_bottom_core_positions(
["first_skyrmion_bottom_region", "second_skyrmion_bottom_region"]
) * self.get_bottom_trajectory(
["first_skyrmion_bottom_region", "second_skyrmion_bottom_region"]
)
return (
self.get_top_layer()
* self.get_top_core_positions(
["first_skyrmion_top_region", "second_skyrmion_top_region"]
)
* self.get_top_trajectory(
["first_skyrmion_top_region", "second_skyrmion_top_region"]
)
+ self.get_bottom_layer()
* self.get_bottom_core_positions(
["first_skyrmion_bottom_region", "second_skyrmion_bottom_region"]
)
* self.get_bottom_trajectory(
["first_skyrmion_bottom_region", "second_skyrmion_bottom_region"]
)
).cols(1)

def get_layers(self):
return self.get_top_layer() + self.get_bottom_layer()
Expand Down

0 comments on commit 42678b9

Please sign in to comment.