We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05dda33 commit 0286a8aCopy full SHA for 0286a8a
2 files changed
python/CHANGELOG.rst
@@ -7,7 +7,7 @@ In development
7
- Add ``json+struct`` metadata codec that allows storing binary data using a struct
8
schema alongside JSON metadata. (:user:`benjeffery`, :pr:`3306`)
9
10
-- Add `node_labels` parameter to `write_nexus`.
+- Add `node_labels` parameter to `write_nexus`. (:user:`kaathewisegit`, :pr:`3442`)
11
12
--------------------
13
[1.0.2] - 2026-03-06
python/tskit/text_formats.py
@@ -174,7 +174,7 @@ def write_nexus(
174
if include_trees:
175
print("BEGIN TREES;", file=out)
176
177
- if node_labels:
+ if node_labels is not None:
178
translations = ", ".join(f"n{u} {name}" for u, name in node_labels.items())
179
print(f" TRANSLATE {translations};", file=out)
180
0 commit comments