From 2d2435c1c4c2ba85fab18a5bced1a8cecfc64518 Mon Sep 17 00:00:00 2001 From: Rob Court Date: Fri, 18 Aug 2023 11:46:27 +0100 Subject: [PATCH] Update core.py --- flybrains/core.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/flybrains/core.py b/flybrains/core.py index c8af4f6..9a1de61 100644 --- a/flybrains/core.py +++ b/flybrains/core.py @@ -263,6 +263,10 @@ def search_register_path(path, verbose=False): if source == 'MANC': source = 'MANCum' + # "Seymour" likewise requires microns + if source == 'DmelL1CNS_Seymour': + source = 'DmelL1CNS_Seymourum' + # Initialize the transform transform = tr(hit) @@ -344,6 +348,13 @@ def register_transforms(): target='JRCFIB2018Fum', transform_type='bridging') + # Add transform between DmelL1CNS_Seymour (nm) and DmelL1CNS_Seymourum (um) + tr = transforms.AffineTransform(np.diag([1e3, 1e3, 1e3, 1])) + transforms.registry.register_transform(transform=tr, + source='DmelL1CNS_Seymourum', + target='DmelL1CNS_Seymour', + transform_type='bridging') + # Add alias transform between FAFB and FAFB14 (they are synonymous) tr = transforms.AliasTransform() transforms.registry.register_transform(transform=tr,