Skip to content

Commit

Permalink
fixed up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Aug 6, 2024
1 parent e6aff42 commit 5967586
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 14 deletions.
8 changes: 4 additions & 4 deletions tests/test_bet.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from pathlib import Path
import tempfile
from arcana.common import Clinical
from frametree.common import Clinical
from fileformats.medimage import NiftiGz
from arcana.common import DirTree
from frametree.common import DirTree
from arcana.testing.data.blueprint import (
TestDatasetBlueprint,
FileSetEntryBlueprint as FileBP,
)
from arcana.core.deploy.command import ContainerCommand
from pydra2app.core.command import ContainerCommand
from medimages4tests.mri.neuro.t1w import get_image


Expand All @@ -33,7 +33,7 @@
saved_dataset = bp.make_dataset(DirTree(), dataset_id, name="", source_data=source_dir)

command_spec = ContainerCommand(
task="arcana.common:shell",
task="common:shell",
row_frequency=Clinical.session,
inputs=[
{
Expand Down
8 changes: 4 additions & 4 deletions tests/test_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import functools
from fileformats.generic import Directory
from fileformats.application import Zip
from arcana.common import DirTree
from arcana.testing import TestDataSpace
from arcana.testing.data.blueprint import (
from frametree.common import DirTree
from frametree.testing import TestDataSpace
from frametree.testing.blueprint import (
TestDatasetBlueprint,
FileSetEntryBlueprint as FileBP,
)
from arcana.core.deploy.command import ContainerCommand
from pydra2app.core.command import ContainerCommand


bp = TestDatasetBlueprint(
Expand Down
58 changes: 52 additions & 6 deletions tutorial/ais-pipelines-tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1244,20 +1244,48 @@
"id": "779803ec-756d-4369-b763-3e1a90045fbc",
"metadata": {},
"source": [
"##"
"### Create a test pull-request on GitHub"
]
},
{
"cell_type": "markdown",
"id": "2ecf3933-1360-42a4-acf1-eacefea46502",
"metadata": {},
"source": [
"Commit and your changes"
]
},
{
"cell_type": "code",
"execution_count": 44,
"id": "686d7741-a77e-43da-b175-237f3ba9bef5",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[detached HEAD e6aff42] added specification for Freesurfer's mri_convert\n",
" 1 file changed, 32 insertions(+), 7 deletions(-)\n"
]
}
],
"source": [
"git commit -am\"added specification for Freesurfer's mri_convert\"\n",
"git push"
]
},
{
"cell_type": "markdown",
"id": "dba5c217",
"metadata": {},
"source": [
"### Create a test pull-request on GitHub\n",
"Create the pull-request on GitHub\n",
"\n",
"1. Navigate to your fork of the AIS community pipelines repo, https://github.com/your-github-username/pipelines-community\n",
"1. Select \"Pull requests\" in the top ribbon\n",
"1. Click the \"New pull request\" button\n",
"1. Select \"base:main\" <- \"your-fork:my-mri-synthstrip\" from the drop-down lists\n",
"1. Select \"base:main\" <- \"your-fork:my-mri-convert\" from the drop-down lists\n",
"1. Click \"Create pull request\"\n",
"\n",
"This will then start the process for the pipeline to be accepted and deployed\n",
Expand All @@ -1276,8 +1304,26 @@
"metadata": {},
"source": [
"## Design your own pipeline\n",
"1. Create a new Git branch (`git checkout main; git checkout -b my-own-pipeline`)\n",
"1. Bootstrap your new specification\n",
"1. Create and switch to a new Git branch (you will notice that your mri-convert changes will disappear)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3fea2b35-755c-4bef-94b0-4434b40e5abb",
"metadata": {},
"outputs": [],
"source": [
"git checkout main\n",
"git checkout -b my-own-pipeline"
]
},
{
"cell_type": "markdown",
"id": "030a88e8-dd59-4de3-8411-58b042135109",
"metadata": {},
"source": [
"2. Bootstrap your new specification\n",
"1. Build your specifcation\n",
"1. Test your specification\n",
"1. Create a pull-request on GitHub to add your pipeline to the central repository, https://github.com/Australian-Imaging-Service/pipelines-community"
Expand All @@ -1286,7 +1332,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "dba95bec",
"id": "8672c17e-186a-409f-846f-220844c7eeb3",
"metadata": {},
"outputs": [],
"source": []
Expand Down

0 comments on commit 5967586

Please sign in to comment.