diff --git a/src/cryojax/data/_relion/_starfile_writing.py b/src/cryojax/data/_relion/_starfile_writing.py index 44573c2d..ead1ee61 100644 --- a/src/cryojax/data/_relion/_starfile_writing.py +++ b/src/cryojax/data/_relion/_starfile_writing.py @@ -133,12 +133,11 @@ def write_starfile_with_particle_parameters( n_batches = n_images // mrc_batch_size n_remainder = n_images % mrc_batch_size - relative_mrcs_path_prefix = str(filename).split(".")[0] image_names = [] for step in range(n_batches): mrc_filename = _get_filename(step, n_char=6) - mrc_relative_path = relative_mrcs_path_prefix + mrc_filename + ".mrcs" + mrc_relative_path = mrc_filename + ".mrcs" image_names += [ _get_filename(i + 1, n_char=6) + "@" + mrc_relative_path for i in range(mrc_batch_size) @@ -146,7 +145,7 @@ def write_starfile_with_particle_parameters( if n_remainder > 0: mrc_filename = _get_filename(n_batches, n_char=6) - mrc_relative_path = relative_mrcs_path_prefix + mrc_filename + ".mrcs" + mrc_relative_path = mrc_filename + ".mrcs" image_names += [ _get_filename(i + 1, n_char=6) + "@" + mrc_relative_path for i in range(n_remainder)