Skip to content

Commit

Permalink
last period
Browse files Browse the repository at this point in the history
  • Loading branch information
tathey1 committed May 20, 2023
1 parent 871783f commit 0397adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brainlit/BrainLine/apply_ilastik.py
Expand Up @@ -350,7 +350,7 @@ def examine_threshold(
name=f"nonsoma false positive area: {area}",
)
elif object_type == "axon":
fname_lab = im_fname.split(".")[0] + "-image_3channel_Labels.h5"
fname_lab = im_fname[: im_fname.rfind(".")] + "-image_3channel_Labels.h5"
f = h5py.File(fname_lab, "r")
gt = f.get("exported_data")
gt = gt[0, :, :, :]
Expand Down Expand Up @@ -587,7 +587,7 @@ def _process_chunk(
)
# subprocess.run(["/Applications/ilastik-1.3.3post3-OSX.app/Contents/ilastik-release/run_ilastik.sh", "--headless", "--project=/Users/thomasathey/Documents/mimlab/mouselight/ailey/benchmark_formal/brain3/matt_benchmark_formal_brain3.ilp", fname], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

fname_prob = str(fname).split(".")[0] + "_Probabilities.h5"
fname_prob = str(fname)[: str(fname).rfind(".")] + "_Probabilities.h5"
with h5py.File(fname_prob, "r") as f:
pred = f.get("exported_data")
if object_type == "soma":
Expand Down

0 comments on commit 0397adb

Please sign in to comment.