Skip to content

Commit

Permalink
TST: Remove ExperimentA tests and resources
Browse files Browse the repository at this point in the history
We only use the (larger) ExperimentB tests instead, since these
are better. It takes a lot longer to run both ExperimentA and
ExperimentB, so we just run ExperimentB.
  • Loading branch information
scottclowe committed Jun 25, 2021
1 parent 5d837df commit 80ce979
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 39 deletions.
Binary file removed fissa/tests/resources/a/expected_py2.npz
Binary file not shown.
Binary file removed fissa/tests/resources/a/expected_py3.npz
Binary file not shown.
Binary file removed fissa/tests/resources/a/images/AVG_A01_R1_small.h5
Binary file not shown.
Binary file removed fissa/tests/resources/a/images/AVG_A01_R1_small.tif
Binary file not shown.
Binary file removed fissa/tests/resources/a/new/AVG_A01_R1_small.roi
Binary file not shown.
6 changes: 0 additions & 6 deletions fissa/tests/resources/a/new/AVG_A01_R1_small.txt

This file was deleted.

Binary file removed fissa/tests/resources/a/new/composite-brush.roi
Binary file not shown.
Binary file removed fissa/tests/resources/a/new/ellipse2-flat.roi
Binary file not shown.
Binary file removed fissa/tests/resources/a/new/ellipse2.roi
Binary file not shown.
Binary file removed fissa/tests/resources/a/new/selection-brush.roi
Binary file not shown.
Binary file removed fissa/tests/resources/a/rois.zip
Binary file not shown.
Binary file removed fissa/tests/resources/a/rois/01.roi
Binary file not shown.
9 changes: 0 additions & 9 deletions fissa/tests/resources/a/rois/01.txt

This file was deleted.

24 changes: 0 additions & 24 deletions fissa/tests/test_core.py
Expand Up @@ -839,30 +839,6 @@ def test_func_deltaf_nofreq(self):
core.run_fissa(image_path, roi_path, self.output_dir, return_deltaf=True)


class TestExperimentA(BaseTestCase, ExperimentTestMixin):
"""Test core on Experiment A, which has 1 roi and 1 TIFF."""

def __init__(self, *args, **kwargs):
super(TestExperimentA, self).__init__(*args, **kwargs)
ExperimentTestMixin.__init__(self)

self.resources_dir = os.path.join(self.test_directory, "resources", "a")
self.images_dir = os.path.join(self.resources_dir, "images")
self.image_names = ["AVG_A01_R1_small.tif"]
self.image_shape = (8, 17)
self.fs = 1
self.roi_zip_path = os.path.join(self.resources_dir, "rois.zip")
self.roi_paths = [os.path.join("rois", r) for r in ["01.roi"]]

self.expected = np.load(
os.path.join(
self.resources_dir,
"expected_py{}.npz".format(sys.version_info.major),
),
allow_pickle=True,
)


class TestExperimentB(BaseTestCase, ExperimentTestMixin):
"""Test core on Experiment B, which has 2 ROIs and 3 TIFFs."""

Expand Down

0 comments on commit 80ce979

Please sign in to comment.