This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Creates links to DICOM files.""" | |
import sys | |
import os | |
import argparse | |
import dicom | |
from dicom.filereader import InvalidDicomError | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
import logging | |
HEADER_FMT = "Call stack at %s, line %d in function %s, frames %d to %d of %d:" | |
"""The log header message formatter.""" | |
STACK_FMT = "%s, line %d in function %s." | |
"""The log stack message formatter.""" | |
def log_stack(logger=None, limit=None, start=0): |