Skip to content

Commit

Permalink
Merge pull request #18 from jat255/Separate-inits-for-RecStack-and-To…
Browse files Browse the repository at this point in the history
…moStack

Better separation of concerns between CommonStack and TomoStack
  • Loading branch information
AndrewHerzing authored Nov 5, 2024
2 parents 6d0543e + 372af43 commit e39b5ad
Show file tree
Hide file tree
Showing 9 changed files with 2,836 additions and 2,534 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ jobs:
with-cuda: true
poetry-options: "--with=dev --without=gpu"
- name: Install ffmpeg
uses: FedericoCarboni/setup-ffmpeg@v3
uses: Wandalen/wretry.action@master
with:
action: FedericoCarboni/setup-ffmpeg@v3
attempt_limit: 3
- name: Run docstring example tests
run: poetry run pytest --doctest-modules --ignore=etspy/tests etspy/
- name: Run full test suite
Expand Down
3,665 changes: 1,795 additions & 1,870 deletions docs/examples/etspy_demo.ipynb

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion etspy/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,10 @@ def tilt_maximage(
nshifts = shifts.shape[0]
shifted = ali.isig[0:nshifts, :].deepcopy()
for i in range(nshifts):
shifted.data[:, :, i] = np.roll(ali.isig[idx, :].data, int(shifts[i]))
shifted.data[:, :, i] = np.roll(
ali.isig[idx:idx+1, :].data.squeeze(),
int(shifts[i]),
)
shifted_rec = shifted.reconstruct("SIRT", 100, constrain=True)
image_sum = cast(BaseSignal, shifted_rec.sum(axis=(1, 2)))
tilt_shift = shifts[image_sum.data.argmin()]
Expand Down
Loading

0 comments on commit e39b5ad

Please sign in to comment.