Skip to content

Commit

Permalink
revert extraneous changes
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Jul 24, 2022
1 parent 6500ed9 commit 5b65c1d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
26 changes: 13 additions & 13 deletions src/sourmash/index/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@
from typing import NamedTuple, Optional, TypedDict, TYPE_CHECKING
import weakref

from ..search import (make_jaccard_search_query,
make_gather_query
calc_threshold_from_bp)
from ..manifest import CollectionManifest
from ..logging import debug_literal
from ..signature import load_signatures, save_signatures
from .._lowlevel import ffi, lib
from ..utils import RustObject, rustcall, decode_str, encode_str
from .. import SourmashSignature
from ..picklist import SignaturePicklist
from ..minhash import (flatten_and_downsample_scaled,
flatten_and_downsample_num,
flatten_and_intersect_scaled)
from sourmash.search import (make_jaccard_search_query,
make_containment_query,
calc_threshold_from_bp)
from sourmash.manifest import CollectionManifest
from sourmash.logging import debug_literal
from sourmash.signature import load_signatures, save_signatures
from sourmash._lowlevel import ffi, lib
from sourmash.utils import RustObject, rustcall, decode_str, encode_str
from sourmash import SourmashSignature
from sourmash.picklist import SignaturePicklist
from sourmash.minhash import (flatten_and_downsample_scaled,
flatten_and_downsample_num,
flatten_and_intersect_scaled)

if TYPE_CHECKING:
from typing_extensions import Unpack
Expand Down
3 changes: 1 addition & 2 deletions src/sourmash/sbt_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,13 @@ def load(self, path):
class ZipStorage(RustObject, Storage):

__dealloc_func__ = lib.zipstorage_free
__inner = None

def __init__(self, path, *, mode="r"):
path = os.path.abspath(path)
if mode == "w":
self.__inner = _RwZipStorage(path)
else:
self.__inner = None
path = os.path.abspath(path)
self._objptr = rustcall(lib.zipstorage_new, to_bytes(path), len(path))

@staticmethod
Expand Down
2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ commands = pytest \
--cov-config "{toxinidir}/tox.ini" \
--cov-report= \
--junitxml {toxworkdir}/junit.{envname}.xml \
-n 4 \
{posargs:doc tests}


[testenv:pypy3]
deps =
pip >= 19.3.1
Expand Down

0 comments on commit 5b65c1d

Please sign in to comment.