From 5580e121f2919ed3795394add22ed23706702e0a Mon Sep 17 00:00:00 2001 From: Roy Hoitink Date: Wed, 8 Nov 2023 17:10:05 +0100 Subject: [PATCH] Fix coordinate order in .xyz file, closes issue #2 --- src/napari_trackpy/_writer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/napari_trackpy/_writer.py b/src/napari_trackpy/_writer.py index 294b04c..3d32412 100644 --- a/src/napari_trackpy/_writer.py +++ b/src/napari_trackpy/_writer.py @@ -16,6 +16,8 @@ def xyz_file_writer( ) header += ' Unit="micrometer"' + coordinates = coordinates[:, [2, 1, 0]] # change from ZYX to XYZ + if "particle_tracking_settings" in attributes["metadata"]: # save particle tracking settings to txt file with open(