Skip to content

Commit

Permalink
first deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
pdeman authored Feb 1, 2018
1 parent 5bb0554 commit 5e92093
Show file tree
Hide file tree
Showing 58 changed files with 34,757 additions and 0 deletions.
374 changes: 374 additions & 0 deletions DeetoMaison.py

Large diffs are not rendered by default.

123 changes: 123 additions & 0 deletions DeetoMaison.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>802</width>
<height>349</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QWidget" name="verticalLayoutWidget">
<property name="geometry">
<rect>
<x>-1</x>
<y>9</y>
<width>801</width>
<height>291</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Deeto Maison</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Electrode List</string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="listViewElectrodes"/>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QPushButton" name="pushButtonOk">
<property name="text">
<string>Ok</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonElecAppear">
<property name="text">
<string>Print Electrodes</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonRemoveElec">
<property name="text">
<string>Remove Electrode</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QPushButton" name="pushButtonCheckElec">
<property name="geometry">
<rect>
<x>198</x>
<y>310</y>
<width>151</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Check all electrodes</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonUncheckElec">
<property name="geometry">
<rect>
<x>380</x>
<y>310</y>
<width>171</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Uncheck all electrodes</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBoxSerpentins">
<property name="geometry">
<rect>
<x>671</x>
<y>310</y>
<width>101</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Serpentins?</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>
41 changes: 41 additions & 0 deletions Image Import.xpyqt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE XUPProject>
<!--
###########################################################################################
## Created using Monkey Studio v1.8.4.0b2 (1.8.4.0b2)
##
## Author : Manik Bhattacharjee <[email protected]>
## Project : Image Import
## FileName : Image Import.xpythonqt
## Date : 2012-07-12T17:52:52
## License : GPL
## Comment : Creating using Monkey Studio RAD
## Home Page :
##
## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
##
###########################################################################################
-->
<project version="1.1.0" name="Image Import">
<scope nested="false" name="XUPProjectSettings">
<variable operator="=" name="EDITOR" multiline="false">
<value content="PyQt"/>
</variable>
<variable name="MAIN_FILE" multiline="true">
<value content="ImageImport.py"/>
</variable>
</scope>
<variable operator="=" name="FORMS" multiline="true">
<file content="ImageImportUI.ui"/>
<file content="epilepsie-electrodes.ui"/>
</variable>
<variable operator="=" name="PYTHON_FILES" multiline="true">
<file content="ImageImport.py"/>
<file content="ImageImportWindow.py"/>
<file content="locateElectrodes.py"/>
<file content="prepareData.py"/>
<file content="editor.py"/>
<file content="externalprocesses.py"/>
<file content="dicomutilities.py"/>
</variable>
</project>
36 changes: 36 additions & 0 deletions ImageImport.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Import and register images in the database
#
# (c) Inserm U836 2012-2014 - Manik Bhattacharjee
#
# License GNU GPL v3
#


import sys

# import PyQt4 QtCore and QtGui modules
from PyQt4.QtCore import *
from PyQt4.QtGui import *

from ImageImportWindow import ImageImportWindow

if __name__ == '__main__':

# create application
app = QApplication(sys.argv)
app.setApplicationName('Image Import')

# create widget
w = ImageImportWindow()
w.setWindowTitle('Image Import - NOT FOR MEDICAL USAGE')
w.show()

# connection
QObject.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()'))
# Debug -> evite un pb entre ipython, pdb et qt
pyqtRemoveInputHook()
# execute application
sys.exit(app.exec_())
8 changes: 8 additions & 0 deletions ImageImport.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
cd /Users/admin/Softwares/BrainVISA-4.5/bin/
. /Users/admin/Softwares/BrainVISA-4.5/bin/bv_env.sh /Users/admin/Softwares/BrainVISA-4.5
cd /Users/admin/Documents/GIT/IntrAnatElectrodes/epilepsie/
echo "#############################################################################" >> intranat-imageImport-`whoami`.log
date >> intranat-imageImport-`whoami`.log
python ImageImport.py >> intranat-imageImport-`whoami`.log

Loading

0 comments on commit 5e92093

Please sign in to comment.