davidcortesortuno / oommfpy

Python library to analyse OOMMF and MuMax3 data files
BSD 2-Clause "Simplified" License
12 stars 7 forks source link

compute_sk_number #4

Closed longlong-zhang closed 4 years ago

longlong-zhang commented 4 years ago

Hello professor, There is a problem when i try to cakculate the skyrmion number.It seems that i have not properly import that function. I have read the docmention over times,but i did not found the instruction to import this module. Also, I have attached the error message in this submit. Hoping for you suggesstions. 微信截图_20200504115023

davidcortesortuno commented 4 years ago

Hi, if you look at the first part of the basics notebook, https://github.com/davidcortesortuno/oommfpy/blob/master/doc/ipynb/basics.ipynb , you will notice that you have to initialise the class with your data file, and then use .compute_sk_number on the class object, e.g. data.compute_sk_number(plane='xy', index=0)

longlong-zhang commented 4 years ago

Got it! Just as you mentioned, there is actually a example at the basics notebook. Thanks very much for you prompt help!