Skip to content

Commit

Permalink
Merge branch 'jni:main' into delete-pts-layers
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasmarnold committed Nov 28, 2023
2 parents 4f1d9a8 + 927b50f commit 993668a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/google/yapf
rev: 'v0.40.2' # Use the sha / tag you want to point at
hooks:
- id: yapf
exclude: docs/conf.py
6 changes: 1 addition & 5 deletions src/affinder/_tests/test_affinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from scipy import ndimage as ndi
from pathlib import Path


layer0_pts = np.array([[140.38371886,
322.5390704], [181.91866481, 319.65803368],
[176.15659138, 259.1562627],
Expand Down Expand Up @@ -165,7 +164,4 @@ def test_load_affine(tmp_path):
widget = load_affine()
widget(layer, affile)

np.testing.assert_allclose(
layer.affine, affine
)

np.testing.assert_allclose(layer.affine, affine)
2 changes: 1 addition & 1 deletion src/affinder/apply_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def apply_affine(
layertype = 'image'
ref_metadata = {
n: getattr(reference_layer, n)
for n in ['scale', 'translate', 'rotate', 'shear']
for n in ['scale', 'translate', 'rotate', 'shear', 'affine']
}
mov_metadata = moving_layer.as_layer_data_tuple()[1]
name = {'name': moving_layer.name + '_transformed'}
Expand Down

0 comments on commit 993668a

Please sign in to comment.