Value error with patch CTF estimation and manual picker

Hey @KSJ,

Is it possible if you can run this code for me, and attach the file it creates?

First, get together 2 paths

  1. dir_path: The path to the directory where you’ve saved the micrographs from EMPIAR 10059
  2. output_path: The path to the file where the stats will be written to

Then, in a shell, run cryosparcm icli, which will open up an interactive python shell. You can then copy and paste this code, with the two variables modified

import os
from cryosparc2_compute.blobio import mrc
dir_path = '/EMPIAR/10059/data/micrographs'
output_path = '/u/cryosparcuser/header_stats.txt'
for path in os.listdir(dir_path):
    filepath = os.path.join(dir_path, path)
    with open(output_path, 'a') as file_out:
        with open(filepath, 'rb') as file_obj:
            header = mrc.read_mrc_header(file_obj)
            file_out.write(filepath + ' : ')
            file_out.write(str(header) + ', ')
            file_out.write("File size: {}".format(os.path.getsize(filepath)))
            file_out.write('\n')

Thank you very much for your help!