Skip to content

Commit 77ff4c6

Browse files
committed
mhopen
1 parent 48e101a commit 77ff4c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

microhapulator/cli/dist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313

1414
import json
15+
from microhapulator import open as mhopen
1516
import microhapulator.api as mhapi
1617
from microhapulator.profile import Profile
1718

@@ -35,5 +36,5 @@ def main(args):
3536
data = {
3637
"hamming_distance": d,
3738
}
38-
with open(args.out, "w") as fh:
39+
with mhopen(args.out, "w") as fh:
3940
json.dump(data, fh, indent=4)

0 commit comments

Comments
 (0)