Skip to content

Commit

Permalink
Update tests to be runnable from Imaris.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarpon committed Dec 19, 2019
1 parent 6794274 commit 4dca43e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 503 deletions.
23 changes: 11 additions & 12 deletions test/HelloWorldXT.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
# Hello World! XT example
#
# <CustomTools>
# <Menu>
# <Submenu name="ImarisXT course">
# <Item name="Hello World!" icon="Python">
# <Command>PythonXT::HelloWorldXT(#i)</Command>
# </Item>
# </Submenu>
# </Menu>
# <Menu>
# <Item name="pIceImarisConnector: Test Hello World!" icon="Python3" tooltip="Test function for pIceImarisConnector.">
# <Command>Python3XT::HelloWorldXT(%i)</Command>
# </Item>
# </Menu>
# </CustomTools>

from pIceImarisConnector import pIceImarisConnector
import Tkinter
import tkinter
import time

def HelloWorldXT(aImarisId):

# Instantiate an IceImarisConnector object
conn = pIceImarisConnector(aImarisId)

# Display version info in a dialog
top = Tkinter.Tk()
top = tkinter.Tk()
top.title("Hello World!")
l = Tkinter.Label(top,
l = tkinter.Label(top,
text = '... from pIceImarisConnector ' + conn.version +
' and ' + conn.mImarisApplication.GetVersion())
l.pack()
top.mainloop()

time.sleep(5)
10 changes: 9 additions & 1 deletion test/TestPIceOne.py → test/TestPIcePyramidalCell.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# <CustomTools>
# <Menu>
# <Item name="pIceImarisConnector: Test PyramidalCell" icon="Python3" tooltip="Test function for pIceImarisConnector using the PyramidalCell demo dataset.">
# <Command>Python3XT::PyramidalCell(%i)</Command>
# </Item>
# </Menu>
# </CustomTools>

import os
import numpy as np

from pIceImarisConnector import pIceImarisConnector

def TestPIceOne(aImarisId):
def PyramidalCell(aImarisId):

# Instantiate the pIceImarisConnector object
conn = pIceImarisConnector(aImarisId)
Expand Down
10 changes: 9 additions & 1 deletion test/TestPIceTwo.py → test/TestPIceSwimmingAlgae.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# <CustomTools>
# <Menu>
# <Item name="pIceImarisConnector: Test SwimmingAlgae" icon="Python3" tooltip="Test function for pIceImarisConnector using the SwimmingAlgae demo dataset.">
# <Command>Python3XT::TestPIceSwimmingAlgae(%i)</Command>
# </Item>
# </Menu>
# </CustomTools>

import os
import numpy as np

from pIceImarisConnector import pIceImarisConnector

def TestPIceTwo(aImarisId):
def TestPIceSwimmingAlgae(aImarisId):

# Instantiate the pIceImarisConnector object
conn = pIceImarisConnector(aImarisId)
Expand Down
Loading

0 comments on commit 4dca43e

Please sign in to comment.