Closed Ionizing closed 6 years ago
Hi
When I wrote this script, I was using python2 and did not take into account the difference of the '/' operator between python2 and python3. Anyway, thank you for you fix, I will add this to the script.
Best Qijing
Okay, I think I can close this issue with pleasure😀
Solved. Thank you...
Qijing
On Wed, May 23, 2018 at 3:18 PM, Ionizing Radiation < notifications@github.com> wrote:
Hi
The same issue occurs in pydos in L46 https://github.com/QijingZheng/pyband/blob/master/pydos#L46 and L47 https://github.com/QijingZheng/pyband/blob/master/pydos#L47, just substitute / with // and problem related to compatibility will be solved.
Best Radiation
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/QijingZheng/pyband/issues/3#issuecomment-391245834, or mute the thread https://github.com/notifications/unsubscribe-auth/AIINPtYNWiJ72UcDzglXzvTHCTNO_Ax5ks5t1Q1fgaJpZM4TrSLh .
Hello Mr. Zheng
I ran into an error like
when I testing
pyband
with the examples listed in this repo.And I guess this issue was caused by the difference of division operator
/
in py2 and py3. The MWE below confirmed it:while in python3:
So I provide a fix to it: in this line, substitute
/
with//
and everything would go well (both python2 and python3 could perform//
in same behavior.