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

AttributeError: Object has no attribute k3d_vector. #87

Closed
Mishrakishan opened this issue Feb 9, 2023 · 1 comment
Closed

AttributeError: Object has no attribute k3d_vector. #87

Mishrakishan opened this issue Feb 9, 2023 · 1 comment

Comments

@Mishrakishan
Copy link

Hi @marijanbeg. Thank you for the amazing ubermag workshop. It's very well put.

I have installed ubermag as been guided and everything worked out fine. I was executing the 'first_ubermag_simulation' file. Everything ran smoothly but there was an error on cell:

system.m.plane('z').k3d_vector(headsize=10)


AttributeError Traceback (most recent call last)
Cell In[26], line 1
----> 1 system.m.plane('z').k3d_vector(headsize=10)

File ~/opt/anaconda3/envs/ubermag/lib/python3.10/site-packages/discretisedfield/field.py:842, in Field.getattr(self, attr)
840 else:
841 msg = f"Object has no attribute {attr}."
--> 842 raise AttributeError(msg)

AttributeError: Object has no attribute k3d_vector.

@lang-m
Copy link
Member

lang-m commented Feb 10, 2023

Hi @Mishrakishan, since recording the workshop parts of the interface in Ubermag have changed, e.g. you now use system.m.plane('z').k3d.vector(headsize=10) to get the 3d plot. You can find up-to-date information (including updated versions of the notebooks from this workshop) on our website https://ubermag.github.io, e.g. for plotting with k3d refer to this page: https://ubermag.github.io/documentation/notebooks/discretisedfield/field-k3d-visualisation.html

@lang-m lang-m closed this as completed Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants