Skip to content

Commit

Permalink
tests: move identifier test to single tif format (did not work probab…
Browse files Browse the repository at this point in the history
…ly due to zipfile hash)
  • Loading branch information
paulmueller committed Jun 20, 2018
1 parent f403227 commit 4a7ccf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions qpformat/file_formats/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ def _identifier_meta(self):
def identifier(self):
"""Return a unique identifier for the given data set"""
if self.background_identifier is None:
return self._identifier_data()
idsum = self._identifier_data()
else:
idsum = hash_obj([self._identifier_data(),
self.background_identifier])
return idsum[:5]
return idsum

def get_identifier(self, idx):
"""Return an identifier for the data at index `idx`"""
Expand Down
10 changes: 0 additions & 10 deletions tests/test_series_zip_tif_holo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ def test_basic():
pass


def test_identifier():
path = setup_test_zip(1)
ds = qpformat.load_data(path, holo_kw={"sideband": 1})
assert ds.identifier == "641ca"
try:
path.unlink()
except OSError:
pass


def test_load_data():
num = 5
path = setup_test_zip(num)
Expand Down

0 comments on commit 4a7ccf4

Please sign in to comment.