Skip to content

Commit

Permalink
Fixes some formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaroberts committed Feb 21, 2024
1 parent 54e783b commit 765af04
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nii2dcm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def cli(args=None):
parser.add_argument("input_file", type=str, help="[.nii/.nii.gz] input NIfTI file")
parser.add_argument("output_dir", type=str, help="[directory] output DICOM path")
parser.add_argument(
"-d","--dicom_type",
"-d", "--dicom_type",
type=str,
help="[string] type of DICOM. Available types: MR, SVR."
)
Expand Down
2 changes: 1 addition & 1 deletion nii2dcm/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import dunamai as _dunamai
__version__ = _dunamai.get_version("nii2dcm", third_choice=_dunamai.Version.from_any_vcs).serialize()
__version__ = _dunamai.get_version("nii2dcm", third_choice=_dunamai.Version.from_any_vcs).serialize()
3 changes: 1 addition & 2 deletions nii2dcm/dcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import pydicom as pyd
from pydicom.dataset import FileDataset, FileMetaDataset

from nii2dcm.utils import dcm_dictionary_update
from nii2dcm.modules.patient import Patient
from nii2dcm.modules.general_study import GeneralStudy
from nii2dcm.modules.patient_study import PatientStudy
Expand Down Expand Up @@ -67,7 +66,7 @@ def __init__(self, filename=nii2dcm_temp_filename):

"""
Set Dicom Date/Time
Important: doing this once sets all Instances/Series/Study creation dates and times to the same values. Whereas,
Important: doing this once sets all Instances/Series/Study creation dates and times to the same values. Whereas,
doing this within the Modules would every so slightly offset the times
"""
# TODO shift to utils.py and propagate to Modules, or, create method within this Dicom class
Expand Down
4 changes: 2 additions & 2 deletions nii2dcm/modules/mr_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def __init__(self):
# https://dicom.nema.org/medical/Dicom/current/output/chtml/part03/sect_C.8.3.html#sect_C.8.3.1.1.1
# For now, will omit thereby inheriting parent value
# self.ds.ImageType = ''

self.ds.SamplesPerPixel = 1

# PhotometricInterpretation
# TODO: decide MONOCHROME1 or MONOCHROME2 as default
# https://dicom.nema.org/medical/Dicom/current/output/chtml/part03/sect_C.7.6.3.html#sect_C.7.6.3.1.2
Expand Down

0 comments on commit 765af04

Please sign in to comment.