udcm-su / NTMpy

Simulation of multi temperature and multi layer heat diffusion
http://udcm.fysik.su.se/code
MIT License
18 stars 11 forks source link

Error when trying to initialize Spin temperature in a 3TM calculation #23

Open adelatorreduran opened 2 years ago

adelatorreduran commented 2 years ago

Hey,

sim.changeInit(3,temp_init) gives an error and it is associated to a typo in line 290 of NTMpy.py version 0.1.1. It says:

self.temp_data_Spin = function

when I believe it should say:

self.temp_data_Spin.init = function

which makes the code run without any issues.

Thanks,

Alberto

luksen99 commented 2 years ago

Hi Alberto, Thank you very much for the hint.

Can you make a pull request?

VaSca92 commented 2 years ago

Ciao Alberto, thanks for notifying us this bug. I am currently working on an update and I will correct this error I did not notice.