Skip to content

Set reject_bytes=False for ujson >= 3#917

Merged
dwhswenson merged 1 commit into
openpathsampling:masterfrom
sroet:support_ujson_ver_3
Jun 4, 2020
Merged

Set reject_bytes=False for ujson >= 3#917
dwhswenson merged 1 commit into
openpathsampling:masterfrom
sroet:support_ujson_ver_3

Conversation

@sroet

@sroet sroet commented Jun 4, 2020

Copy link
Copy Markdown
Member

Since ujson version 3.0.0 tests based on openpathsampling saving start failing.

ujson.dump() now has default keyword reject_bytes=True which leads to issues for dumping CV's (which contain bytestrings).

I had to do some import if statements as well as this keyword is not valid for ujson = 2.x (And I supposed you still wanted to support that version.)

@dwhswenson dwhswenson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me; thanks for the fix! I guess I'm glad to see that ujson is no longer dormant -- a while ago, I thought it was abandoned, but looks like someone has brought it back to active development.

@dwhswenson dwhswenson merged commit 926ffdd into openpathsampling:master Jun 4, 2020
@sroet sroet deleted the support_ujson_ver_3 branch June 4, 2020 11:52
@hejung hejung mentioned this pull request Jun 23, 2020
@dwhswenson dwhswenson mentioned this pull request Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants