Skip to content

Commit

Permalink
fix namespace error
Browse files Browse the repository at this point in the history
  • Loading branch information
not-a-feature committed Mar 12, 2024
1 parent 8982d1c commit f04c1d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tajimas_d/_tajimas_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
import argparse

try:
from miniFasta import fasta_object
from miniFasta import fasta_object, read
except ModuleNotFoundError:
# Import as submodule of the bfx suite.
from ....miniFasta.src.miniFasta import fasta_object # type: ignore
from ....miniFasta.src.miniFasta import fasta_object, read # type: ignore

from sys import argv

Expand Down Expand Up @@ -243,7 +243,7 @@ def parse_args(args):
def _main_cli(args):
args = parse_args(args)
# Load sequences
sequences = [mf.body for mf in miniFasta.read(args.path)]
sequences = [mf.body for mf in read(args.path)]

# Compute
if args.tajima or not (args.pi or args.watterson):
Expand Down

0 comments on commit f04c1d8

Please sign in to comment.