Skip to content

Commit

Permalink
Merge pull request #283 from ornlneutronimaging/pre-commit-ci-update-…
Browse files Browse the repository at this point in the history
…config

[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
KedoKudo authored Feb 17, 2023
2 parents 9b2d6de + 14b88b9 commit 03bbed8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
- id: end-of-file-fixer
- id: sort-simple-yaml
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
args: ['--line-length=119']
Expand Down
1 change: 0 additions & 1 deletion src/imars3d/backend/corrections/ring_removal.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def _remove_ring_artifact(
max_workers: int,
tqdm_class,
) -> np.ndarray:

# sanity check
if arrays.ndim != 3:
raise ValueError("This correction can only be used for a stack, i.e. a 3D image.")
Expand Down
1 change: 0 additions & 1 deletion src/imars3d/backend/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def __call__(self, **params):
def _recon(
self, arrays, theta, center, algorithm, filter_name, is_radians, perform_minus_log, ncore, **kwargs
) -> np.ndarray:

if not is_radians:
theta = np.radians(theta)

Expand Down

0 comments on commit 03bbed8

Please sign in to comment.