Skip to content

Commit

Permalink
Fix resolution check. (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ameya98 authored Dec 9, 2023
1 parent 0d5038e commit 4405376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e3nn_jax/_src/s2grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,9 +912,9 @@ def _from_s2grid_s2fft(
"""An S2FFT powered version of e3nn_jax.from_s2grid."""
lmax = irreps.lmax
expected_grid_resolution = get_s2fft_grid_resolution(lmax)
if sig.shape != expected_grid_resolution:
if sig.grid_resolution != expected_grid_resolution:
raise ValueError(
f"Input signal shape {sig.shape} does not match the required shape {expected_grid_resolution}"
f"Input signal resolution {sig.grid_resolution} does not match the required resolution {expected_grid_resolution}."
)

with jax.ensure_compile_time_eval():
Expand Down

0 comments on commit 4405376

Please sign in to comment.