From ccc8941ba7b941ecc58a1b683e0abfae890ff28e Mon Sep 17 00:00:00 2001 From: Andreas M Arnold Date: Mon, 27 Nov 2023 16:17:33 -0500 Subject: [PATCH] Fix metadata of new layer after applying transform --- src/affinder/apply_tf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/affinder/apply_tf.py b/src/affinder/apply_tf.py index 3d4f3ad..0217efe 100644 --- a/src/affinder/apply_tf.py +++ b/src/affinder/apply_tf.py @@ -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'}