Skip to content

Commit

Permalink
STYLE: Remove semi-colons from Python example
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Dec 23, 2019
1 parent 212cfb8 commit 50e614a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions examples/FirstReconstruction/FirstReconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
# Writing the geometry to disk
xmlWriter = rtk.ThreeDCircularProjectionGeometryXMLFileWriter.New()
xmlWriter.SetFilename ( sys.argv[2] )
xmlWriter.SetObject ( geometry );
xmlWriter.WriteFile();
xmlWriter.SetObject ( geometry )
xmlWriter.WriteFile()

# Create a stack of empty projection images
ConstantImageSourceType = rtk.ConstantImageSource[ImageType]
Expand Down Expand Up @@ -64,11 +64,11 @@
print("Reconstructing...")
FDKCPUType = rtk.FDKConeBeamReconstructionFilter[ImageType]
feldkamp = FDKCPUType.New()
feldkamp.SetInput(0, constantImageSource2.GetOutput());
feldkamp.SetInput(1, rei.GetOutput());
feldkamp.SetGeometry(geometry);
feldkamp.GetRampFilter().SetTruncationCorrection(0.0);
feldkamp.GetRampFilter().SetHannCutFrequency(0.0);
feldkamp.SetInput(0, constantImageSource2.GetOutput())
feldkamp.SetInput(1, rei.GetOutput())
feldkamp.SetGeometry(geometry)
feldkamp.GetRampFilter().SetTruncationCorrection(0.0)
feldkamp.GetRampFilter().SetHannCutFrequency(0.0)

# Field-of-view masking
FOVFilterType = rtk.FieldOfViewImageFilter[ImageType, ImageType]
Expand All @@ -80,10 +80,10 @@
# Writer
print("Writing output image...")
WriterType = rtk.ImageFileWriter[ImageType]
writer = WriterType.New();
writer.SetFileName(sys.argv[1]);
writer.SetInput(fieldofview.GetOutput());
writer.Update();
writer = WriterType.New()
writer.SetFileName(sys.argv[1])
writer.SetInput(fieldofview.GetOutput())
writer.Update()

print("Done!")

0 comments on commit 50e614a

Please sign in to comment.