Skip to content
Snippets Groups Projects
Commit 8f553d06 authored by jlaura's avatar jlaura Committed by GitHub
Browse files

Merge pull request #79 from jlaura/master

Fixes missing import in io_json for datetime objs
parents 82b01a46 370032be
No related branches found
No related tags found
No related merge requests found
import json
import numpy as np
import datetime
class NumpyEncoder(json.JSONEncoder):
def default(self, obj):
......@@ -9,7 +9,7 @@ class NumpyEncoder(json.JSONEncoder):
elif isinstance(obj, datetime.date):
return obj.isoformat()
return json.JSONEncoder.default(self, obj)
def read_json(inputfile):
"""
Read the input json file into a python dictionary.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment