vidarsko / ComFiT

A python library for simulating field theories with topological defects
MIT License
3 stars 3 forks source link

TypeError in `tutorial/bose_einstein_condensate_basic_framework.ipynb` #15

Closed flokno closed 1 month ago

flokno commented 1 month ago

When running the bose_einstein_condensate_basic_framework tutorial, I get

I get

image
vidarsko commented 1 month ago

Thanks. The usage was not correct. the cell should be:

# task 8

J_s = bec.calc_superfluid_current()
H = bec.calc_hamiltonian_density()

fig, ax=bec.plot_field(H,cmap_symmetric=False,colormap = 'cool')
bec.plot_vector_field(J_s, ax=ax)
plt.show()

I have updated the tutorial. See if it works for you.

flokno commented 1 month ago

confirmed