Skip to content

Commit

Permalink
test analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
tathey1 committed Jan 4, 2024
1 parent d05ab00 commit 35a1b2b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions brainlit/BrainLine/tests/test_analyze_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def test_slicetolabels(ontology_path, fixes_file):
new_slice, np.array([[0, 997, 315], [315, 315, 315]], dtype="int")
)

new_slice, _, half_width = sd._slicetolabels(slice, fold_on=True, atlas_level=5)
assert half_width == 2
assert_array_equal(new_slice, np.array([[0, 997], [315, 315]], dtype="int"))


# SomaDistribution

Expand Down Expand Up @@ -78,6 +82,17 @@ def test_SomaDistribution(ontology_path):
)


def test_SomaDistribution_shuffle_bootstrap(ontology_path):
sd = SomaDistribution(
["pytest", "pytest2"],
data_file=soma_data_file,
ontology_file=ontology_path,
show_plots=False,
bootstrap=1,
shuffle=True,
)


# Other methods


Expand Down

0 comments on commit 35a1b2b

Please sign in to comment.