Pymol-Scripts / Pymol-script-repo

Collected scripts for Pymol
http://www.pymolwiki.org/index.php/Git_intro
435 stars 257 forks source link

Fixed issue of floats that were causing errors #121

Closed sfhbarnett closed 2 years ago

sfhbarnett commented 2 years ago

When I ran spectrumany in Pymol I got the following errors as a result of the changes of integer to floating division with python 3:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/pymol/2.5.0/libexec/lib/python3.9/site-packages/pmg_tk/startup/spectrumany.py", line 94, in spectrumany
    for i in range(steps):
TypeError: 'float' object cannot be interpreted as an integer

The changes fix the issues

sfhbarnett commented 2 years ago

not sure how the shebang snug in, I didn't add it!

I also changed the int to // for consistency