FIx loading pairs-list

This commit is contained in:
Matthias
2019-08-21 06:58:56 +02:00
parent eebf39a1df
commit 75b2db4424
2 changed files with 11 additions and 8 deletions

View File

@@ -6,6 +6,7 @@ import logging
import re
from datetime import datetime
from pathlib import Path
from typing.io import IO
import numpy as np
import rapidjson
@@ -60,7 +61,7 @@ def file_dump_json(filename: Path, data, is_zip=False) -> None:
logger.debug(f'done json to "{filename}"')
def json_load(datafile):
def json_load(datafile: IO):
"""
load data with rapidjson
Use this to have a consistent experience,