Skip to content

Commit

Permalink
gmytool: rationalise the pipeline debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertnash committed Jul 7, 2022
1 parent 37678b4 commit 9184e5e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions geometry-tool/HlbGmyTool/Model/OutputGeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def __init__(self, profile):
GeometryGenerator object.
"""
super().__init__()

self.DebugPipelineDirectory = None
self._profile = profile
self.generator = self.genext.PolyDataGenerator()

Expand Down Expand Up @@ -297,15 +297,12 @@ def _Preprocess(self):

shifter.Update()
self.ClippedSurface = shifter.GetOutput()
# Uncomment this an insert the output path to debug pipeline construction
# write = StageWriter('path/to/folder').WriteOutput
# i = 0
# for alg in getpipeline(shifter):
# print(i)
# i += 1
# print(alg)
# write(alg)

# If the attribute has been set, write all the stages of the
# pipeline to the folder.
if self.DebugPipelineDirectory is not None:
sw = StageWriter(self.DebugPipelineDirectory)
for alg in getpipeline(shifter):
sw.WriteOutput(alg)

@abstractmethod
def _RoundUpSites(self, nSites):
Expand Down

0 comments on commit 9184e5e

Please sign in to comment.