You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to use read_hr function on both windows and mac. It works smoothly on Mac, while it takes forever on windows(>15mins). It should not be related to computer performance as the windows computer should perform better than macbook. When I interrupt the kernal it always stops at this line:
Thank you @CZJ2020 for reporting the issue you are experiencing. Unfortunately, I do not have access to a Windows system. Could you try splitting the call into
and seeing which of those lines is causing it to hang.
Maybe it is the newline \n character on Windows... and it needs to be something like sep=os.linesep. Hope this helps, and please let me know what you find.
I have tried to use read_hr function on both windows and mac. It works smoothly on Mac, while it takes forever on windows(>15mins). It should not be related to computer performance as the windows computer should perform better than macbook. When I interrupt the kernal it always stops at this line:
KeyboardInterrupt Traceback (most recent call last)
in
----> 1 HR, Rvectors, Rweights = w90io.read_hr('wannier90_hr.dat')
D:\machine learning\python\lib\site-packages\wannier90_utils-0.1.0-py3.7.egg\w90utils\io_hr.py in read_hr(fname)
23
24 istart_hr = 3+ndegen_lines
---> 25 raw_data = np.fromstring(''.join(contents[istart_hr:]), sep='\n').reshape((-1, 7))
26
27 hr = raw_data[:, 5] + 1j*raw_data[:, 6]
KeyboardInterrupt:
The text was updated successfully, but these errors were encountered: