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,

Responder a