Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always return a float to ensure it can be JSON-serialized #9

Merged
merged 1 commit into from
Jun 18, 2019
Merged

Always return a float to ensure it can be JSON-serialized #9

merged 1 commit into from
Jun 18, 2019

Conversation

chisvi
Copy link

@chisvi chisvi commented Dec 31, 2018

Currently method set_progress from ProgressRecorder class may return a Decimal object, which is not serializable by Python's default json serializer. Simply modified the method to always return a float, which can be always serialized.

@czue
Copy link
Owner

czue commented Jun 18, 2019

Makes sense, thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants