Skip to content

Commit

Permalink
Results, removing y-ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Anirudh Lakra committed Mar 31, 2024
1 parent cdd9540 commit 33ba373
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions kymata/ippm/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ def draw(self,
plt.legend(handles=legend, loc='upper left')
plt.title(title)

# for some unknown reason, I can set the x-axis ticks to be off but if I try with
# the y-axis it ignores the changes :D
ax.set_ylim(min(hexel_y) - 0.1, max(hexel_y) + 0.1)
ax.set_yticklabels([])
ax.yaxis.set_visible(False)
Expand All @@ -86,7 +84,7 @@ def draw(self,
fig.set_figheight(figheight)
fig.set_figwidth(figwidth)

plt.show()
#plt.show()

def _make_bspline_paths(self, hexel_coordinate_pairs: List[List[Tuple[float, float]]]) -> List[List[np.array]]:
"""
Expand Down
8 changes: 4 additions & 4 deletions tests/test_ippm_data_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_causalityViolation_With_RightHemi_Should_Succeed():
'f1' : []
}

assert(causality_violation_score(test_hexels, test_hierarchy, 'rightHemisphere') == 0.5)
assert(causality_violation_score(test_hexels, test_hierarchy, 'rightHemisphere', ['f1']) == (0.25, 1, 4))

def test_causalityViolation_With_LeftHemi_Should_Succeed():
test_hexels = {
Expand All @@ -69,22 +69,22 @@ def test_causalityViolation_With_LeftHemi_Should_Succeed():
'f2' : ['f1'],
'f1' : []
}
assert(causality_violation_score(test_hexels, test_hierarchy, 'leftHemisphere') == 0.5)
assert(causality_violation_score(test_hexels, test_hierarchy, 'leftHemisphere', ['f1']) == (0.25, 1, 4))

def test_causalityViolation_With_SingleFunction_Should_Return0():
test_hexels = {'f1' : IPPMHexel('f1')}
test_hexels['f1'].left_best_pairings = [(50, 1e-50), (100, 1e-25)]
test_hierarchy = {'f1' : []}

assert(causality_violation_score(test_hexels, test_hierarchy, 'leftHemisphere') == 0)
assert(causality_violation_score(test_hexels, test_hierarchy, 'leftHemisphere', ['f1']) == (0, 0, 0))

def test_causalityViolation_With_SingleEdge_Should_Return0():
test_hexels = {'f1' : IPPMHexel('f1'), 'f2' : IPPMHexel('f2')}
test_hexels['f1'].left_best_pairings = [(50, 1e-50), (100, 1e-25)]
test_hexels['f2'].left_best_pairings = [(110, 1e-50)]
test_hierarchy = {'f2' : ['f1'], 'f1' : []}

assert(causality_violation_score(test_hexels, test_hierarchy, 'leftHemisphere') == 0)
assert(causality_violation_score(test_hexels, test_hierarchy, 'leftHemisphere', ['f1']) == (0, 0, 1))

def test_functionRecall_With_NoFuncs_Should_Return0():
test_hexels = {'f1' : IPPMHexel('f1'), 'f2': IPPMHexel('f2')}
Expand Down

0 comments on commit 33ba373

Please sign in to comment.