Skip to content

Commit

Permalink
BUG: args not global
Browse files Browse the repository at this point in the history
  • Loading branch information
dave3d committed Feb 22, 2024
1 parent 5556b28 commit 46fde77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dicom2stl.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def elapsedTime(start_time):
print(" %4.3f seconds" % dt)


def loadVolume(fname, tempDir=None, verbose=False):
def loadVolume(fname, tempDir=None, verbose=0):
modality = None
zipFlag = False
dirFlag = False
Expand Down Expand Up @@ -85,7 +85,7 @@ def loadVolume(fname, tempDir=None, verbose=False):
#
if zipFlag:
# Case for a zip file of images
if args.verbose:
if verbose:
print("zip")
if not tempDir:
with tempfile.TemporaryDirectory() as defaultTempDir:
Expand Down Expand Up @@ -120,8 +120,8 @@ def extract_int(file_path):

fname = sorted(fname, key=extract_int)

if args.verbose:
if args.verbose > 1:
if verbose:
if verbose > 1:
print("Reading images: ", fname)
else:
print(
Expand Down

0 comments on commit 46fde77

Please sign in to comment.