Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mu-map
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tamino Huxohl
mu-map
Commits
e3597787
Commit
e3597787
authored
2 years ago
by
Tamino Huxohl
Browse files
Options
Downloads
Patches
Plain Diff
apply refactoring of a name change
parent
fbe2deeb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mu_map/polar_map/prepare.py
+7
-6
7 additions, 6 deletions
mu_map/polar_map/prepare.py
with
7 additions
and
6 deletions
mu_map/polar_map/prepare.py
+
7
−
6
View file @
e3597787
...
@@ -2,7 +2,7 @@ import argparse
...
@@ -2,7 +2,7 @@ import argparse
import
os
import
os
from
typing
import
List
from
typing
import
List
from
mu_map.file.dicom
import
dcm_type
from
mu_map.file.dicom
import
DICOM
def
get_files_recursive
(
_dir
:
str
)
->
List
[
str
]:
def
get_files_recursive
(
_dir
:
str
)
->
List
[
str
]:
...
@@ -24,19 +24,19 @@ def get_files_recursive(_dir: str) -> List[str]:
...
@@ -24,19 +24,19 @@ def get_files_recursive(_dir: str) -> List[str]:
return
files
return
files
def
is_scatter_corrected
(
dcm
:
dcm_type
)
->
bool
:
def
is_scatter_corrected
(
dcm
:
DICOM
)
->
bool
:
return
not
(
"
NoSC
"
in
dcm
.
SeriesDescription
)
return
not
(
"
NoSC
"
in
dcm
.
SeriesDescription
)
def
is_attenuation_corrected
(
dcm
:
dcm_type
)
->
bool
:
def
is_attenuation_corrected
(
dcm
:
DICOM
)
->
bool
:
return
not
(
"
NoAC
"
in
dcm
.
SeriesDescription
)
return
not
(
"
NoAC
"
in
dcm
.
SeriesDescription
)
def
shows_segments
(
dcm
:
dcm_type
)
->
bool
:
def
shows_segments
(
dcm
:
DICOM
)
->
bool
:
return
"
PolarMapSeg
"
in
dcm
.
SeriesDescription
return
"
PolarMapSeg
"
in
dcm
.
SeriesDescription
def
get_type
(
dcm
:
dcm_type
)
->
str
:
def
get_type
(
dcm
:
DICOM
)
->
str
:
description
=
dcm
.
SeriesDescription
.
lower
()
description
=
dcm
.
SeriesDescription
.
lower
()
if
"
syn
"
in
description
:
if
"
syn
"
in
description
:
return
"
synthetic
"
return
"
synthetic
"
...
@@ -65,7 +65,7 @@ if __name__ == "__main__":
...
@@ -65,7 +65,7 @@ if __name__ == "__main__":
from
mu_map.data.prepare
import
get_protocol
from
mu_map.data.prepare
import
get_protocol
from
mu_map.data.prepare
import
headers
as
meta_headers
from
mu_map.data.prepare
import
headers
as
meta_headers
from
mu_map.file.dicom
import
load_dcm
,
DCM_TAG_PIXEL_SCALE_FACTOR
,
dcm_type
from
mu_map.file.dicom
import
load_dcm
,
DCM_TAG_PIXEL_SCALE_FACTOR
,
DICOM
from
mu_map.logging
import
add_logging_args
,
get_logger_by_args
from
mu_map.logging
import
add_logging_args
,
get_logger_by_args
parser
=
argparse
.
ArgumentParser
(
parser
=
argparse
.
ArgumentParser
(
...
@@ -242,3 +242,4 @@ if __name__ == "__main__":
...
@@ -242,3 +242,4 @@ if __name__ == "__main__":
data
=
data
.
sort_values
(
by
=
[
headers
.
id
,
headers
.
file
])
data
=
data
.
sort_values
(
by
=
[
headers
.
id
,
headers
.
file
])
data
.
to_csv
(
args
.
csv
,
index
=
False
)
data
.
to_csv
(
args
.
csv
,
index
=
False
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment