Skip to content

Commit

Permalink
bug in more things getting batch dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
mjo22 committed Sep 16, 2024
1 parent 09e84e0 commit 0a3113a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cryojax/data/_relion/_starfile_reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Any, Callable, final, Optional

import equinox as eqx
import equinox.internal as eqxi
import jax
import jax.numpy as jnp
import mrcfile
Expand Down Expand Up @@ -266,7 +267,11 @@ def _get_starfile_params(
phase_shift,
)
ctf = (
eqx.filter_vmap(make_ctf, in_axes=(0, 0, 0, None, None, None, 0))(*ctf_params)
eqx.filter_vmap(
make_ctf,
in_axes=(0, 0, 0, None, None, None, 0),
out_axes=eqxi.if_mapped(0),
)(*ctf_params)
if defocus_in_angstroms.ndim == 1
else make_ctf(*ctf_params)
)
Expand Down

0 comments on commit 0a3113a

Please sign in to comment.