bevesce / ising

tools to obtain phase diagrams of 2D Ising model by diagonalization of transfer matrix
0 stars 1 forks source link

problem with growl #1

Closed dzovan137 closed 10 years ago

dzovan137 commented 10 years ago

Hello!

I'm trying to run your code :dancer: Im having problem with the growl notifiers. I get an error

Traceback (most recent call last): File "ising.py", line 5, in from notify import notify File ".../Ising-master/notify.py", line 3, in image = open('img.png').read() IOError: [Errno 2] No such file or directory: 'img.png'

There is no image in the repository...

Cheers

dzovan137 commented 10 years ago

I put some image in place of img.png...now i get

Traceback (most recent call last): File "ising.py", line 5, in from notify import notify File ".../Ising-master/notify.py", line 9, in growl.register() File ".../.my_python/local/lib/python2.7/site-packages/gntp/notifier.py", line 97, in register return self._send('register', register) File ".../.my_python/local/lib/python2.7/site-packages/gntp/notifier.py", line 204, in _send raise errors.NetworkError(exc) gntp.errors.NetworkError: [Errno 111] Connection refused

dzovan137 commented 10 years ago

You mentioned you have paper on the method. If you can share it would be nice. I'm quite new to python, so any instructions would help.

bevesce commented 10 years ago

My paper is in polish, so I don't know if it will be useful to you. As I mentioned, more informations about method I use can be found in Exactly Solved Models in Statistical Mechanics by R. J. Baxter, which is available online here: http://physics.anu.edu.au/theophys/_files/Exactly.pdf

I checked and growl is working on my machine, but nevertheless it's not very important, it's only used to notify when calculations are finished. So you can just remove lines: 5: from notify import notify 59: notify(matrix_gen.name, diff) from ising.py and everything else should work.