Skip to content

w90io.read_hr takes long time on windows #16

@Zijia-Cheng

Description

@Zijia-Cheng

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions