Dear Nick, thanks for your attention. I installed sisl via pip command. And it was successfully installed without any errors. Also i installed pre-requisite before installing sisl such as : setuptools, numpy (>=1.9), scipy, netcdf4-python.
Best Regards, On Mon, May 22, 2017 at 5:44 PM, Nick Papior <[email protected]> wrote: > Could you tell us how you have installed sisl? > > Also, I think I made a mistake in the script, it should be: > > >>> script begin <<< > #!/usr/bin/env python > import sys > import sisl > # Read the electronic structure from the file > H = sisl.get_sile(sys.argv[1]).read_es() > H.write('output.nc') > >>> script end <<< > > 2017-05-21 7:26 GMT+02:00 maryam jamaati <[email protected]>: > >> Dear siesta users, >> >> In order to convert from TSHS to nc we used this small script from ( >> https://answers.launchpad.net/siesta/+question/435947): >> >> #!/usr/bin/env python >> import sys >> import sisl >> # Read the electronic structure from the file >> H = get_sile(sys.argv[1]).read_es() >> H.write('output.nc') >> »> script end «< >> >> and then call it by: >> python convert.py siesta.TSHS >> >> >> >> But after running the code, the below error appears: >> ValueError: failed to create intent(cache|hide)|optional array— must have >> defined dimensions but got (3,0,) >> >> I would be pleased if anyone could help me to solve this problem. >> >> Best Regards, >> >> > > > -- > Kind regards Nick >
