Skip to content

Commit 0286a8a

Browse files
Apply suggestions from code review
Co-authored-by: Jerome Kelleher <jk@well.ox.ac.uk>
1 parent 05dda33 commit 0286a8a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ In development
77
- Add ``json+struct`` metadata codec that allows storing binary data using a struct
88
schema alongside JSON metadata. (:user:`benjeffery`, :pr:`3306`)
99

10-
- Add `node_labels` parameter to `write_nexus`.
10+
- Add `node_labels` parameter to `write_nexus`. (:user:`kaathewisegit`, :pr:`3442`)
1111

1212
--------------------
1313
[1.0.2] - 2026-03-06

python/tskit/text_formats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def write_nexus(
174174
if include_trees:
175175
print("BEGIN TREES;", file=out)
176176

177-
if node_labels:
177+
if node_labels is not None:
178178
translations = ", ".join(f"n{u} {name}" for u, name in node_labels.items())
179179
print(f" TRANSLATE {translations};", file=out)
180180

0 commit comments

Comments
 (0)