Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ matplotlib
cython==3.0a6
loky
typer
pyarrow
pyarrow
frozendict
4 changes: 4 additions & 0 deletions ridepy/extras/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from typing import Iterable
from pathlib import Path

from frozendict import frozendict

from ridepy.data_structures import TransportSpace
from ridepy.util.spaces_cython import TransportSpace as CyTransportSpace

Expand All @@ -29,6 +31,8 @@ class ParamsJSONEncoder(json.JSONEncoder):
"""

def default(self, obj):
if isinstance(obj, frozendict):
return dict(obj)
# request generator?
if isinstance(obj, type):
return f"{obj.__module__}.{obj.__qualname__}"
Expand Down
Loading