Skip to content

Commit 62e65aa

Browse files
committed
Remove old json decode function
1 parent 7dfc542 commit 62e65aa

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/pyfrost/kmer_index.py

-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"""
77

88
from __future__ import annotations
9-
import json
109
import logging
1110
from collections import defaultdict
1211
from typing import TextIO, NamedTuple
@@ -23,13 +22,6 @@ class KmerPosition(NamedTuple):
2322
pos: int
2423

2524

26-
def json_decode(kv_pairs):
27-
if kv_pairs[0][0] in {"contig_ids", "index"}:
28-
return dict(kv_pairs)
29-
else:
30-
return {Kmer(k): KmerPosition(*v) for k, v in kv_pairs.items()}
31-
32-
3325
class KmerPosIndex:
3426
def __init__(self):
3527
self.contig_ids = []

0 commit comments

Comments
 (0)