Skip to content

Commit

Permalink
Convert UUID to string in mock_NWBFile (#1557)
Browse files Browse the repository at this point in the history
* Fix #1556 Convert UUID to string in mock_NWBFile
  • Loading branch information
oruebel authored Sep 23, 2022
1 parent 4133584 commit 787afc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# PyNWB Changelog

## PyNWB 2.1.2 (Upcoming)

### Bug fixes
- Fixed bug in ``pynwb.testing.mock.file.mock_NWBFile`` to identifier UUID to string. @oruebel
[#1557](https://github.com/NeurodataWithoutBorders/pynwb/pull/1557)

## PyNWB 2.1.1 (September 1, 2022)

### Documentation and tutorial enhancements:
Expand Down
2 changes: 1 addition & 1 deletion src/pynwb/testing/mock/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def mock_NWBFile(
):
return NWBFile(
session_description=session_description,
identifier=identifier or uuid4(),
identifier=identifier or str(uuid4()),
session_start_time=session_start_time,
subject=subject or mock_Subject(),
**kwargs
Expand Down

0 comments on commit 787afc7

Please sign in to comment.