Skip to content

Commit

Permalink
adding verbose output
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrogers committed Oct 30, 2024
1 parent 8f20884 commit f48c294
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/sphere_export_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
config:
debug: False
verbose: True
depthchannel: Depth
output: sphere_export_composite.cdb

Expand Down
11 changes: 11 additions & 0 deletions scripts/cinematic
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ class Composite:
self.writer.inputs.ignore.set(['^id', '^camera', '^FILE'], False)
self.writer.inputs.hdf5.set(False, False)

# settings
if not 'verbose' in config['config']:
self.verbose = False
else:
self.verbose = config['config']['verbose']

if self.verbose:
print("printing verbose output")
print(" Reading: " + config['database']['path'])
print(" Writing: " + config['config']['output'])

def update(self):
self.reader.update()
#
Expand Down

0 comments on commit f48c294

Please sign in to comment.