File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1212
1313
1414from collections import defaultdict
15+ from importlib .resources import files
1516from io import StringIO
1617import json
1718import jsonschema
1819from microhapulator import __version__
1920from microhapulator import open as mhopen
2021from microhapulator .happer .mutate import mutate
2122from numpy .random import choice
22- from pkg_resources import resource_filename
2323import pandas as pd
2424from pathlib import Path
2525import sys
@@ -32,7 +32,7 @@ class RandomMatchError(ValueError):
3232
3333
3434def load_schema ():
35- with mhopen (resource_filename ("microhapulator" , "data/profile-schema.json" ) , "r" ) as fh :
35+ with mhopen (files ("microhapulator" ) / "data/profile-schema.json" , "r" ) as fh :
3636 return json .load (fh )
3737
3838
You can’t perform that action at this time.
0 commit comments