I believe this patch has broken csparc2star.py conversion from CryoSparc to Relion formatting. Please see below:
-bash-4.2$ csparc2star.py --copy-micrograph-coordinates /data/XXX/XXX/XXX/Extract/job005/particles.star cryosparc_P25_J220_014_particles.cs cryosparc_P25_J220_014_particles.star --loglevel debug
Detected CryoSPARC 2+ .cs file
Reading primary file
Assigning parameters 2D classes or single 3D class
Copying image size
Directly copied fields: rlnPhaseShift, ucsfImageIndex, rlnDefocusAngle, rlnSphericalAberration, rlnDefocusV, rlnCtfBfactor, rlnAmplitudeContrast, rlnVoltage, ucsfUid, rlnDefocusU, rlnDetectorPixelSize, ucsfImagePath, rlnOpticsGroup, rlnRandomSubset, rlnOriginX, rlnOriginY, rlnAngleRot, rlnAngleTilt, rlnAnglePsi, rlnClassNumber, rlnImageSize, rlnMagnification
Converting DEFOCUSANGLE from degrees to radians
Converting PHASESHIFT from degrees to radians
Changing RANDOMSUBSET to 1-based index
Changing CLASS to 1-based index
Changing OPTICSGROUP to 1-based index
Converting Rodrigues coordinates to Euler angles
Converted Rodrigues coordinates to Euler angles
/admin/opt/common/sbgrid/programs/x86_64-linux/pyem/20210211/pyem_extlib/pyem-20210211-gqx7/pyem/star.py:536: FutureWarning: Columnar iteration over characters will be deprecated in future releases.
df[UCSF.IMAGE_INDEX], df[UCSF.IMAGE_PATH] = \
/admin/opt/common/sbgrid/programs/x86_64-linux/pyem/20210211/pyem_extlib/pyem-20210211-gqx7/pyem/star.py:544: FutureWarning: Columnar iteration over characters will be deprecated in future releases.
df[UCSF.IMAGE_ORIGINAL_INDEX], df[UCSF.IMAGE_ORIGINAL_PATH] = \
Coordinates merge key: None
Traceback (most recent call last):
File "/programs/x86_64-linux/pyem/20210211/pyem/csparc2star.py", line 120, in <module>
sys.exit(main(parser.parse_args()))
File "/programs/x86_64-linux/pyem/20210211/pyem/csparc2star.py", line 71, in main
df = star.smart_merge(df, coord_star, fields=fields, key=key)
File "/admin/opt/common/sbgrid/programs/x86_64-linux/pyem/20210211/pyem_extlib/pyem-20210211-gqx7/pyem/star.py", line 146, in smart_merge
s2 = s2.set_index(key, drop=False)
File "/programs/x86_64-linux/pyem/20210211/pyem_extlib/miniconda3-4.8.2-b5qb/lib/python3.8/site-packages/pandas/core/frame.py", line 4555, in set_index
raise KeyError(f"None of {missing} are in the columns")
KeyError: 'None of [None] are in the columns'