Skip to content

Commit

Permalink
WIP: fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rossant committed Dec 10, 2024
1 parent d317eef commit 5f28f8a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/iblphotometry_tests/test_plots.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# import sys
# import unittest
import unittest
import pandas as pd
from pathlib import Path

Expand Down Expand Up @@ -99,11 +98,11 @@ def test_class_plotsignalresponse(self):
trials = pd.read_parquet(self.paths['trials_table_kcenia_pqt'])
plotobj = plots.PlotSignalResponse()
plotobj.set_data(trials, processed_signal, times)
fig, axs = plotobj.set_fig_layout()
plotobj.plot_trialsort_psth(fig, axs)
fig, ax = plt.subplots(1, 1)
_, axs = plotobj.set_fig_layout()
plotobj.plot_trialsort_psth(axs)
_, ax = plt.subplots(1, 1)
plotobj.plot_processed_trialtick(ax)
plt.show()
# plt.show()
plt.close('all')

"""
Expand Down Expand Up @@ -210,8 +209,9 @@ def test_plot_event_tick(self):
# app.exec_()


# if __name__ == '__main__':
# suite = unittest.TestSuite()
# suite.addTest(TestPlotters("test_gui"))
# runner = unittest.TextTestRunner()
# runner.run(suite)
if __name__ == '__main__':
unittest.main()
# suite = unittest.TestSuite()
# suite.addTest(TestPlotters())
# runner = unittest.TextTestRunner()
# runner.run(suite)

0 comments on commit 5f28f8a

Please sign in to comment.