Skip to content

Commit 6fb9ec0

Browse files
LennyN95Copilot
andauthored
* Import v2 from https://github.com/LennyN95/SlicerMHubRunner.git * Remove v1 leftovers; align tree with repoB * Update README.md Co-authored-by: Copilot <[email protected]> * fix: close opened file --------- Co-authored-by: Copilot <[email protected]>
1 parent 52d8192 commit 6fb9ec0

File tree

26 files changed

+3272
-1482
lines changed

26 files changed

+3272
-1482
lines changed

.DS_Store

8 KB
Binary file not shown.

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI (Lint)
2+
3+
on:
4+
# Triggers the workflow on push or pull request events
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
lint:
16+
name: Lint
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20+
21+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
22+
with:
23+
python-version: "3.12"
24+
25+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

.gitignore

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,2 @@
1-
.DS_STORE
2-
__pycache__
3-
.ipynb_checkpoints/
4-
.vscode/*
5-
6-
MRunner/docker_info_example.json
7-
MRunner/Resources/SampleData/*
8-
MRunner/ymldicomseg/meta2.json
9-
MRunner/ymldicomseg/test.ipynb
10-
MRunner/ymldicomseg/ymldicomseg.py
11-
MRunner/Resources/meta.yml
12-
MRunner/ymldicomseg/meta.yml
13-
MRunner/ymldicomseg/README.md
14-
MRunner/ymldicomseg/segclass.test.py
1+
MHubRunner/__pycache__/MHubRunner.cpython-39.pyc
2+
notes.md

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: "v6.0.0"
4+
hooks:
5+
- id: check-added-large-files
6+
args: ["--maxkb=1024"]
7+
- id: check-case-conflict
8+
- id: check-merge-conflict
9+
- id: check-symlinks
10+
- id: check-yaml
11+
- id: debug-statements
12+
- id: end-of-file-fixer
13+
- id: mixed-line-ending
14+
- id: trailing-whitespace
15+
16+
- repo: https://github.com/asottile/pyupgrade
17+
rev: v3.21.2
18+
hooks:
19+
- id: pyupgrade
20+
args: [--py312-plus]

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: Attach",
9+
"type": "python",
10+
"request": "attach",
11+
"port": 5678,
12+
"host": "localhost"
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.analysis.typeCheckingMode": "basic"
3+
}

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ set(EXTENSION_CATEGORY "Examples")
99
set(EXTENSION_CONTRIBUTORS "Leonard Nürnberg (AIM, Mass General Brigham)")
1010
set(EXTENSION_DESCRIPTION "MHub Runner is a 3D Slicer plugin that seamlessly integrates Deep Learning models from the Medical Hub repository (MHub) into 3D Slicer.")
1111
set(EXTENSION_ICONURL "https://mhub.ai/slicer/SlicerMHubRunner.png")
12-
set(EXTENSION_SCREENSHOTURLS "https://mhub.ai/slicer/image01.png https://mhub.ai/slicer/image02.png https://mhub.ai/slicer/image03.png")
13-
set(EXTENSION_DEPENDS "NA") # Specified as a list or "NA" if no dependencies
12+
set(EXTENSION_SCREENSHOTURLS "https://mhub.ai/slicer/image01.png")
13+
set(EXTENSION_DEPENDS "QuantitativeReporting") # list of dependencies, space separated, e.g., '"d1" "d2" ...'
1414

1515
#-----------------------------------------------------------------------------
1616
# Extension dependencies
@@ -19,7 +19,7 @@ include(${Slicer_USE_FILE})
1919

2020
#-----------------------------------------------------------------------------
2121
# Extension modules
22-
add_subdirectory(MRunner)
22+
add_subdirectory(MHubRunner)
2323
## NEXT_MODULE
2424

2525
#-----------------------------------------------------------------------------

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 MHub.ai
3+
Copyright (c) 2025 Leonard Nürnberg
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MHubRunner/.DS_Store

6 KB
Binary file not shown.
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
set(MODULE_NAME MRunner)
2+
set(MODULE_NAME MHubRunner)
33

44
#-----------------------------------------------------------------------------
55
set(MODULE_PYTHON_SCRIPTS
@@ -9,9 +9,6 @@ set(MODULE_PYTHON_SCRIPTS
99
set(MODULE_PYTHON_RESOURCES
1010
Resources/Icons/${MODULE_NAME}.png
1111
Resources/UI/${MODULE_NAME}.ui
12-
Utils/__init__.py
13-
Utils/Models.py
14-
Resources/MHub/models.json
1512
)
1613

1714
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)