30 lines
691 B
Python
30 lines
691 B
Python
|
|
import sys
|
|
import os
|
|
|
|
from PyQt5.QtWidgets import QApplication, QFileDialog
|
|
|
|
from Controller import Controller
|
|
from SpikeRedetectGui import SpikeRedetectGui
|
|
|
|
test_file = "../neuronModel/data/final_sam/2010-11-08-al-invivo-1"
|
|
|
|
|
|
def main():
|
|
app = QApplication(sys.argv)
|
|
data_path = QFileDialog.getExistingDirectory(caption='Select a directory')
|
|
if os.path.isdir(data_path):
|
|
data_provider = Controller(data_path)
|
|
else:
|
|
print("Cell loading didn't work!\n Cell folder: {}".format(data_path))
|
|
return
|
|
#data_provider = Controller(test_file)
|
|
ex = SpikeRedetectGui(data_provider)
|
|
sys.exit(app.exec_())
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|