Hi Daniel,
We also have some issue with running this. We have updated pyem, numpy, and scipy, and the output is below. Any suggestions are appreciated.
python ~/Downloads/pyem/csparc2star.py --loglevel ‘debug’ --passthrough passthrough_particles_class_3.cs cryosparc_P2_J17_class_03_00062_particles.cs j17_to_relion.star
Detected CryoSPARC 2+ .cs file
Reading passthrough file
Concatenating passthrough recarray fields
/home/cate/Downloads/pyem/pyem/util/util.py:74: FutureWarning: Numpy has detected that you may be viewing or writing to an array returned by selecting multiple fields in a structured array.
This code may break in numpy 1.16 because this will return a view instead of a copy – see release notes for details.
joint[:, offset:offset + size] = a.view(np.uint8).reshape(n, size)
Directly copied fields: rlnDefocusAngle, rlnDetectorPixelSize, rlnCtfFigureOfMerit, rlnSphericalAberration, rlnPhaseShift, rlnCtfMaxResolution, rlnVoltage, rlnDefocusU, rlnDefocusV, rlnImageName, rlnMagnification
Converting DEFOCUSANGLE from degrees to radians
Converting PHASESHIFT from degrees to radians
Assigning parameters from 2D classes
Changing RANDOMSUBSET to 1-based index
Changing CLASS to 1-based index
Converting Rodrigues coordinates to Euler angles
Traceback (most recent call last):
File “/home/cate/Downloads/pyem/csparc2star.py”, line 107, in
sys.exit(main(parser.parse_args()))
File “/home/cate/Downloads/pyem/csparc2star.py”, line 47, in main
df = metadata.parse_cryosparc_2_cs(cs, passthrough=args.passthrough, minphic=args.minphic)
File “/home/cate/Downloads/pyem/pyem/metadata.py”, line 320, in parse_cryosparc_2_cs
axis=1, raw=True, result_type=‘broadcast’))
File “/home/cate/.local/lib/python2.7/site-packages/pandas/core/frame.py”, line 4847, in apply
return self._apply_raw(f, axis)
File “/home/cate/.local/lib/python2.7/site-packages/pandas/core/frame.py”, line 4876, in _apply_raw
result = np.apply_along_axis(func, axis, self.values)
File “/EM/miniconda2/lib/python2.7/site-packages/numpy/lib/shape_base.py”, line 357, in apply_along_axis
res = asanyarray(func1d(inarr_view[ind0], *args, **kwargs))
File “/home/cate/.local/lib/python2.7/site-packages/pandas/core/frame.py”, line 4831, in f
return func(x, *args, **kwds)
TypeError: () got an unexpected keyword argument ‘result_type’
(base)