Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions python/imagej/tabulate_filepaths.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
import re
import os
import sys
from org.janelia.simview.klb import KLB

try: # try-except block allows users with default FIJI to run the script without KLB installation
from org.janelia.simview.klb import KLB
except ImportError:
print "Warning: KLB format unavailable"
KLB = None

from net.imglib2.img.display.imagej import ImageJFunctions as IL


Expand All @@ -35,8 +41,8 @@
base_path = None

# Laptop via sshfs
#txt_file = "/home/albert/zstore1/barnesc/LarvalScreen.txt"
#base_path = "/home/albert/zstore1/barnesc/flylight-backups/LarvalScreen/"
txt_file = "/Volumes/zfs/barnesc/flylight-backups/LarvalScreen/manifest.txt"
base_path = "/Volumes/zfs/barnesc/flylight-backups/LarvalScreen/"

# At LMB desktop:
#txt_file = "/home/albert/LarvalScreen.txt"
Expand Down Expand Up @@ -142,6 +148,8 @@ def actionPerformed(self, event):
def openImage():
print rel_path
if rel_path.endswith(".klb"):
if(KLB==None):
print "Cannot open KLB due to missing module"
try:
klb = KLB.newInstance()
img = klb.readFull(os.path.join(base_path, rel_path))
Expand Down