Skip to content

Commit

Permalink
Remove logger for dcm2bids_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Bedetti committed Feb 2, 2018
1 parent 1df2e62 commit a4afad1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dcm2bids/dcm2niix.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ class Dcm2niix(object):
"""
"""

def __init__(self, dicom_dir, bids_dir, participant=None):
def __init__(self, dicom_dir, bids_dir, participant=None, logger=True):
self.dicomDirs = dicom_dir
self.bidsDir = bids_dir
self.participant = participant
self.options = "-b y -ba y -z y -f '%3s_%f_%p_%t'"
self.sidecars = []
self.logger = logging.getLogger("dcm2bids")
if logger:
self.logger = logging.getLogger("dcm2bids")

@property
def outputDir(self):
Expand Down
4 changes: 3 additions & 1 deletion scripts/dcm2bids_helper
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def main():
args = get_arguments()
app = Dcm2niix(
dicom_dir=args.dicom_dir,
bids_dir=args.output_dir)
bids_dir=args.output_dir,
logger=False,
)
rsl = app.run()
print("Example in:")
print(os.path.join(args.output_dir, "tmp_dcm2bids", "helper"))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

DISTNAME = "dcm2bids"
DESCRIPTION = description
VERSION = "1.1.6"
VERSION = "1.1.7"
AUTHOR = "Christophe Bedetti"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/cbedetti/Dcm2Bids"
Expand Down

0 comments on commit a4afad1

Please sign in to comment.