Skip to content

Commit

Permalink
input
Browse files Browse the repository at this point in the history
  • Loading branch information
luiztauffer committed Nov 19, 2024
1 parent fd6335f commit 3e3c2a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions voluseg/VolusegProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ def run(
import lindi
import voluseg

# Load input file
input = context.input
url = input.get_url()
assert url

if input.file_base_name.endswith('.lindi.json') or input.file_base_name.endswith('.lindi.tar'):
f = lindi.LindiH5pyFile.from_lindi_file(url)
else:
f = lindi.LindiH5pyFile.from_hdf5_file(url)

# set and save parameters
parameters0 = voluseg.parameter_dictionary()
parameters0["dir_ants"] = "/ants-2.5.3/bin/"
Expand Down
1 change: 1 addition & 0 deletions voluseg/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from dendro.sdk import App
from VolusegProcessor import VolusegProcessor


app = App(
app_name='voluseg',
description='Voluseg processors'
Expand Down

0 comments on commit 3e3c2a6

Please sign in to comment.