Csparc2star error: Unhashable type: 'list'

Hi,

So I’m trying to convert a cs file to a star file using csparc2star and I keep getting the following error:

Traceback (most recent call last):
File “/Apps/pyem/csparc2star.py”, line 142, in
sys.exit(main(parser.parse_args()))
File “/Apps/pyem/csparc2star.py”, line 104, in main
star.write_star(args.output, df, resort_records=True, optics=True)
File “/Apps/pyem/pyem/star.py”, line 518, in write_star
df = simplify_star_ucsf(df)
File “/Apps/pyem/pyem/star.py”, line 625, in simplify_star_ucsf
if UCSF.ZERNIKE_COEFS_ODD in df:
File “/Apps/anaconda3/envs/pyem/lib/python3.10/site-packages/pandas/core/generic.py”, line 1994, in contains
return key in self._info_axis
File “/Apps/anaconda3/envs/pyem/lib/python3.10/site-packages/pandas/core/indexes/base.py”, line 5022, in contains
hash(key)
TypeError: unhashable type: ‘list’

I know everything is up to date and I have csparc2star installed correctly. I’ve also used it before on a different workstation a while ago and I never had any issues. Not sure if this is an easy fix on my end or if its a bug.

Hey Kyle :smiley:

Forgot to commit something, try updating again.

Awesome thanks Daniel. I saw there was some changes made over the past week on github so I figured it was something along those lines. Thanks!