Skip to content

Commit

Permalink
Issue 956 (#962)
Browse files Browse the repository at this point in the history
* MAINT/DEP: minor adjustment on formatting to support numpy 2.0

* DOC: mention of NumPy 2.0 support
  • Loading branch information
wasade authored May 7, 2024
1 parent 1119575 commit e8e6ed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ BIOM-Format ChangeLog
biom 2.1.15-dev
---------------

New features:

* NumPy 2.0 support, see issue [#956](https://github.com/biocore/biom-format/issues/956)

Bug Fixes:

* Fixed an edge case on in `align_tree` when a feature was empty, see issue [#948](https://github.com/biocore/biom-format/issues/948)
Expand Down
2 changes: 1 addition & 1 deletion biom/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -4866,7 +4866,7 @@ def to_json(self, generated_by, direct_io=None, creation_date=None):
for col_index, val in enumerate(obs[0]):
if float(val) != 0.0:
built_row.append(
"[%d,%d,%r]" % (obs_index, col_index, val)
"[%d,%d,%f]" % (obs_index, col_index, val)
)
if built_row:
# if we have written a row already, its safe to add a comma
Expand Down

0 comments on commit e8e6ed6

Please sign in to comment.