Skip to content

Commit

Permalink
Fix coordinate order in .xyz file, closes issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoitink committed Nov 8, 2023
1 parent 70ec9aa commit 5580e12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/napari_trackpy/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5580e12

Please sign in to comment.